Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
timeline_ruler.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2018-2019 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_TIMELINE_RULER_H__
14#define __GUI_WIDGETS_TIMELINE_RULER_H__
15
16#include "gui/widgets/ruler.h"
17#include "utils/ui.h"
18
19#include <gtk/gtk.h>
20
21typedef struct _RulerRangeWidget RulerRangeWidget;
22typedef struct _RulerMarkerWidget RulerMarkerWidget;
23
30#define MW_RULER MW_TIMELINE_PANEL->ruler
31
32void
33timeline_ruler_widget_draw_markers (RulerWidget * self);
34
38void
40 RulerWidget * self,
41 gdouble start_x,
42 gdouble start_y,
43 int height);
44
48void
50
54void
56 RulerWidget * self,
57 gdouble offset_x,
58 gdouble offset_y);
59
64#endif
void timeline_ruler_on_drag_update(RulerWidget *self, gdouble offset_x, gdouble offset_y)
Called from ruler drag update.
void timeline_ruler_on_drag_begin_no_marker_hit(RulerWidget *self, gdouble start_x, gdouble start_y, int height)
Called from ruler drag begin.
void timeline_ruler_on_drag_end(RulerWidget *self)
Called from ruler drag end.
Ruler parent class.
User Interface utils.