ColorPicker
struct · ferroui-controls-color-picker · v0.5.0
struct ColorPicker
Presents a color for user editing using a spectrum, palette and component sliders within a drop down. Editing is available when the drop down flyout is opened; otherwise, only the preview content area is shown.
Members
TYPEto_refcontent_propertycontent_template_propertyhorizontal_content_alignment_propertyvertical_content_alignment_propertyconstructnewcontentset_contentcontent_templateset_content_templatehorizontal_content_alignmentset_horizontal_content_alignmentvertical_content_alignmentset_vertical_content_alignment
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ColorPicker>
Returns a strong reference to this object.
content_property
fn content_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Content property.
content_template_property
fn content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the ContentTemplate property.
horizontal_content_alignment_property
fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
Defines the HorizontalContentAlignment property.
vertical_content_alignment_property
fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
Defines the VerticalContentAlignment property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Initializes a new instance of the ColorPicker class.
content
fn content(self: &Self) -> Option<BoxedValue>
Gets any content displayed in the ColorPicker's preview content area.
By default this should show a preview of the currently selected color.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
Sets content.
content_template
fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets the data template used to display the content of the ColorPicker's preview content area.
set_content_template
fn set_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
Sets content_template.
horizontal_content_alignment
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
Gets the horizontal alignment of the content within the ColorPicker's preview content area.
set_horizontal_content_alignment
fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
Sets horizontal_content_alignment.
vertical_content_alignment
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
Gets the vertical alignment of the content within the ColorPicker's preview content area.
set_vertical_content_alignment
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
Sets vertical_content_alignment.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<ColorPicker>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplColorViewImplDefaultConstructible
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.