Decorator
struct · ferroui-controls · v0.5.0
struct Decorator
Base class for controls which decorate a single child control.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Decorator>
Returns a strong reference to this object.
child_property
fn child_property() -> &'static StyledProperty<Option<Ref<Control>>>
Defines the Child property.
padding_property
fn padding_property() -> &'static StyledProperty<Thickness>
Defines the Padding property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
child
fn child(self: &Self) -> Option<Ref<Control>>
The decorated control.
set_child
fn set_child(self: &Self, value: impl Into<Nullable<Control>>)
padding
fn padding(self: &Self) -> Thickness
The padding to place around the child control.
set_padding
fn set_padding(self: &Self, value: Thickness)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Decorator>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplFerroObjectImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.