FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Grid

    struct · ferroui-controls · v0.5.0

    struct Grid
    

    Defines a flexible grid area that consists of columns and rows.

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

    Returns a strong reference to this object.

    Source

    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.

    Source

    row_spacing_property

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

    Defines the RowSpacing property.

    Source

    column_spacing_property

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

    Defines the ColumnSpacing property.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    set_column

    fn set_column(element: &Control, value: i32)
    

    Sets the Column property on a control.

    Source

    get_column

    fn get_column(element: &Control) -> i32
    

    Reads the Column property from a control.

    Source

    set_row

    fn set_row(element: &Control, value: i32)
    

    Sets the Row property on a control.

    Source

    get_row

    fn get_row(element: &Control) -> i32
    

    Reads the Row property from a control.

    Source

    set_column_span

    fn set_column_span(element: &Control, value: i32)
    

    Sets the ColumnSpan property on a control.

    Source

    get_column_span

    fn get_column_span(element: &Control) -> i32
    

    Reads the ColumnSpan property from a control.

    Source

    set_row_span

    fn set_row_span(element: &Control, value: i32)
    

    Sets the RowSpan property on a control.

    Source

    get_row_span

    fn get_row_span(element: &Control) -> i32
    

    Reads the RowSpan property from a control.

    Source

    set_is_shared_size_scope

    fn set_is_shared_size_scope(element: &Control, value: bool)
    

    Sets the IsSharedSizeScope property on a control.

    Source

    get_is_shared_size_scope

    fn get_is_shared_size_scope(element: &Control) -> bool
    

    Reads the IsSharedSizeScope property from a control.

    Source

    show_grid_lines

    fn show_grid_lines(self: &Self) -> bool
    

    Whether the grid lines are shown.

    Source

    set_show_grid_lines

    fn set_show_grid_lines(self: &Self, value: bool)
    

    Source

    row_spacing

    fn row_spacing(self: &Self) -> f64
    

    The size of the spacing to place between grid rows.

    Source

    set_row_spacing

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

    Source

    column_spacing

    fn column_spacing(self: &Self) -> f64
    

    The size of the spacing to place between grid columns.

    Source

    set_column_spacing

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

    Source

    column_definitions

    fn column_definitions(self: &Self) -> ColumnDefinitions
    

    The collection of column definitions.

    Source

    set_column_definitions

    fn set_column_definitions(self: &Self, value: ColumnDefinitions)
    

    Source

    row_definitions

    fn row_definitions(self: &Self) -> RowDefinitions
    

    The collection of row definitions.

    Source

    set_row_definitions

    fn set_row_definitions(self: &Self, value: RowDefinitions)
    

    Source

    Trait implementations

    Availability

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