gui/widgets/ruler.h file

Contents

Ruler parent class.

Enums

enum RWTarget { RW_TARGET_PLAYHEAD, RW_TARGET_LOOP_START, RW_TARGET_LOOP_END, RW_TARGET_CLIP_START, RW_TARGET_RANGE }
The ruler widget target acting upon.
enum RulerWidgetRangeType { RW_RANGE_START, RW_RANGE_FULL, RW_RANGE_END }
Range type.

Typedefs

using RWTarget = enum RWTarget
The ruler widget target acting upon.
using RulerWidgetRangeType = enum RulerWidgetRangeType
Range type.

Functions

auto ruler_widget_set_zoom_level(RulerWidget* self, double zoom_level) -> int
Sets zoom level and disables/enables buttons accordingly.
auto ruler_widget_get_beat_interval(RulerWidget* self) -> int
Returns the beat interval for drawing vertical lines.
auto ruler_widget_get_sixteenth_interval(RulerWidget* self) -> int
Returns the sixteenth interval for drawing vertical lines.
void ruler_widget_redraw_whole(RulerWidget* self)
Queues a redraw of the whole visible ruler.
void ruler_widget_redraw_playhead(RulerWidget* self)
Only redraws the playhead part.

Defines

#define RW_PX_TO_HIDE_BEATS
Minimum number of pixels between beat lines.
#define DEFAULT_PX_PER_TICK
Pixels to draw between each beat, before being adjusted for zoom.
#define SPACE_BEFORE_START
Pixels to put before 1st bar.

Define documentation

#define DEFAULT_PX_PER_TICK

Pixels to draw between each beat, before being adjusted for zoom.

Used by the ruler and timeline.