LayoutGridContainer

Trait LayoutGridContainer 

Source
pub trait LayoutGridContainer: LayoutPartialTree {
    type GridContainerStyle<'a>: GridContainerStyle<CustomIdent = Self::CustomIdent>
       where Self: 'a;
    type GridItemStyle<'a>: GridItemStyle<CustomIdent = Self::CustomIdent>
       where Self: 'a;

    // Required methods
    fn get_grid_container_style(
        &self,
        node_id: NodeId,
    ) -> Self::GridContainerStyle<'_>;
    fn get_grid_child_style(
        &self,
        child_node_id: NodeId,
    ) -> Self::GridItemStyle<'_>;
}
Expand description

Extends LayoutPartialTree with getters for the styles required for CSS Grid layout

Required Associated Types§

Source

type GridContainerStyle<'a>: GridContainerStyle<CustomIdent = Self::CustomIdent> where Self: 'a

The style type representing the CSS Grid container’s styles

Source

type GridItemStyle<'a>: GridItemStyle<CustomIdent = Self::CustomIdent> where Self: 'a

The style type representing each CSS Grid item’s styles

Required Methods§

Source

fn get_grid_container_style( &self, node_id: NodeId, ) -> Self::GridContainerStyle<'_>

Get the container’s styles

Source

fn get_grid_child_style(&self, child_node_id: NodeId) -> Self::GridItemStyle<'_>

Get the child’s styles

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§