[][src]Trait sixtyfps_compilerlib::layout::gen::Language

pub trait Language: Sized {
    type CompiledCode;
    pub fn make_grid_layout_cell_data<'a, 'b>(
        item: &'a LayoutItem,
        col: u16,
        row: u16,
        colspan: u16,
        rowspan: u16,
        layout_tree: &'b mut Vec<LayoutTreeItem<'a, Self>>,
        component: &Rc<Component>
    ) -> Self::CompiledCode;
pub fn grid_layout_tree_item<'a, 'b>(
        layout_tree: &'b mut Vec<LayoutTreeItem<'a, Self>>,
        geometry: &'a LayoutGeometry,
        cells: Vec<Self::CompiledCode>,
        component: &Rc<Component>
    ) -> LayoutTreeItem<'a, Self>;
pub fn box_layout_tree_item<'a, 'b>(
        layout_tree: &'b mut Vec<LayoutTreeItem<'a, Self>>,
        box_layout: &'a BoxLayout,
        component: &Rc<Component>
    ) -> LayoutTreeItem<'a, Self>; }

Associated Types

Loading content...

Required methods

pub fn make_grid_layout_cell_data<'a, 'b>(
    item: &'a LayoutItem,
    col: u16,
    row: u16,
    colspan: u16,
    rowspan: u16,
    layout_tree: &'b mut Vec<LayoutTreeItem<'a, Self>>,
    component: &Rc<Component>
) -> Self::CompiledCode
[src]

Generate the code that instentiate the runtime struct GridLayoutCellData for the given cell parameter

pub fn grid_layout_tree_item<'a, 'b>(
    layout_tree: &'b mut Vec<LayoutTreeItem<'a, Self>>,
    geometry: &'a LayoutGeometry,
    cells: Vec<Self::CompiledCode>,
    component: &Rc<Component>
) -> LayoutTreeItem<'a, Self>
[src]

Returns a LayoutTree::GridLayout

cells is the list of runtime GridLayoutCellData

pub fn box_layout_tree_item<'a, 'b>(
    layout_tree: &'b mut Vec<LayoutTreeItem<'a, Self>>,
    box_layout: &'a BoxLayout,
    component: &Rc<Component>
) -> LayoutTreeItem<'a, Self>
[src]

Returns a LayoutTree:BoxLayout

Loading content...

Implementors

Loading content...