Crate pane

Source
Expand description

This crate provides a data structure for text alignment. Rectangular Panes (which may have smaller, child Panes) 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
TextFormat
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§

CharacterWidthCache
Defines behavior of a cache of character widths.
NamedWeightedPane
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§

PositionedLines
Lines that have starting positions