Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkOTUtils::LocalizedStrings_SingleName Class Reference

#include <SkOTUtils.h>

Inheritance diagram for SkOTUtils::LocalizedStrings_SingleName:
SkTypeface::LocalizedStrings

Public Member Functions

 LocalizedStrings_SingleName (SkString name, SkString language)
 
bool next (SkTypeface::LocalizedString *localizedString) override
 
- Public Member Functions inherited from SkTypeface::LocalizedStrings
 LocalizedStrings ()=default
 
virtual ~LocalizedStrings ()
 
virtual bool next (LocalizedString *localizedString)=0
 
void unref ()
 

Detailed Description

An implementation of LocalizedStrings which has one name.

Definition at line 80 of file SkOTUtils.h.

Constructor & Destructor Documentation

◆ LocalizedStrings_SingleName()

SkOTUtils::LocalizedStrings_SingleName::LocalizedStrings_SingleName ( SkString  name,
SkString  language 
)
inline

Definition at line 82 of file SkOTUtils.h.

83 : fName(std::move(name)), fLanguage(std::move(language)), fHasNext(true) {}
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Member Function Documentation

◆ next()

bool SkOTUtils::LocalizedStrings_SingleName::next ( SkTypeface::LocalizedString localizedString)
inlineoverridevirtual

Implements SkTypeface::LocalizedStrings.

Definition at line 85 of file SkOTUtils.h.

85 {
86 localizedString->fString = fName;
87 localizedString->fLanguage = fLanguage;
88
89 bool hadNext = fHasNext;
90 fHasNext = false;
91 return hadNext;
92 }

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