FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InfoBarPanel

    struct · ferroui-themes-macos · 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.

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

    Returns a strong reference to this object.

    Source

    horizontal_orientation_padding_property

    fn horizontal_orientation_padding_property() -> &'static StyledProperty<Thickness>
    

    Defines the HorizontalOrientationPadding property.

    Source

    vertical_orientation_padding_property

    fn vertical_orientation_padding_property() -> &'static StyledProperty<Thickness>
    

    Defines the VerticalOrientationPadding property.

    Source

    horizontal_orientation_margin_property

    fn horizontal_orientation_margin_property() -> &'static AttachedProperty<Thickness>
    

    Defines the HorizontalOrientationMargin attached property.

    Source

    vertical_orientation_margin_property

    fn vertical_orientation_margin_property() -> &'static AttachedProperty<Thickness>
    

    Defines the VerticalOrientationMargin attached property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an InfoBar panel.

    Source

    horizontal_orientation_padding

    fn horizontal_orientation_padding(self: &Self) -> Thickness
    

    The padding of the panel when its children are on one line.

    Source

    set_horizontal_orientation_padding

    fn set_horizontal_orientation_padding(self: &Self, value: Thickness)
    

    Source

    vertical_orientation_padding

    fn vertical_orientation_padding(self: &Self) -> Thickness
    

    The padding of the panel when its children are below each other.

    Source

    set_vertical_orientation_padding

    fn set_vertical_orientation_padding(self: &Self, value: Thickness)
    

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    Availability

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