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.
Members
TYPEto_refcolumn_spacing_propertyrow_spacing_propertyconstructnewcolumn_spacingset_column_spacingrow_spacingset_row_spacing
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RadioButtonsPanel>
Returns a strong reference to this object.
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).
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).
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
column_spacing
fn column_spacing(self: &Self) -> f64
Gets the space between the columns.
set_column_spacing
fn set_column_spacing(self: &Self, value: f64)
Sets the space between the columns.
row_spacing
fn row_spacing(self: &Self) -> f64
Gets the space between the rows.
set_row_spacing
fn set_row_spacing(self: &Self, value: f64)
Sets the space between the rows.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<RadioButtonsPanel>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplPanelImplFerroObjectImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.