Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::ClusterEntry Struct Reference

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.

Detailed Description

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.

Member Data Documentation

◆ glyph_count

std::uint32_t pulp::canvas::ClusterEntry::glyph_count = 0

Glyph count for this cluster; 0 until glyph buffers are populated.

◆ glyph_start

std::uint32_t pulp::canvas::ClusterEntry::glyph_start = 0

First glyph in that run; 0 until glyph buffers are populated.

◆ run_index

std::uint32_t pulp::canvas::ClusterEntry::run_index = 0

Index into ShapedText::runs.

◆ utf8_end

std::uint32_t pulp::canvas::ClusterEntry::utf8_end = 0

UTF-8 byte offset (end, exclusive).

◆ utf8_start

std::uint32_t pulp::canvas::ClusterEntry::utf8_start = 0

UTF-8 byte offset (start, inclusive).


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/shaped_text.hpp