Struct rstk::grid::GridLayout[][src]

pub struct GridLayout { /* fields omitted */ }
Expand description

Refers to the settings for a GridLayout.

Apart from layout, the methods on this struct set the values of different options in a builder style: call layout to finish the layout.

Implementations

Specifies the (0-indexed) column in which to place this widget.

The number of columns this widget should span.

Horizontal padding (inside content border).

Vertical padding (inside content border).

Horizontal padding (outside content border).

Vertical padding (outside content border).

Specifies the (0-indexed) row in which to place this widget.

Number of rows this widget should span.

When a widget is smaller than its containing space, this setting controls how the widget is expanded or positioned within that space.

Called last to finally create the layout with the parameter values set up by the builder.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.