FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ColorChangedEventArgs

    struct · ferroui-controls-color-picker · v0.5.0

    struct ColorChangedEventArgs
    

    Holds the details of a ColorChanged event.

    HSV color information is intentionally not provided. Use Color::to_hsv to obtain it.

    View source

    Members

    new

    fn new(old_color: Color, new_color: Color) -> Self
    

    Initializes a new instance of the ColorChangedEventArgs class.

    old_color is the old/original color from before the change event; new_color is the new/updated color that triggered the change event.

    Source

    old_color

    fn old_color(self: &Self) -> Color
    

    Gets the old/original color from before the change event.

    Source

    new_color

    fn new_color(self: &Self) -> Color
    

    Gets the new/updated color that triggered the change event.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

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