Skip to main content

ColumnScope

Trait ColumnScope 

Source
pub trait ColumnScope {
    // Required methods
    fn align(&self, alignment: HorizontalAlignment) -> Modifier;
    fn weight(&self, weight: f32, fill: bool) -> Modifier;
}
Expand description

Marker trait for Column scope - provides horizontal alignment.

Future API - methods will be enabled as alignment and weight modifiers are implemented.

Required Methods§

Source

fn align(&self, alignment: HorizontalAlignment) -> Modifier

Align content horizontally within the Column.

Source

fn weight(&self, weight: f32, fill: bool) -> Modifier

Apply weight to distribute remaining space proportionally.

Implementors§