Expand description
Composable layouts.
Re-exports§
- pub use self::grid::*;
Modules§
Structs§
- Abs
- An absolute length.
- AlignElem 
- Aligns content horizontally and vertically.
- Angle
- An angle describing a rotation.
- Axes
- A container with a horizontal and vertical component.
- BlockElem 
- A block-level container.
- BoxElem
- An inline-level container that sizes content.
- ColbreakElem 
- Forces a column break.
- ColumnsElem 
- 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.
- FlushElem 
- 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.
- FrameParent 
- The parent of a GroupItem. The child will be logically ordered at the end but still inside of the parent.
- GroupItem 
- A subframe with optional transformation and clipping.
- HElem
- Inserts horizontal spacing into a paragraph.
- HideElem 
- Hides content without affecting layout.
- InlineElem 
- An inline-level container that can produce arbitrary items that can break across lines.
- LayoutElem 
- Executes a layoutcall.
- Length
- A size or distance, possibly expressed with contextual units.
- Margin
- Specification of the page’s margins.
- MoveElem 
- Moves content without affecting layout.
- PadElem
- Adds spacing around content.
- Page
- A finished page.
- PageElem 
- Layouts its child onto one or multiple pages.
- PageRanges 
- A list of page ranges to be exported.
- PagebreakElem 
- A manual page break.
- PagedDocument 
- A finished document with metadata and page frames.
- Paper
- Specification of a paper.
- PlaceElem 
- 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.
- 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.
- RepeatElem 
- Repeats content to the available space.
- RotateElem 
- Rotates content without affecting layout.
- ScaleElem 
- Scales content without affecting layout.
- Sides
- A container with left, top, right and bottom components.
- SkewElem 
- Skews content.
- StackElem 
- 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.
- AngleUnit 
- Different units of angular measurement.
- Axis
- The two layouting axes.
- Binding
- Specification of the page’s binding.
- BlockBody 
- The contents of a block.
- Corner
- The four corners of a rectangle.
- Dir
- The four directions into which content can be laid out.
- FixedAlignment 
- A fixed alignment in the global coordinate space.
- FrameItem 
- The building block frames are composed of.
- FrameKind 
- The hardness of a frame.
- HAlignment
- Where to align something horizontally.
- Inherit
- Whether the child has inherited the parent’s styles.
- InlineItem 
- Layouted items suitable for placing in a paragraph.
- OuterHAlignment 
- A horizontal alignment which only allows left/rightandstart/end, thus excludingcenter.
- OuterVAlignment 
- A vertical alignment which only allows topandbottom, thus excludinghorizon.
- Parity
- Whether something should be even or odd.
- PlacementScope 
- Relative to which containing scope something shall be placed.
- Quadrant
- A quadrant of the Cartesian plane.
- ScaleAmount 
- 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.
- SpecificAlignment 
- An internal representation that combines horizontal or vertical alignments. The
allowed alignment positions are designated by the type parameter HandV.
- StackChild 
- 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.