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.
Members
new
fn new(kind: PropertyComponentsKind, non_negative: bool) -> Self
control
fn control(self: &Self) -> Ref<Control>
configure
fn configure(self: &Self, value: Option<[f64; 4]>) -> Result<(), String>
set_linked
fn set_linked(self: &Self, linked: bool)
is_linked
fn is_linked(self: &Self) -> bool
on_commit
fn on_commit(self: &Self, callback: impl Fn([f64; 4]) -> () + 'static)
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.