FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlTheme

    struct · ferroui-base · v0.5.0

    struct ControlTheme
    

    Defines a switchable theme for a control.

    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<ControlTheme>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a control theme without a target type.

    Source

    with_target_type

    fn with_target_type(target_type: &'static TypeInfo) -> Ref<Self>
    

    Creates a control theme for the given control type.

    Source

    for_type

    fn for_type<T: ObjectType>() -> Ref<Self>
    

    Creates a control theme for control class T.

    Source

    target_type

    fn target_type(self: &Self) -> Option<&'static TypeInfo>
    

    The type for which this control theme is intended.

    Source

    set_target_type

    fn set_target_type(self: &Self, value: Option<&'static TypeInfo>)
    

    Source

    based_on

    fn based_on(self: &Self) -> Option<Ref<ControlTheme>>
    

    A control theme that is the basis of the current theme.

    Source

    set_based_on

    fn set_based_on(self: &Self, value: Option<Ref<ControlTheme>>)
    

    Source

    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.

    Source

    Trait implementations

    Availability

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