Expand description
Runtime support for layouts.
Re-exports§
pub use crate::items::Orientation;
Structs§
- BoxLayout
Cell Data - BoxLayout
Data - 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
- Grid
Layout Cell Data - Grid
Layout Data - Layout
Info - 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