file
ruler.hRuler parent class.
Enums
- enum RWTarget { RW_TARGET_PLAYHEAD, RW_TARGET_LOOP_START, RW_TARGET_LOOP_END, RW_TARGET_PUNCH_IN, RW_TARGET_PUNCH_OUT, 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) -> bool
- 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.
- auto ruler_widget_get_10sec_interval(RulerWidget* self) -> int
- Returns the 10 sec interval.
- auto ruler_widget_get_sec_interval(RulerWidget* self) -> int
- Returns the sec interval.
- auto ruler_widget_get_zoom_level(RulerWidget* self) -> double
- Gets the zoom level associated with this RulerWidget from the backend.
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 RULER_ZOOM_LEVEL_MULTIPLIER
- Multiplier when zooming in/out.