Module text

Module text 

Source
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.

See also crate::theme::Text which provides better integration with KAS theming and widget sizing operations.

Modules§

fonts
Font selection and loading
format
Parsers for formatted text

Structs§

AccessString
An access key string
DPU
Scale factor: pixels per font unit
Effect
Effect formatting marker
EffectFlags
Text effects
MarkerPos
Used to return the position of a glyph with associated metrics
MarkerPosIter
NotReady
Error returned on operations if not ready
OwningVecIter
An iterator over a Vec which clones elements
Range
Range type
SelectionAction
Action used by crate::event::components::TextInput
SelectionHelper
Text-selection logic
Text
Text type-setting object (high-level API)
TextDisplay
Text type-setting object (low-level, without text and configuration)
Vec2
2D vector (position/size/offset) over f32

Enums§

Align
Alignment of contents
Direction
Directionality of text
Status
Describes the state-of-preparation of a TextDisplay