Flutter Engine
txt::LineMetrics Class Reference

#include <line_metrics.h>

Public Member Functions

 LineMetrics ()
 
 LineMetrics (size_t start, size_t end, size_t end_excluding_whitespace, size_t end_including_newline, bool hard_break)
 

Public Attributes

size_t start_index = 0
 
size_t end_index = 0
 
size_t end_excluding_whitespace = 0
 
size_t end_including_newline = 0
 
bool hard_break = false
 
double ascent = 0.0
 
double descent = 0.0
 
double unscaled_ascent = 0.0
 
double height = 0.0
 
double width = 0.0
 
double left = 0.0
 
double baseline = 0.0
 
size_t line_number = 0
 
std::map< size_t, RunMetricsrun_metrics
 

Detailed Description

Definition at line 27 of file line_metrics.h.

Constructor & Destructor Documentation

◆ LineMetrics() [1/2]

txt::LineMetrics::LineMetrics ( )

◆ LineMetrics() [2/2]

txt::LineMetrics::LineMetrics ( size_t  start,
size_t  end,
size_t  end_excluding_whitespace,
size_t  end_including_newline,
bool  hard_break 
)
inline

Member Data Documentation

◆ ascent

◆ baseline

◆ descent

◆ end_excluding_whitespace

size_t txt::LineMetrics::end_excluding_whitespace = 0

Definition at line 34 of file line_metrics.h.

Referenced by txt::ParagraphTxt::Layout().

◆ end_including_newline

size_t txt::LineMetrics::end_including_newline = 0

Definition at line 35 of file line_metrics.h.

Referenced by txt::ParagraphTxt::GetRectsForRange().

◆ end_index

size_t txt::LineMetrics::end_index = 0

◆ hard_break

bool txt::LineMetrics::hard_break = false

◆ height

double txt::LineMetrics::height = 0.0

Definition at line 54 of file line_metrics.h.

Referenced by txt::ParagraphSkia::GetLineMetrics(), and txt::ParagraphTxt::Layout().

◆ left

double txt::LineMetrics::left = 0.0

◆ line_number

size_t txt::LineMetrics::line_number = 0

◆ run_metrics

std::map<size_t, RunMetrics> txt::LineMetrics::run_metrics

Definition at line 68 of file line_metrics.h.

Referenced by txt::ParagraphSkia::GetLineMetrics(), and txt::ParagraphTxt::Layout().

◆ start_index

size_t txt::LineMetrics::start_index = 0

◆ unscaled_ascent

double txt::LineMetrics::unscaled_ascent = 0.0

◆ width

double txt::LineMetrics::width = 0.0

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