Expand description
Composable layouts.
Modules§
Structs§
- Abs
- An absolute length.
- Align
Elem - Aligns content horizontally and vertically.
- Angle
- An angle describing a rotation.
- Axes
- A container with a horizontal and vertical component.
- Baseline
Pos - Configuration for a box’s baseline.
- Block
Elem - A block-level container.
- BoxElem
- An inline-level container that sizes content.
- Colbreak
Elem - Forces a column break.
- Columns
Elem - Separates a region into multiple equally sized columns.
- Corners
- A container with components for the four corners of a rectangle.
- Em
- A length that is relative to the font size.
- Flush
Elem - Asks the layout algorithm to place pending floating elements before continuing with the content.
- Fr
- Defines how the remaining space in a layout is distributed.
- Fragment
- A partial layout result.
- Frame
- A finished layout with items at fixed positions.
- Frame
Parent - The parent of a
GroupItem. The child will be logically ordered at the end but still inside of the parent. - Grid
Cell - A cell in the grid.
- Grid
Elem - Arranges content in a grid.
- Grid
Footer - A repeatable grid footer.
- GridH
Line - A horizontal line in the grid.
- Grid
Header - A repeatable grid header.
- GridV
Line - A vertical line in the grid.
- Group
Item - A subframe with optional transformation and clipping.
- HElem
- Inserts horizontal spacing into a paragraph.
- Hide
Elem - Hides content without affecting layout.
- Inline
Elem - An inline-level container that can produce arbitrary items that can break across lines.
- Layout
Elem - Executes a
layoutcall. - Length
- A size or distance, possibly expressed with contextual units.
- Margin
- Specification of the page’s margins.
- Move
Elem - Moves content without affecting layout.
- PadElem
- Adds spacing around content.
- Page
Elem - Layouts its child onto one or multiple pages.
- Page
Ranges - A list of page ranges to be exported.
- Pagebreak
Elem - A manual page break.
- Paper
- Specification of a paper.
- Place
Elem - Places content relatively to its parent container.
- Point
- A point in 2D.
- Ratio
- A ratio of a whole.
- Rect
- A rectangle in 2D.
- Region
- A single region to layout into.
- Regions
- A sequence of regions to layout into.
- Rel
- A length in relation to some known length.
- Repeat
Elem - Repeats content to the available space.
- Resolved
Celled - The result of resolving a Celled’s value according to styles. Holds resolved values which depend on each grid cell’s position. When it is a closure, however, it is only resolved when the closure is called.
- Rotate
Elem - Rotates content without affecting layout.
- Scale
Elem - Scales content without affecting layout.
- Sides
- A container with left, top, right and bottom components.
- Skew
Elem - Skews content.
- Stack
Elem - Arranges content and spacing horizontally or vertically.
- Track
Sizings - Track sizing definitions.
- Transform
- A scale-skew-translate transformation.
- VElem
- Inserts vertical spacing into a flow of blocks.
Enums§
- AbsUnit
- Different units of absolute measurement.
- Alignment
- Where to align something along an axis.
- Angle
Unit - Different units of angular measurement.
- Axis
- The two layouting axes.
- Binding
- Specification of the page’s binding.
- Block
Body - The contents of a block.
- Celled
- A value that can be configured per cell.
- Corner
- The four corners of a rectangle.
- Dir
- The four directions into which content can be laid out.
- Fixed
Alignment - A fixed alignment in the global coordinate space.
- Frame
Item - The building block frames are composed of.
- Frame
Kind - The hardness of a frame.
- Grid
Child - Any child of a grid element.
- Grid
Item - A grid item, which is the basic unit of grid specification.
- HAlignment
- Where to align something horizontally.
- Inherit
- Whether the child has inherited the parent’s styles.
- Inline
Item - Layouted items suitable for placing in a paragraph.
- OuterH
Alignment - A horizontal alignment which only allows
left/rightandstart/end, thus excludingcenter. - OuterV
Alignment - A vertical alignment which only allows
topandbottom, thus excludinghorizon. - Parity
- Whether something should be even or odd.
- Placement
Scope - Relative to which containing scope something shall be placed.
- Quadrant
- A quadrant of the Cartesian plane.
- Scale
Amount - To what size something shall be scaled.
- Side
- The four sides of objects.
- Sizing
- Defines how to size something along an axis.
- Spacing
- Kinds of spacing.
- Specific
Alignment - An internal representation that combines horizontal or vertical alignments. The
allowed alignment positions are designated by the type parameter
HandV. - Stack
Child - A child of a stack element.
- VAlignment
- Where to align something vertically.
Traits§
- FixAlignment
- Alignment on this axis can be fixed to an absolute direction.
Functions§
- define
- Hook up all
layoutdefinitions. - layout
- Provides access to the current outer container’s (or page’s, if none) dimensions (width and height).
- measure
- Measures the layouted size of content.