FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ColorSpectrumAutomationPeer

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

    struct ColorSpectrumAutomationPeer
    

    An automation peer which represents a ColorSpectrum.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ColorSpectrumAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &ColorSpectrum) -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new(owner: &ColorSpectrum) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Whether the value is read-only (the value provider contract): never.

    Source

    owner

    fn owner(self: &Self) -> Ref<ColorSpectrum>
    

    Gets the owning color spectrum.

    Source

    value

    fn value(self: &Self) -> Option<String>
    

    The color of the spectrum as text (the value provider contract).

    Source

    set_value

    fn set_value(self: &Self, value: Option<&str>) -> Result<(), FormatError>
    

    Sets the color of the spectrum from text (the value provider contract). The text is parsed as Color::try_parse parses it; text that is not a color is an error (a FormatException in the original; DEVIATIONS.md, Colour picker).

    Source

    Trait implementations

    Availability

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