FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RadioButtonsPanel

    struct · ferroui-controls · v0.5.0

    struct RadioButtonsPanel
    

    Lays out the radio buttons of a RadioButtons in columns of equal cells as large as the largest one, filling each column from the top, with as many columns as the available width and the MaxColumns of the group allow (WinUI's ColumnMajorUniformToLargestGridLayout).

    Deviation (docs/porting/winui-controls.md, Input): WinUI lays the buttons out with a layout of an ItemsRepeater; FerroUI's RadioButtons is an items control, and this panel is its items panel, set by the control theme of the WinUI theme with the spacing of the resources RadioButtonsColumnSpacing and RadioButtonsRowSpacing. MaxColumns is read from the group the panel is the items panel of (its templated parent); a panel of another control has one column.

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

    Returns a strong reference to this object.

    Source

    column_spacing_property

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

    Defines the ColumnSpacing property: the space between the columns. 0 by default; the WinUI theme sets RadioButtonsColumnSpacing (7).

    Source

    row_spacing_property

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

    Defines the RowSpacing property: the space between the rows. 0 by default; the WinUI theme sets RadioButtonsRowSpacing (8).

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    column_spacing

    fn column_spacing(self: &Self) -> f64
    

    Gets the space between the columns.

    Source

    set_column_spacing

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

    Sets the space between the columns.

    Source

    row_spacing

    fn row_spacing(self: &Self) -> f64
    

    Gets the space between the rows.

    Source

    set_row_spacing

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

    Sets the space between the rows.

    Source

    Trait implementations

    Availability

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