GridTrackEditor
struct · ferroui-designer · v0.5.0
struct GridTrackEditor
An axis picker, length/unit editor and insertion/removal commands in one native row. Configure it from accepted state; a change callback must validate and apply the intent.
Members
newcontrolaxistrack_selectorlength_editorunit_selectorselected_trackon_changeon_selectedconfigure
new
fn new(axis: Axis) -> Rc<Self>
control
fn control(self: &Self) -> Ref<Control>
axis
fn axis(self: &Self) -> Axis
track_selector
fn track_selector(self: &Self) -> Ref<ComboBox>
length_editor
fn length_editor(self: &Self) -> Ref<TextBox>
unit_selector
fn unit_selector(self: &Self) -> Ref<ComboBox>
selected_track
fn selected_track(self: &Self) -> usize
on_change
fn on_change(self: &Self, handler: impl Fn(GridTrackChange) -> Result<(), String> + 'static)
on_selected
fn on_selected(self: &Self, handler: impl Fn(usize) -> () + 'static)
configure
fn configure(self: &Self, values: Vec<String>, selected: usize, writable: bool)
Empty definitions represent the native implicit star track. Expressions are displayed read-only; selecting or configuring the control never emits an authoring command.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSame
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.