WrapPanel
struct · ferroui-controls · v0.5.0
struct WrapPanel
Positions child elements in sequential position from left to right,
breaking content to the next line at the edge of the containing box.
Subsequent ordering happens sequentially from top to bottom or from right
to left, depending on the value of the Orientation property.
Members
TYPEto_refitem_spacing_propertyline_spacing_propertyorientation_propertyitems_alignment_propertyitem_width_propertyitem_height_propertyconstructnewitem_spacingset_item_spacingline_spacingset_line_spacingorientationset_orientationitems_alignmentset_items_alignmentitem_widthset_item_widthitem_heightset_item_height
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<WrapPanel>
Returns a strong reference to this object.
item_spacing_property
fn item_spacing_property() -> &'static StyledProperty<f64>
Defines the ItemSpacing property.
line_spacing_property
fn line_spacing_property() -> &'static StyledProperty<f64>
Defines the LineSpacing property.
orientation_property
fn orientation_property() -> &'static StyledProperty<Orientation>
Defines the Orientation property.
items_alignment_property
fn items_alignment_property() -> &'static StyledProperty<WrapPanelItemsAlignment>
Defines the ItemsAlignment property.
item_width_property
fn item_width_property() -> &'static StyledProperty<f64>
Defines the ItemWidth property.
item_height_property
fn item_height_property() -> &'static StyledProperty<f64>
Defines the ItemHeight property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
item_spacing
fn item_spacing(self: &Self) -> f64
The spacing between items.
set_item_spacing
fn set_item_spacing(self: &Self, value: f64)
line_spacing
fn line_spacing(self: &Self) -> f64
The spacing between lines.
set_line_spacing
fn set_line_spacing(self: &Self, value: f64)
orientation
fn orientation(self: &Self) -> Orientation
The orientation in which child controls will be layed out.
set_orientation
fn set_orientation(self: &Self, value: Orientation)
items_alignment
fn items_alignment(self: &Self) -> WrapPanelItemsAlignment
The alignment of items in the panel.
set_items_alignment
fn set_items_alignment(self: &Self, value: WrapPanelItemsAlignment)
item_width
fn item_width(self: &Self) -> f64
The width of all items in the panel.
set_item_width
fn set_item_width(self: &Self, value: f64)
item_height
fn item_height(self: &Self) -> f64
The height of all items in the panel.
set_item_height
fn set_item_height(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<WrapPanel>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplPanelImplFerroObjectImplLayoutableImplINavigableContainer
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.