Expand description
Text functionality
Most of this module is simply a re-export of the KAS Text API, hence the lower level of integration than other parts of the library.
Text
objects must be prepared before usage, otherwise they may appear
empty. Call ConfigCx::text_set_size
from Layout::set_rect
to set
text position and prepare. If text is adjusted, one may use e.g.
TextApi::prepare
to update.
Modules
- Font selection and loading
- Parsers for formatted text
- Support for rastering glyphs
Structs
- An access key string
- Scale factor: pixels per font unit
- Effect formatting marker
- Text effects
- Environment in which text is prepared for display
- A positioned glyph
- A type-safe wrapper for glyph ID.
- Used to return the position of a glyph with associated metrics
- Error returned on operations if not ready
- An iterator over a
Vec
which clones elements - Range type
- Action used by
crate::event::components::TextInput
- Text-selection logic
- Text, prepared for display in a given environment
- Text display, without source text representation
- 2D vector (position/size/offset) over
f32
Enums
- Describes required text-preparation actions
- Alignment of contents
- Directionality of text