FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    rows_property

    fn rows_property() -> &'static StyledProperty<i32>
    

    Defines the Rows property.

    Source

    columns_property

    fn columns_property() -> &'static StyledProperty<i32>
    

    Defines the Columns property.

    Source

    first_column_property

    fn first_column_property() -> &'static StyledProperty<i32>
    

    Defines the FirstColumn property.

    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

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    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.

    Source

    set_rows

    fn set_rows(self: &Self, value: i32)
    

    Source

    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.

    Source

    set_columns

    fn set_columns(self: &Self, value: i32)
    

    Source

    first_column

    fn first_column(self: &Self) -> i32
    

    The number of columns that are left blank in the first row of the grid.

    Source

    set_first_column

    fn set_first_column(self: &Self, value: i32)
    

    Source

    row_spacing

    fn row_spacing(self: &Self) -> f64
    

    The spacing between rows.

    Source

    set_row_spacing

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

    Source

    column_spacing

    fn column_spacing(self: &Self) -> f64
    

    The spacing between columns.

    Source

    set_column_spacing

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

    Source

    Trait implementations

    Availability

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