Expand description
Composable layouts.
Re-exports§
pub use self::grid::*;
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.
- 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.
- 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.
- 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
- A finished page.
- 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.
- Paged
Document - A finished document with metadata and page frames.
- Paper
- Specification of a paper.
- Place
Elem - Places content relatively to its parent container.
- Point
- A point in 2D.
- Position
- A physical position in a document.
- Ratio
- A ratio of a whole.
- 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.
- 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.
- 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.
- 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.
- HAlignment
- Where to align something horizontally.
- Inline
Item - Layouted items suitable for placing in a paragraph.
- Marginal
- A header, footer, foreground or background definition.
- OuterH
Alignment - A horizontal alignment which only allows
left
/right
andstart
/end
, thus excludingcenter
. - OuterV
Alignment - A vertical alignment which only allows
top
andbottom
, 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
H
andV
. - 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
layout
definitions. - 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.