One grapheme cluster in the input. More...
#include <shaped_text.hpp>
Public Attributes | |
| std::uint32_t | utf8_start = 0 |
| UTF-8 byte offset (start, inclusive). | |
| std::uint32_t | utf8_end = 0 |
| UTF-8 byte offset (end, exclusive). | |
| std::uint32_t | run_index = 0 |
| Index into ShapedText::runs. | |
| std::uint32_t | glyph_start = 0 |
| First glyph in that run; 0 until glyph buffers are populated. | |
| std::uint32_t | glyph_count = 0 |
| Glyph count for this cluster; 0 until glyph buffers are populated. | |
One grapheme cluster in the input.
The planner builds these with the shared cluster_step() walker so editor movement, selection, and text measurement use the same UTF-8 cluster ranges.
| std::uint32_t pulp::canvas::ClusterEntry::glyph_count = 0 |
Glyph count for this cluster; 0 until glyph buffers are populated.
| std::uint32_t pulp::canvas::ClusterEntry::glyph_start = 0 |
First glyph in that run; 0 until glyph buffers are populated.
| std::uint32_t pulp::canvas::ClusterEntry::run_index = 0 |
Index into ShapedText::runs.
| std::uint32_t pulp::canvas::ClusterEntry::utf8_end = 0 |
UTF-8 byte offset (end, exclusive).
| std::uint32_t pulp::canvas::ClusterEntry::utf8_start = 0 |
UTF-8 byte offset (start, inclusive).