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

Line-break opportunity used by the line layout step. More...

#include <shaped_text.hpp>

Public Types

enum class  Kind : std::uint8_t { Soft , Hard }

Public Attributes

std::uint32_t utf8_offset = 0
enum pulp::canvas::LineBreakOpportunity::Kind kind = Kind::Soft

Detailed Description

Line-break opportunity used by the line layout step.

The planner currently emits hard-newline and whitespace break opportunities; a future ICU BreakIterator path can add locale-aware dictionary breaks without changing this data shape.

Member Enumeration Documentation

◆ Kind

enum class pulp::canvas::LineBreakOpportunity::Kind : std::uint8_t
strong
Enumerator
Soft 

Wrap allowed (whitespace / discretionary).

Hard 

Wrap required (U+000A, U+2028, U+2029).

Member Data Documentation

◆ kind

enum pulp::canvas::LineBreakOpportunity::Kind pulp::canvas::LineBreakOpportunity::kind = Kind::Soft

◆ utf8_offset

std::uint32_t pulp::canvas::LineBreakOpportunity::utf8_offset = 0

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