Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skia::textlayout::StyleBlock< TStyle > Struct Template Reference

#include <ParagraphImpl.h>

Public Member Functions

 StyleBlock ()
 
 StyleBlock (size_t start, size_t end, const TStyle &style)
 
 StyleBlock (TextRange textRange, const TStyle &style)
 
void add (TextRange tail)
 

Public Attributes

TextRange fRange
 
TStyle fStyle
 

Detailed Description

template<typename TStyle>
struct skia::textlayout::StyleBlock< TStyle >

Definition at line 52 of file ParagraphImpl.h.

Constructor & Destructor Documentation

◆ StyleBlock() [1/3]

template<typename TStyle >
skia::textlayout::StyleBlock< TStyle >::StyleBlock ( )
inline

Definition at line 53 of file ParagraphImpl.h.

const SkRange< size_t > EMPTY_RANGE
Definition: DartTypes.h:128

◆ StyleBlock() [2/3]

template<typename TStyle >
skia::textlayout::StyleBlock< TStyle >::StyleBlock ( size_t  start,
size_t  end,
const TStyle &  style 
)
inline

Definition at line 54 of file ParagraphImpl.h.

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

◆ StyleBlock() [3/3]

template<typename TStyle >
skia::textlayout::StyleBlock< TStyle >::StyleBlock ( TextRange  textRange,
const TStyle &  style 
)
inline

Definition at line 55 of file ParagraphImpl.h.

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

Member Function Documentation

◆ add()

template<typename TStyle >
void skia::textlayout::StyleBlock< TStyle >::add ( TextRange  tail)
inline

Definition at line 56 of file ParagraphImpl.h.

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

Member Data Documentation

◆ fRange

template<typename TStyle >
TextRange skia::textlayout::StyleBlock< TStyle >::fRange

Definition at line 60 of file ParagraphImpl.h.

◆ fStyle

template<typename TStyle >
TStyle skia::textlayout::StyleBlock< TStyle >::fStyle

Definition at line 61 of file ParagraphImpl.h.


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