FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    item_spacing_property

    fn item_spacing_property() -> &'static StyledProperty<f64>
    

    Defines the ItemSpacing property.

    Source

    line_spacing_property

    fn line_spacing_property() -> &'static StyledProperty<f64>
    

    Defines the LineSpacing property.

    Source

    orientation_property

    fn orientation_property() -> &'static StyledProperty<Orientation>
    

    Defines the Orientation property.

    Source

    items_alignment_property

    fn items_alignment_property() -> &'static StyledProperty<WrapPanelItemsAlignment>
    

    Defines the ItemsAlignment property.

    Source

    item_width_property

    fn item_width_property() -> &'static StyledProperty<f64>
    

    Defines the ItemWidth property.

    Source

    item_height_property

    fn item_height_property() -> &'static StyledProperty<f64>
    

    Defines the ItemHeight property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    item_spacing

    fn item_spacing(self: &Self) -> f64
    

    The spacing between items.

    Source

    set_item_spacing

    fn set_item_spacing(self: &Self, value: f64)
    

    Source

    line_spacing

    fn line_spacing(self: &Self) -> f64
    

    The spacing between lines.

    Source

    set_line_spacing

    fn set_line_spacing(self: &Self, value: f64)
    

    Source

    orientation

    fn orientation(self: &Self) -> Orientation
    

    The orientation in which child controls will be layed out.

    Source

    set_orientation

    fn set_orientation(self: &Self, value: Orientation)
    

    Source

    items_alignment

    fn items_alignment(self: &Self) -> WrapPanelItemsAlignment
    

    The alignment of items in the panel.

    Source

    set_items_alignment

    fn set_items_alignment(self: &Self, value: WrapPanelItemsAlignment)
    

    Source

    item_width

    fn item_width(self: &Self) -> f64
    

    The width of all items in the panel.

    Source

    set_item_width

    fn set_item_width(self: &Self, value: f64)
    

    Source

    item_height

    fn item_height(self: &Self) -> f64
    

    The height of all items in the panel.

    Source

    set_item_height

    fn set_item_height(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

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