FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Result<Self, String>
    

    Source

    control

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

    Source

    text_editor

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

    Source

    swatch_button

    fn swatch_button(self: &Self) -> Ref<Button>
    

    Source

    color_view

    fn color_view(self: &Self) -> Ref<ColorView>
    

    Source

    flyout

    fn flyout(self: &Self) -> Ref<Flyout>
    

    Source

    configure

    fn configure(self: &Self, value: Option<&str>, mixed: bool) -> Result<(), String>
    

    Source

    on_commit

    fn on_commit(self: &Self, callback: impl Fn(String) -> () + '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.