FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Viewbox

    struct · ferroui-controls · v0.5.0

    struct Viewbox
    

    A control used to scale a single child.

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

    Returns a strong reference to this object.

    Source

    stretch_property

    fn stretch_property() -> &'static StyledProperty<Stretch>
    

    Defines the Stretch property.

    Source

    stretch_direction_property

    fn stretch_direction_property() -> &'static StyledProperty<StretchDirection>
    

    Defines the StretchDirection property.

    Source

    child_property

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

    Defines the Child property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    stretch

    fn stretch(self: &Self) -> Stretch
    

    The stretch mode, which determines how child fits into the available space.

    Source

    set_stretch

    fn set_stretch(self: &Self, value: Stretch)
    

    Source

    stretch_direction

    fn stretch_direction(self: &Self) -> StretchDirection
    

    A value controlling in what direction contents will be stretched.

    Source

    set_stretch_direction

    fn set_stretch_direction(self: &Self, value: StretchDirection)
    

    Source

    child

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

    The child of the viewbox.

    Source

    set_child

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

    Source

    Trait implementations

    Availability

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