Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
editor_ruler.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_EDITOR_RULER_H__
14#define __GUI_WIDGETS_EDITOR_RULER_H__
15
16#include "gui/widgets/ruler.h"
17#include "utils/ui.h"
18
19#include <gtk/gtk.h>
20
27#define EDITOR_RULER MW_CLIP_EDITOR_INNER->ruler
28
34void
36
40void
42 RulerWidget * self,
43 gdouble start_x,
44 gdouble start_y);
45
46void
47editor_ruler_on_drag_update (
48 RulerWidget * self,
49 gdouble offset_x,
50 gdouble offset_y);
51
52void
53editor_ruler_on_drag_end (RulerWidget * self);
54
55int
56editor_ruler_get_regions_in_range (
57 RulerWidget * self,
58 double x_start,
59 double x_end,
60 ZRegion ** regions);
61
66#endif
void editor_ruler_widget_draw_markers(RulerWidget *self)
Called from RulerWidget to draw the markers specific to the editor, such as region loop points.
void editor_ruler_on_drag_begin_no_marker_hit(RulerWidget *self, gdouble start_x, gdouble start_y)
Called from ruler drag begin.
Ruler parent class.
A region (clip) is an object on the timeline that contains either MidiNote's or AudioClip's.
Definition region.h:72
User Interface utils.