PropertyColorEditor
struct · ferroui-designer · v0.5.0
struct PropertyColorEditor
A native swatch and XAML color field with a staged spectrum/palette flyout.
configure never authors a value. Changes in the native ColorView remain local
until Apply, so a spectrum drag produces one document transaction and one undo entry.
Escape and light dismissal discard the popup draft. The owner validates every commit.
Members
new
fn new() -> Result<Self, String>
control
fn control(self: &Self) -> Ref<Control>
text_editor
fn text_editor(self: &Self) -> Ref<TextBox>
swatch_button
fn swatch_button(self: &Self) -> Ref<Button>
color_view
fn color_view(self: &Self) -> Ref<ColorView>
flyout
fn flyout(self: &Self) -> Ref<Flyout>
configure
fn configure(self: &Self, value: Option<&str>, mixed: bool) -> Result<(), String>
on_commit
fn on_commit(self: &Self, callback: impl Fn(String) -> () + '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.