FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Decorator

    struct · ferroui-controls · v0.5.0

    struct Decorator
    

    Base class for controls which decorate a single child 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<Decorator>
    

    Returns a strong reference to this object.

    Source

    child_property

    fn child_property() -> &'static StyledProperty<Option<Ref<Control>>>
    

    Defines the Child property.

    Source

    padding_property

    fn padding_property() -> &'static StyledProperty<Thickness>
    

    Defines the Padding property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    child

    fn child(self: &Self) -> Option<Ref<Control>>
    

    The decorated control.

    Source

    set_child

    fn set_child(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    padding

    fn padding(self: &Self) -> Thickness
    

    The padding to place around the child control.

    Source

    set_padding

    fn set_padding(self: &Self, value: Thickness)
    

    Source

    Trait implementations

    Availability

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