ControlTheme
struct · ferroui-base · v0.5.0
struct ControlTheme
Defines a switchable theme for a control.
Members
TYPEto_refconstructnewwith_target_typefor_typetarget_typeset_target_typebased_onset_based_onwith_setters
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ControlTheme>
Returns a strong reference to this object.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a control theme without a target type.
with_target_type
fn with_target_type(target_type: &'static TypeInfo) -> Ref<Self>
Creates a control theme for the given control type.
for_type
fn for_type<T: ObjectType>() -> Ref<Self>
Creates a control theme for control class T.
target_type
fn target_type(self: &Self) -> Option<&'static TypeInfo>
The type for which this control theme is intended.
set_target_type
fn set_target_type(self: &Self, value: Option<&'static TypeInfo>)
based_on
fn based_on(self: &Self) -> Option<Ref<ControlTheme>>
A control theme that is the basis of the current theme.
set_based_on
fn set_based_on(self: &Self, value: Option<Ref<ControlTheme>>)
with_setters
fn with_setters(target_type: &'static TypeInfo, setters: impl IntoIterator<Item = Rc<Setter>>) -> Ref<Self>
Creates a control theme for the given control type with setters.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeStyleBaseImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<ControlTheme>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyleBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.