Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
OneFontStyleSet Class Reference
Inheritance diagram for OneFontStyleSet:
SkFontStyleSet SkRefCnt SkRefCntBase

Public Member Functions

 OneFontStyleSet (sk_sp< SkTypeface > face)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Protected Member Functions

int count () override
 
void getStyle (int, SkFontStyle *out_style, SkString *) override
 
sk_sp< SkTypefacecreateTypeface (int index) override
 
sk_sp< SkTypefacematchStyle (const SkFontStyle &) override
 
- Protected Member Functions inherited from SkFontStyleSet
sk_sp< SkTypefacematchStyleCSS3 (const SkFontStyle &pattern)
 

Additional Inherited Members

- Static Public Member Functions inherited from SkFontStyleSet
static sk_sp< SkFontStyleSetCreateEmpty ()
 

Detailed Description

Definition at line 45 of file shape_text.cpp.

Constructor & Destructor Documentation

◆ OneFontStyleSet()

OneFontStyleSet::OneFontStyleSet ( sk_sp< SkTypeface face)
inlineexplicit

Definition at line 47 of file shape_text.cpp.

47: face_(face) {}

Member Function Documentation

◆ count()

int OneFontStyleSet::count ( )
inlineoverrideprotectedvirtual

Implements SkFontStyleSet.

Definition at line 50 of file shape_text.cpp.

50{ return 1; }

◆ createTypeface()

sk_sp< SkTypeface > OneFontStyleSet::createTypeface ( int  index)
inlineoverrideprotectedvirtual

Implements SkFontStyleSet.

Definition at line 54 of file shape_text.cpp.

54{ return face_; }

◆ getStyle()

void OneFontStyleSet::getStyle ( int  ,
SkFontStyle out_style,
SkString  
)
inlineoverrideprotectedvirtual

Implements SkFontStyleSet.

Definition at line 51 of file shape_text.cpp.

51 {
52 *out_style = SkFontStyle();
53 }

◆ matchStyle()

sk_sp< SkTypeface > OneFontStyleSet::matchStyle ( const SkFontStyle )
inlineoverrideprotectedvirtual

Implements SkFontStyleSet.

Definition at line 55 of file shape_text.cpp.

55{ return face_; }

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