Krita Source Code Documentation
Loading...
Searching...
No Matches
OpenTypeFeatureModel::Private Struct Reference

Public Member Functions

QList< KoOpenTypeFeatureInfoavailableFeatures () const
 
KoOpenTypeFeatureInfo featureByTag (QLatin1String tag) const
 
 Private (QObject *parent)
 

Public Attributes

AllOpenTypeFeaturesModelallFeatures {nullptr}
 
QVariantMap currentFeatures
 
KoOpenTypeFeatureInfoFactory factory
 
KoCSSFontInfo fontInfo
 
KoFontGlyphModelglyphModel {nullptr}
 

Detailed Description

Definition at line 19 of file OpenTypeFeatureModel.cpp.

Constructor & Destructor Documentation

◆ Private()

OpenTypeFeatureModel::Private::Private ( QObject * parent)
inline

Definition at line 20 of file OpenTypeFeatureModel.cpp.

23 {
24 }
The KoFontGlyphModel class Creates a tree model of all the glyphs in a given face.
QModelIndex parent(const QModelIndex &index) const override
AllOpenTypeFeaturesModel * allFeatures

Member Function Documentation

◆ availableFeatures()

QList< KoOpenTypeFeatureInfo > OpenTypeFeatureModel::Private::availableFeatures ( ) const
inline

Definition at line 26 of file OpenTypeFeatureModel.cpp.

26 {
27 if (glyphModel) {
28 return glyphModel->featureInfo().values();
29 }
31 }
QMap< QString, KoOpenTypeFeatureInfo > featureInfo() const
featureInfo

References KoFontGlyphModel::featureInfo(), and glyphModel.

◆ featureByTag()

KoOpenTypeFeatureInfo OpenTypeFeatureModel::Private::featureByTag ( QLatin1String tag) const
inline

Definition at line 33 of file OpenTypeFeatureModel.cpp.

33 {
35 if (glyphModel) {
36 info = glyphModel->featureInfo().value(tag, info);
37 }
38 return info;
39 }
KoOpenTypeFeatureInfo infoByTag(const QLatin1String &tag) const
infoByTag
KoOpenTypeFeatureInfoFactory factory

References factory, KoFontGlyphModel::featureInfo(), glyphModel, and KoOpenTypeFeatureInfoFactory::infoByTag().

Member Data Documentation

◆ allFeatures

AllOpenTypeFeaturesModel* OpenTypeFeatureModel::Private::allFeatures {nullptr}

Definition at line 42 of file OpenTypeFeatureModel.cpp.

42{nullptr};

◆ currentFeatures

QVariantMap OpenTypeFeatureModel::Private::currentFeatures

Definition at line 45 of file OpenTypeFeatureModel.cpp.

◆ factory

KoOpenTypeFeatureInfoFactory OpenTypeFeatureModel::Private::factory

Definition at line 43 of file OpenTypeFeatureModel.cpp.

◆ fontInfo

KoCSSFontInfo OpenTypeFeatureModel::Private::fontInfo

Definition at line 44 of file OpenTypeFeatureModel.cpp.

◆ glyphModel

KoFontGlyphModel* OpenTypeFeatureModel::Private::glyphModel {nullptr}

Definition at line 41 of file OpenTypeFeatureModel.cpp.

41{nullptr};

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