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

#include <text_shaper.hpp>

Classes

struct  Fragment

Public Attributes

float width = 0
float y = 0
float ascent = 0
float descent = 0
float leading = 0
float height = 0
float x_offset = 0
 Horizontal offset from the block's own left edge.
int first_segment = 0
int segment_count = 0
std::string text
std::vector< Fragment > fragments

Member Data Documentation

◆ ascent

float pulp::canvas::ShapedLayout::Line::ascent = 0

◆ descent

float pulp::canvas::ShapedLayout::Line::descent = 0

◆ first_segment

int pulp::canvas::ShapedLayout::Line::first_segment = 0

◆ fragments

std::vector<Fragment> pulp::canvas::ShapedLayout::Line::fragments

◆ height

float pulp::canvas::ShapedLayout::Line::height = 0

◆ leading

float pulp::canvas::ShapedLayout::Line::leading = 0

◆ segment_count

int pulp::canvas::ShapedLayout::Line::segment_count = 0

◆ text

std::string pulp::canvas::ShapedLayout::Line::text

◆ width

float pulp::canvas::ShapedLayout::Line::width = 0

◆ x_offset

float pulp::canvas::ShapedLayout::Line::x_offset = 0

Horizontal offset from the block's own left edge.

Zero for text a shaper broke, because every such line starts at the edge. Non-zero only for a captured layout whose run resumes a line an earlier inline sibling began — the one case a block-relative origin cannot express, and the reason this field exists.

◆ y

float pulp::canvas::ShapedLayout::Line::y = 0

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