Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::TextEditor::LayoutSnapshot::Line Struct Reference

#include <text_editor.hpp>

Public Attributes

int start = 0
int end = 0
float baseline_y = 0.f
float top_y = 0.f
float inner_x = 0.f
float line_height = 0.f
std::vector< float > x_offsets
 Cumulative x of each char start; size = (end-start)+1.
std::vector< int > byte_offsets
 UTF-8 byte offset in text_ for each x_offsets entry.

Member Data Documentation

◆ baseline_y

float pulp::view::TextEditor::LayoutSnapshot::Line::baseline_y = 0.f

◆ byte_offsets

std::vector<int> pulp::view::TextEditor::LayoutSnapshot::Line::byte_offsets

UTF-8 byte offset in text_ for each x_offsets entry.

◆ end

int pulp::view::TextEditor::LayoutSnapshot::Line::end = 0

◆ inner_x

float pulp::view::TextEditor::LayoutSnapshot::Line::inner_x = 0.f

◆ line_height

float pulp::view::TextEditor::LayoutSnapshot::Line::line_height = 0.f

◆ start

int pulp::view::TextEditor::LayoutSnapshot::Line::start = 0

◆ top_y

float pulp::view::TextEditor::LayoutSnapshot::Line::top_y = 0.f

◆ x_offsets

std::vector<float> pulp::view::TextEditor::LayoutSnapshot::Line::x_offsets

Cumulative x of each char start; size = (end-start)+1.

Built once per cache-key change rather than per paint.


The documentation for this struct was generated from the following file: