FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ColorViewImpl

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

    trait ColorViewImpl: TemplatedControlImpl + $crate::Upcast<ColorView>
    

    The overridable members introduced by the class.

    View source

    Members

    validate_selection

    fn validate_selection(this: &Self)
    

    Obsolete. No-op. This method is no longer used and will be removed in a future release (the necessary validation is now handled by the tab control).

    This method does nothing and should not be overridden or relied upon.

    Source

    on_color_changed

    fn on_color_changed(this: &Self, e: &ColorChangedEventArgs)
    

    Raises the color changed event.

    e defines the old/new colors.

    Source

    on_coerce_color

    fn on_coerce_color(this: &Self, value: Color) -> Color
    

    Called when the Color property has to be coerced; returns the coerced value.

    Source

    on_coerce_hsv_color

    fn on_coerce_hsv_color(this: &Self, value: HsvColor) -> HsvColor
    

    Called when the HsvColor property has to be coerced; returns the coerced value.

    Source

    Trait implementations

    Availability

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