Viewbox
struct · ferroui-controls · v0.5.0
struct Viewbox
A control used to scale a single child.
Members
TYPEto_refstretch_propertystretch_direction_propertychild_propertyconstructnewstretchset_stretchstretch_directionset_stretch_directionchildset_child
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Viewbox>
Returns a strong reference to this object.
stretch_property
fn stretch_property() -> &'static StyledProperty<Stretch>
Defines the Stretch property.
stretch_direction_property
fn stretch_direction_property() -> &'static StyledProperty<StretchDirection>
Defines the StretchDirection property.
child_property
fn child_property() -> &'static StyledProperty<Option<Ref<Control>>>
Defines the Child property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
stretch
fn stretch(self: &Self) -> Stretch
The stretch mode, which determines how child fits into the available space.
set_stretch
fn set_stretch(self: &Self, value: Stretch)
stretch_direction
fn stretch_direction(self: &Self) -> StretchDirection
A value controlling in what direction contents will be stretched.
set_stretch_direction
fn set_stretch_direction(self: &Self, value: StretchDirection)
child
fn child(self: &Self) -> Option<Ref<Control>>
The child of the viewbox.
set_child
fn set_child(self: &Self, value: impl Into<Nullable<Control>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Viewbox>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplFerroObjectImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.