UniformGrid
struct · ferroui-controls · v0.5.0
struct UniformGrid
A panel which lays out its children in a grid with all cells having the same size.
Members
TYPEto_refrows_propertycolumns_propertyfirst_column_propertyrow_spacing_propertycolumn_spacing_propertyconstructnewrowsset_rowscolumnsset_columnsfirst_columnset_first_columnrow_spacingset_row_spacingcolumn_spacingset_column_spacing
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<UniformGrid>
Returns a strong reference to this object.
rows_property
fn rows_property() -> &'static StyledProperty<i32>
Defines the Rows property.
columns_property
fn columns_property() -> &'static StyledProperty<i32>
Defines the Columns property.
first_column_property
fn first_column_property() -> &'static StyledProperty<i32>
Defines the FirstColumn property.
row_spacing_property
fn row_spacing_property() -> &'static StyledProperty<f64>
Defines the RowSpacing property.
column_spacing_property
fn column_spacing_property() -> &'static StyledProperty<f64>
Defines the ColumnSpacing property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
rows
fn rows(self: &Self) -> i32
The number of rows in each column. A value of zero indicates that the number of rows is computed.
set_rows
fn set_rows(self: &Self, value: i32)
columns
fn columns(self: &Self) -> i32
The number of columns in each row. A value of zero indicates that the number of columns is computed.
set_columns
fn set_columns(self: &Self, value: i32)
first_column
fn first_column(self: &Self) -> i32
The number of columns that are left blank in the first row of the grid.
set_first_column
fn set_first_column(self: &Self, value: i32)
row_spacing
fn row_spacing(self: &Self) -> f64
The spacing between rows.
set_row_spacing
fn set_row_spacing(self: &Self, value: f64)
column_spacing
fn column_spacing(self: &Self) -> f64
The spacing between columns.
set_column_spacing
fn set_column_spacing(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<UniformGrid>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplPanelImplFerroObjectImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.