|
| CopiedText | MayaFlux::Portal::Text::copy (std::string_view text, const LayoutResult &layout, size_t a, size_t b) |
| | Copy a byte range: the text it spans, and the quads that render it.
|
| |
| std::string | MayaFlux::Portal::Text::encode_utf8 (uint32_t codepoint) |
| | Encode a Unicode codepoint as a UTF-8 byte sequence.
|
| |
| size_t | MayaFlux::Portal::Text::index_at (std::string_view text, const LayoutResult &layout, GlyphAtlas &atlas, float x, float y, float pen_x=0.F, float pen_y=0.F, uint32_t wrap_w=0, uint32_t tab_width=4) |
| | Byte offset of the codepoint boundary nearest a screen-space point.
|
| |
| bool | MayaFlux::Portal::Text::is_control (uint32_t codepoint) noexcept |
| | True if a codepoint must never be rasterized or treated as printable content.
|
| |
| LayoutResult | MayaFlux::Portal::Text::lay_out (std::string_view text, GlyphAtlas &atlas, float pen_x=0.F, float pen_y=0.F, uint32_t wrap_w=0, uint32_t tab_width=4) |
| | Lay out a UTF-8 string into a sequence of screen-space quads.
|
| |
| size_t | MayaFlux::Portal::Text::next_codepoint_offset (std::string_view text, size_t byte_offset) |
| | Byte offset of the codepoint boundary after byte_offset.
|
| |
| size_t | MayaFlux::Portal::Text::previous_codepoint_offset (std::string_view text, size_t byte_offset) |
| | Byte offset of the codepoint boundary before byte_offset.
|
| |
| PenPosition | MayaFlux::Portal::Text::x_at (std::string_view text, GlyphAtlas &atlas, size_t byte_offset, float pen_x=0.F, float pen_y=0.F, uint32_t wrap_w=0, uint32_t tab_width=4) |
| | Pen position immediately before byte_offset, in lay_out()'s space.
|
| |