FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(axis: Axis) -> Rc<Self>
    

    Source

    control

    fn control(self: &Self) -> Ref<Control>
    

    Source

    axis

    fn axis(self: &Self) -> Axis
    

    Source

    track_selector

    fn track_selector(self: &Self) -> Ref<ComboBox>
    

    Source

    length_editor

    fn length_editor(self: &Self) -> Ref<TextBox>
    

    Source

    unit_selector

    fn unit_selector(self: &Self) -> Ref<ComboBox>
    

    Source

    selected_track

    fn selected_track(self: &Self) -> usize
    

    Source

    on_change

    fn on_change(self: &Self, handler: impl Fn(GridTrackChange) -> Result<(), String> + 'static)
    

    Source

    on_selected

    fn on_selected(self: &Self, handler: impl Fn(usize) -> () + 'static)
    

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.