FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyComponentsEditor

    struct · ferroui-designer · v0.5.0

    struct PropertyComponentsEditor
    

    A linked value or compact 2 × 2 editor for Margin, Padding, BorderThickness or CornerRadius. All fields commit together on Enter; Escape restores the accepted value. A linked edit deliberately sets every component and is also valid for mixed selections.

    View source

    Members

    new

    fn new(kind: PropertyComponentsKind, non_negative: bool) -> Self
    

    Source

    control

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

    Source

    configure

    fn configure(self: &Self, value: Option<[f64; 4]>) -> Result<(), String>
    

    Source

    set_linked

    fn set_linked(self: &Self, linked: bool)
    

    Source

    is_linked

    fn is_linked(self: &Self) -> bool
    

    Source

    on_commit

    fn on_commit(self: &Self, callback: impl Fn([f64; 4]) -> () + 'static)
    

    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.