RulerPrefs
RulerPrefs
User preferences for media viewer pixel rulers.
#include <MediaWidgetStateData.hpp>
Public Attributes
| Name | |
|---|---|
| bool | enabled Whether rulers are visible. |
| RulerTickMode | tick_mode Auto or fixed tick spacing. |
| int | fixed_interval_px Tick interval when tick_mode == Fixed. |
| int | target_tick_count Target major ticks when tick_mode == Auto. |
| bool | show_minor_ticks Draw minor ticks between majors. |
| std::string | negative_color Label/tick color for negative values. |
Public Attributes Documentation
variable enabled
bool enabled = true;Whether rulers are visible.
variable tick_mode
RulerTickMode tick_mode = RulerTickMode::Auto;Auto or fixed tick spacing.
variable fixed_interval_px
int fixed_interval_px = 100;Tick interval when tick_mode == Fixed.
variable target_tick_count
int target_tick_count = 7;Target major ticks when tick_mode == Auto.
variable show_minor_ticks
bool show_minor_ticks = true;Draw minor ticks between majors.
variable negative_color
std::string negative_color = "#FF9966";Label/tick color for negative values.
Updated on 2026-11-13 at 20:25:39 +0000