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

Public Member Functions

bool addToGlyphsIfNotAlready (GlyphInfo glyph)
 
int childCount () const
 

Public Attributes

uint glyphIndex = 0
 
QVector< GlyphInfoglyphs
 
uint ucs = invalidUnicodeCodePoint
 
QString utfString = QString()
 

Detailed Description

Definition at line 40 of file KoFontGlyphModel.cpp.

Member Function Documentation

◆ addToGlyphsIfNotAlready()

bool KoFontGlyphModel::Private::CodePointInfo::addToGlyphsIfNotAlready ( GlyphInfo glyph)
inline

Definition at line 50 of file KoFontGlyphModel.cpp.

50 {
51 bool addToGlyphs = true;
52 for (auto g = glyphs.begin(); g != glyphs.end(); g++) {
53 addToGlyphs = !g->compare(glyph);
54 if (!addToGlyphs) break;
55 }
56 if (addToGlyphs) {
57 glyphs.append(glyph);
58 }
59 return addToGlyphs;
60 }

References glyphs.

◆ childCount()

int KoFontGlyphModel::Private::CodePointInfo::childCount ( ) const
inline

Definition at line 46 of file KoFontGlyphModel.cpp.

46 {
47 return glyphs.size();
48 }

References glyphs.

Member Data Documentation

◆ glyphIndex

uint KoFontGlyphModel::Private::CodePointInfo::glyphIndex = 0

Definition at line 42 of file KoFontGlyphModel.cpp.

◆ glyphs

QVector<GlyphInfo> KoFontGlyphModel::Private::CodePointInfo::glyphs

Definition at line 45 of file KoFontGlyphModel.cpp.

◆ ucs

uint KoFontGlyphModel::Private::CodePointInfo::ucs = invalidUnicodeCodePoint

Definition at line 41 of file KoFontGlyphModel.cpp.

◆ utfString

QString KoFontGlyphModel::Private::CodePointInfo::utfString = QString()

Definition at line 43 of file KoFontGlyphModel.cpp.


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