Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skia::textlayout::LineMetrics Class Reference

#include <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 fStartIndex = 0
 
size_t fEndIndex = 0
 
size_t fEndExcludingWhitespaces = 0
 
size_t fEndIncludingNewline = 0
 
bool fHardBreak = false
 
double fAscent = SK_ScalarMax
 
double fDescent = SK_ScalarMin
 
double fUnscaledAscent = SK_ScalarMax
 
double fHeight = 0.0
 
double fWidth = 0.0
 
double fLeft = 0.0
 
double fBaseline = 0.0
 
size_t fLineNumber = 0
 
std::map< size_t, StyleMetricsfLineMetrics
 

Detailed Description

Definition at line 39 of file Metrics.h.

Constructor & Destructor Documentation

◆ LineMetrics() [1/2]

skia::textlayout::LineMetrics::LineMetrics ( )
inline

Definition at line 41 of file Metrics.h.

41{ }

◆ LineMetrics() [2/2]

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

Definition at line 43 of file Metrics.h.

48 : fStartIndex(start)
49 , fEndIndex(end)
50 , fEndExcludingWhitespaces(end_excluding_whitespace)
51 , fEndIncludingNewline(end_including_newline)
52 , fHardBreak(hard_break) {}

Member Data Documentation

◆ fAscent

double skia::textlayout::LineMetrics::fAscent = SK_ScalarMax

Definition at line 72 of file Metrics.h.

◆ fBaseline

double skia::textlayout::LineMetrics::fBaseline = 0.0

Definition at line 85 of file Metrics.h.

◆ fDescent

double skia::textlayout::LineMetrics::fDescent = SK_ScalarMin

Definition at line 73 of file Metrics.h.

◆ fEndExcludingWhitespaces

size_t skia::textlayout::LineMetrics::fEndExcludingWhitespaces = 0

Definition at line 58 of file Metrics.h.

◆ fEndIncludingNewline

size_t skia::textlayout::LineMetrics::fEndIncludingNewline = 0

Definition at line 59 of file Metrics.h.

◆ fEndIndex

size_t skia::textlayout::LineMetrics::fEndIndex = 0

Definition at line 57 of file Metrics.h.

◆ fHardBreak

bool skia::textlayout::LineMetrics::fHardBreak = false

Definition at line 60 of file Metrics.h.

◆ fHeight

double skia::textlayout::LineMetrics::fHeight = 0.0

Definition at line 78 of file Metrics.h.

◆ fLeft

double skia::textlayout::LineMetrics::fLeft = 0.0

Definition at line 83 of file Metrics.h.

◆ fLineMetrics

std::map<size_t, StyleMetrics> skia::textlayout::LineMetrics::fLineMetrics

Definition at line 92 of file Metrics.h.

◆ fLineNumber

size_t skia::textlayout::LineMetrics::fLineNumber = 0

Definition at line 87 of file Metrics.h.

◆ fStartIndex

size_t skia::textlayout::LineMetrics::fStartIndex = 0

Definition at line 56 of file Metrics.h.

◆ fUnscaledAscent

double skia::textlayout::LineMetrics::fUnscaledAscent = SK_ScalarMax

Definition at line 74 of file Metrics.h.

◆ fWidth

double skia::textlayout::LineMetrics::fWidth = 0.0

Definition at line 80 of file Metrics.h.


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