InfoBarPanel
struct · ferroui-controls · v0.5.0
struct InfoBarPanel
Lays out its children on one line when they fit in its width, and below each other otherwise
(InfoBarPanel of WinUI). One line: the children side by side, each moved by its
HorizontalOrientationMargin (the left margin of the first and the right margin of the last
left out), the last one given the rest of the width, the panel padded by
HorizontalOrientationPadding. Below each other: each child moved by its
VerticalOrientationMargin (the top margin of the first and the bottom margin of the last
left out), the panel padded by VerticalOrientationPadding. A child without a width or a
height (a collapsed one) is left out of both. One child, children wider than the panel, or a
child that would be taller on one line than the minimum height of the parent of the panel
(less the vertical margins of the panel) give the layout below each other.
Members
TYPEto_refhorizontal_orientation_padding_propertyvertical_orientation_padding_propertyhorizontal_orientation_margin_propertyvertical_orientation_margin_propertyconstructnewhorizontal_orientation_paddingset_horizontal_orientation_paddingvertical_orientation_paddingset_vertical_orientation_paddingget_horizontal_orientation_marginset_horizontal_orientation_marginget_vertical_orientation_marginset_vertical_orientation_margin
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InfoBarPanel>
Returns a strong reference to this object.
horizontal_orientation_padding_property
fn horizontal_orientation_padding_property() -> &'static StyledProperty<Thickness>
Defines the HorizontalOrientationPadding property.
vertical_orientation_padding_property
fn vertical_orientation_padding_property() -> &'static StyledProperty<Thickness>
Defines the VerticalOrientationPadding property.
horizontal_orientation_margin_property
fn horizontal_orientation_margin_property() -> &'static AttachedProperty<Thickness>
Defines the HorizontalOrientationMargin attached property.
vertical_orientation_margin_property
fn vertical_orientation_margin_property() -> &'static AttachedProperty<Thickness>
Defines the VerticalOrientationMargin attached property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an InfoBar panel.
horizontal_orientation_padding
fn horizontal_orientation_padding(self: &Self) -> Thickness
The padding of the panel when its children are on one line.
set_horizontal_orientation_padding
fn set_horizontal_orientation_padding(self: &Self, value: Thickness)
vertical_orientation_padding
fn vertical_orientation_padding(self: &Self) -> Thickness
The padding of the panel when its children are below each other.
set_vertical_orientation_padding
fn set_vertical_orientation_padding(self: &Self, value: Thickness)
get_horizontal_orientation_margin
fn get_horizontal_orientation_margin(control: &Control) -> Thickness
Gets the margin of control when the children of the panel are on one line.
set_horizontal_orientation_margin
fn set_horizontal_orientation_margin(control: &Control, value: Thickness)
Sets the margin of control when the children of the panel are on one line.
get_vertical_orientation_margin
fn get_vertical_orientation_margin(control: &Control) -> Thickness
Gets the margin of control when the children of the panel are below each other.
set_vertical_orientation_margin
fn set_vertical_orientation_margin(control: &Control, value: Thickness)
Sets the margin of control when the children of the panel are below each other.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<InfoBarPanel>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplVisualImplInteractiveImplInputElementImplControlImplPanelImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.