Grid
struct · ferroui-controls · v0.5.0
struct Grid
Defines a flexible grid area that consists of columns and rows.
Members
TYPEto_refshow_grid_lines_propertyrow_spacing_propertycolumn_spacing_propertycolumn_propertyrow_propertycolumn_span_propertyrow_span_propertyis_shared_size_scope_propertyconstructnewset_columnget_columnset_rowget_rowset_column_spanget_column_spanset_row_spanget_row_spanset_is_shared_size_scopeget_is_shared_size_scopeshow_grid_linesset_show_grid_linesrow_spacingset_row_spacingcolumn_spacingset_column_spacingcolumn_definitionsset_column_definitionsrow_definitionsset_row_definitions
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Grid>
Returns a strong reference to this object.
show_grid_lines_property
fn show_grid_lines_property() -> &'static StyledProperty<bool>
Defines the ShowGridLines property. This property is used mostly
for the simplification of visual debugging. When it is set to
true, grid lines are drawn to visualize the location of the grid
lines.
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.
column_property
fn column_property() -> &'static AttachedProperty<i32>
Defines the Column attached property, which can be set on any
element treated as a cell. It specifies the position of the child
with respect to the columns.
Columns are 0-based: in order to appear in the first column, an element should have the property set to 0, which is the default value.
row_property
fn row_property() -> &'static AttachedProperty<i32>
Defines the Row attached property, which can be set on any
element treated as a cell. It specifies the position of the child
with respect to the rows.
Rows are 0-based: in order to appear in the first row, an element should have the property set to 0, which is the default value.
column_span_property
fn column_span_property() -> &'static AttachedProperty<i32>
Defines the ColumnSpan attached property, which can be set on
any element treated as a cell. It specifies the width of the child
with respect to the columns: a value of 2 means that the child
spans across two columns.
The default value is 1.
row_span_property
fn row_span_property() -> &'static AttachedProperty<i32>
Defines the RowSpan attached property, which can be set on any
element treated as a cell. It specifies the height of the child
with respect to the row grid lines: a value of 3 means that the
child spans across three rows.
The default value is 1.
is_shared_size_scope_property
fn is_shared_size_scope_property() -> &'static AttachedProperty<bool>
Defines the IsSharedSizeScope attached property, which marks the
scoping element for shared sizes.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
set_column
fn set_column(element: &Control, value: i32)
Sets the Column property on a control.
get_column
fn get_column(element: &Control) -> i32
Reads the Column property from a control.
set_row
fn set_row(element: &Control, value: i32)
Sets the Row property on a control.
get_row
fn get_row(element: &Control) -> i32
Reads the Row property from a control.
set_column_span
fn set_column_span(element: &Control, value: i32)
Sets the ColumnSpan property on a control.
get_column_span
fn get_column_span(element: &Control) -> i32
Reads the ColumnSpan property from a control.
set_row_span
fn set_row_span(element: &Control, value: i32)
Sets the RowSpan property on a control.
get_row_span
fn get_row_span(element: &Control) -> i32
Reads the RowSpan property from a control.
set_is_shared_size_scope
fn set_is_shared_size_scope(element: &Control, value: bool)
Sets the IsSharedSizeScope property on a control.
get_is_shared_size_scope
fn get_is_shared_size_scope(element: &Control) -> bool
Reads the IsSharedSizeScope property from a control.
show_grid_lines
fn show_grid_lines(self: &Self) -> bool
Whether the grid lines are shown.
set_show_grid_lines
fn set_show_grid_lines(self: &Self, value: bool)
row_spacing
fn row_spacing(self: &Self) -> f64
The size of the spacing to place between grid rows.
set_row_spacing
fn set_row_spacing(self: &Self, value: f64)
column_spacing
fn column_spacing(self: &Self) -> f64
The size of the spacing to place between grid columns.
set_column_spacing
fn set_column_spacing(self: &Self, value: f64)
column_definitions
fn column_definitions(self: &Self) -> ColumnDefinitions
The collection of column definitions.
set_column_definitions
fn set_column_definitions(self: &Self, value: ColumnDefinitions)
row_definitions
fn row_definitions(self: &Self) -> RowDefinitions
The collection of row definitions.
set_row_definitions
fn set_row_definitions(self: &Self, value: RowDefinitions)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Grid>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplFerroObjectImplLayoutableImplPanelImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.