Trait taffy::style::grid::GridItemStyle

source ·
pub trait GridItemStyle: CoreStyle {
    // Provided methods
    fn grid_row(&self) -> Line<GridPlacement> { ... }
    fn grid_column(&self) -> Line<GridPlacement> { ... }
    fn align_self(&self) -> Option<AlignSelf> { ... }
    fn justify_self(&self) -> Option<AlignSelf> { ... }
    fn grid_placement(&self, axis: AbsoluteAxis) -> Line<GridPlacement> { ... }
}
Expand description

The set of styles required for a CSS Grid item (child of a CSS Grid container)

Provided Methods§

source

fn grid_row(&self) -> Line<GridPlacement>

Defines which row in the grid the item should start and end at

source

fn grid_column(&self) -> Line<GridPlacement>

Defines which column in the grid the item should start and end at

source

fn align_self(&self) -> Option<AlignSelf>

How this node should be aligned in the cross/block axis Falls back to the parents AlignItems if not set

source

fn justify_self(&self) -> Option<AlignSelf>

How this node should be aligned in the inline axis Falls back to the parents super::JustifyItems if not set

source

fn grid_placement(&self, axis: AbsoluteAxis) -> Line<GridPlacement>

Get a grid item’s row or column placement depending on the axis passed

Implementations on Foreign Types§

source§

impl<T: GridItemStyle> GridItemStyle for &T

Implementors§