ludus::text::LayoutView¶
Ludus Wiki · API overview · Browse API
Struct
Borrowed, read-only view over a layout's immutable storage.
Valid until that layout or the owning FontSystem is destroyed; creating or destroying other layouts never relocates this storage.
Declared in modules/text/include/ludus/text/font_system.h
#include <ludus/text/font_system.h>
struct ludus::text::LayoutView final
Fields¶
Font¶
FontId ludus::text::LayoutView::Font
Related types: FontId
Declared in modules/text/include/ludus/text/font_system.h
PixelHeight¶
uint32 ludus::text::LayoutView::PixelHeight = 0
Related types: uint32
Declared in modules/text/include/ludus/text/font_system.h
TextDirection¶
Direction ludus::text::LayoutView::TextDirection = Direction::LeftToRight
Related types: Direction
Declared in modules/text/include/ludus/text/font_system.h
Glyphs¶
std::span<const ShapedGlyph> ludus::text::LayoutView::Glyphs
Related types: ShapedGlyph
Declared in modules/text/include/ludus/text/font_system.h
SourceUtf8¶
std::string_view ludus::text::LayoutView::SourceUtf8
Declared in modules/text/include/ludus/text/font_system.h
Metrics¶
LayoutMetrics ludus::text::LayoutView::Metrics
Related types: LayoutMetrics