[][src]Module kas::layout

Layout solver

This is only of interest if building a custom widget with children.

Structs

AxisInfo

Information on which axis is being resized

DynGridStorage

Variable-length row storage

DynRowStorage

Variable-length row storage

FixedGridStorage
FixedRowStorage

Fixed-length row storage

GridChildInfo

Per-child information

GridSetter
GridSolver

A RulesSolver for grids supporting cell-spans

Margins

Margin sizes

RowPositionSolver

Allows efficient implementations of draw / event handlers based on the layout representation.

RowSetter

A RulesSetter for rows (and, without loss of generality, for columns).

RowSolver

A RulesSolver for rows (and, without loss of generality, for columns).

SingleSetter

RulesSetter implementation for a fixed single-child layout

SingleSolver

RulesSolver implementation for a fixed single-child layout

SizeRules

Widget sizing information

Enums

StretchPolicy

Policy for stretching widgets beyond ideal size

Traits

GridStorage

Requirements of grid solver storage type

RowStorage

Requirements of row solver storage type

RowTemp

Temporary storage type.

RulesSetter

Resolves a RulesSolver solution for each child

RulesSolver

A SizeRules solver for layouts

Storage

Master trait over storage types

Functions

solve

Solve widget for SizeRules on both axes, horizontal first.