Module layout

Module layout 

Source
Expand description

Runtime support for layouts.

Re-exports§

pub use crate::items::Orientation;

Structs§

BoxLayoutCellData
BoxLayoutData
The BoxLayoutData is used to represent both a Horizontal and Vertical layout. The width/height x/y correspond to that of a horizontal layout. For vertical layout, they are inverted
Constraint
GridLayoutCellData
GridLayoutData
LayoutInfo
The constraint that applies to an item
Padding

Functions§

box_layout_info
Return the LayoutInfo for a BoxLayout with the given cells.
box_layout_info_ortho
grid_layout_info
min_max_size_for_layout_constraints
Returns the logical min and max sizes given the provided layout constraints.
reorder_dialog_button_layout
Given the cells of a layout of a Dialog, re-order the button according to the platform
solve_box_layout
Solve a BoxLayout
solve_grid_layout
return, an array which is of size data.cells.len() * 2 which for each cell we give the pos, size