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

#include <TextStyle.h>

Public Member Functions

 Block ()=default
 
 Block (size_t start, size_t end, const TextStyle &style)
 
 Block (TextRange textRange, const TextStyle &style)
 
void add (TextRange tail)
 

Public Attributes

TextRange fRange = EMPTY_RANGE
 
TextStyle fStyle
 

Detailed Description

Definition at line 340 of file TextStyle.h.

Constructor & Destructor Documentation

◆ Block() [1/3]

skia::textlayout::Block::Block ( )
default

◆ Block() [2/3]

skia::textlayout::Block::Block ( size_t  start,
size_t  end,
const TextStyle style 
)
inline

Definition at line 342 of file TextStyle.h.

342: fRange(start, end), fStyle(style) {}

◆ Block() [3/3]

skia::textlayout::Block::Block ( TextRange  textRange,
const TextStyle style 
)
inline

Definition at line 343 of file TextStyle.h.

343: fRange(textRange), fStyle(style) {}

Member Function Documentation

◆ add()

void skia::textlayout::Block::add ( TextRange  tail)
inline

Definition at line 345 of file TextStyle.h.

345 {
346 SkASSERT(fRange.end == tail.start);
348 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
SkRange< size_t > TextRange
Definition: TextStyle.h:337

Member Data Documentation

◆ fRange

TextRange skia::textlayout::Block::fRange = EMPTY_RANGE

Definition at line 350 of file TextStyle.h.

◆ fStyle

TextStyle skia::textlayout::Block::fStyle

Definition at line 351 of file TextStyle.h.


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