Expand description
This crate provides a data structure for text alignment. Rectangular Pane
s (which may have smaller, child Pane
s)
can be defined, and the positions of characters of text within them can be calculated.
The graphics
feature, which is on by default, allow the direct rendering of a Pane
with the piston2d-graphics
crate.
Re-exports§
pub use self::color::Color;
Modules§
- color
- Defines serveral color constants
- math
- Traits for doing vector geometry with built-in types
- prelude
- A prelud containing commonly used items in
Pane
Structs§
- Glyphs
- A basic implememntor for
CharacterWidthCache
- Pane
- A rectangle which automatically determines the positions and sizes of things withing it
- Text
Format - A format for some text
Enums§
- Contents
- Possible content of a
Pane
- Justification
- A horizantal text justification
- Orientation
- An orientation for splitting a
Pane
- Resize
- A way of resizing text in a rectangle
Traits§
- Character
Width Cache - Defines behavior of a cache of character widths.
- Named
Weighted Pane - Defines conversion into a child
Pane
with a weight and optional name
Functions§
- justified_
text - Draw justified text to something using the
piston2d-graphics
crate
Type Aliases§
- Positioned
Lines - Lines that have starting positions