Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
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

double txt::LineMetrics::ascent = 0.0

Definition at line 48 of file line_metrics.h.

◆ baseline

double txt::LineMetrics::baseline = 0.0

Definition at line 61 of file line_metrics.h.

◆ descent

double txt::LineMetrics::descent = 0.0

Definition at line 49 of file line_metrics.h.

◆ end_excluding_whitespace

size_t txt::LineMetrics::end_excluding_whitespace = 0

Definition at line 34 of file line_metrics.h.

◆ end_including_newline

size_t txt::LineMetrics::end_including_newline = 0

Definition at line 35 of file line_metrics.h.

◆ end_index

size_t txt::LineMetrics::end_index = 0

Definition at line 33 of file line_metrics.h.

◆ hard_break

bool txt::LineMetrics::hard_break = false

Definition at line 36 of file line_metrics.h.

◆ height

double txt::LineMetrics::height = 0.0

Definition at line 54 of file line_metrics.h.

◆ left

double txt::LineMetrics::left = 0.0

Definition at line 59 of file line_metrics.h.

◆ line_number

size_t txt::LineMetrics::line_number = 0

Definition at line 63 of file line_metrics.h.

◆ run_metrics

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

Definition at line 68 of file line_metrics.h.

◆ start_index

size_t txt::LineMetrics::start_index = 0

Definition at line 32 of file line_metrics.h.

◆ unscaled_ascent

double txt::LineMetrics::unscaled_ascent = 0.0

Definition at line 50 of file line_metrics.h.

◆ width

double txt::LineMetrics::width = 0.0

Definition at line 56 of file line_metrics.h.


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