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

One contiguous span of text that shares a single bidi embedding level. More...

#include <bidi.hpp>

Public Member Functions

constexpr bool is_rtl () const noexcept
constexpr std::uint32_t end () const noexcept

Public Attributes

std::uint32_t start = 0
std::uint32_t length = 0
std::uint8_t level = 0
 0 = LTR; odd levels (1, 3, …) = RTL.

Detailed Description

One contiguous span of text that shares a single bidi embedding level.

start + length are byte offsets / byte lengths into the input UTF-8. Runs returned by analyze() are in logical order; runs returned by visual_order() are in visual (paint) order.

Member Function Documentation

◆ end()

std::uint32_t pulp::canvas::BidiRun::end ( ) const
inlineconstexprnoexcept

◆ is_rtl()

bool pulp::canvas::BidiRun::is_rtl ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ length

std::uint32_t pulp::canvas::BidiRun::length = 0

◆ level

std::uint8_t pulp::canvas::BidiRun::level = 0

0 = LTR; odd levels (1, 3, …) = RTL.

◆ start

std::uint32_t pulp::canvas::BidiRun::start = 0

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