ColorSpectrumAutomationPeer
struct · ferroui-controls-color-picker · v0.5.0
struct ColorSpectrumAutomationPeer
An automation peer which represents a ColorSpectrum.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ColorSpectrumAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &ColorSpectrum) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &ColorSpectrum) -> Ref<Self>
Initializes a new peer of owner.
is_read_only
fn is_read_only(self: &Self) -> bool
Whether the value is read-only (the value provider contract): never.
owner
fn owner(self: &Self) -> Ref<ColorSpectrum>
Gets the owning color spectrum.
value
fn value(self: &Self) -> Option<String>
The color of the spectrum as text (the value provider contract).
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).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherAutomationPeerImplExtControlAutomationPeerImplExtDerefUpcast<T>Upcast<ColorSpectrumAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.