|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One in-game font character: its code, output text, and classification flags. More...
#include <fontdbentry.h>
Public Member Functions | |
| int | getInd () const |
| < Font code. | |
| const QString | getName () const |
| bool | getShorthand () const |
| bool | getPicture () const |
| int | getLength () const |
| const QString | getAlias () const |
| const QString | getTip () const |
| bool | getControl () const |
| bool | getMultiChar () const |
| bool | getVariable () const |
| bool | getSingleChar () const |
| bool | getNormal () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| FontDBEntry () | |
| Empty entry (built by FontsDB). | |
| FontDBEntry (const QJsonValue &data) | |
| Build from a JSON value. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| int | ind = 0 |
| QString | name = "" |
| bool | shorthand = false |
| bool | picture = false |
| int | length = 0 |
| QString | alias = "" |
| QString | tip = "" |
| bool | control = false |
| bool | multiChar = false |
| bool | variable = false |
| bool | singleChar = false |
| bool | normal = false |
Friends | |
| class | FontsDB |
| class | FontSearch |
One in-game font character: its code, output text, and classification flags.
QObject-getter style DB entry. Beyond the code/name it carries a set of boolean classification flags (control/picture/variable/single-/multi-char/normal) that the on-screen keyboard and FontSearch use to filter and categorise glyphs. The field comments below define each flag. FontSearch is a friend so it can read the filter fields.
Definition at line 43 of file fontdbentry.h.
|
protected |
Empty entry (built by FontsDB).
Definition at line 26 of file fontdbentry.cpp.
References qmlRegister().
|
protected |
Build from a JSON value.
Definition at line 94 of file fontdbentry.cpp.
References alias, control, ind, length, multiChar, name, normal, picture, qmlRegister(), shorthand, singleChar, tip, and variable.
| const QString FontDBEntry::getAlias | ( | ) | const |
| bool FontDBEntry::getControl | ( | ) | const |
| int FontDBEntry::getInd | ( | ) | const |
< Font code.
Output text. Output is shorthand for longer text. Uses the tilemap, not the font. Output length (or max length). Alternate display name. Glyph details/tooltip. Control character. Outputs more than one char. Outputs a variable. Outputs a single char. In-game accessible normal char.
Definition at line 90 of file fontdbentry.cpp.
References ind.
| int FontDBEntry::getLength | ( | ) | const |
| bool FontDBEntry::getMultiChar | ( | ) | const |
| const QString FontDBEntry::getName | ( | ) | const |
| bool FontDBEntry::getNormal | ( | ) | const |
| bool FontDBEntry::getPicture | ( | ) | const |
| bool FontDBEntry::getShorthand | ( | ) | const |
| bool FontDBEntry::getSingleChar | ( | ) | const |
| const QString FontDBEntry::getTip | ( | ) | const |
| bool FontDBEntry::getVariable | ( | ) | const |
| void FontDBEntry::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 35 of file fontdbentry.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 128 of file fontdbentry.cpp.
Referenced by FontDBEntry(), and FontDBEntry().
|
friend |
|
friend |
|
protected |
Definition at line 88 of file fontdbentry.h.
Referenced by FontDBEntry(), and getAlias().
|
protected |
Definition at line 90 of file fontdbentry.h.
Referenced by FontDBEntry(), and getControl().
|
protected |
Definition at line 83 of file fontdbentry.h.
Referenced by FontsDB::convertToCode(), FontDBEntry(), and getInd().
|
protected |
Definition at line 87 of file fontdbentry.h.
Referenced by FontDBEntry(), and getLength().
|
protected |
Definition at line 91 of file fontdbentry.h.
Referenced by FontDBEntry(), and getMultiChar().
|
protected |
Definition at line 84 of file fontdbentry.h.
Referenced by FontsDB::convertToCode(), FontDBEntry(), and getName().
|
protected |
Definition at line 94 of file fontdbentry.h.
Referenced by FontDBEntry(), and getNormal().
|
protected |
Definition at line 86 of file fontdbentry.h.
Referenced by FontDBEntry(), and getPicture().
|
protected |
Definition at line 85 of file fontdbentry.h.
Referenced by FontDBEntry(), and getShorthand().
|
protected |
Definition at line 93 of file fontdbentry.h.
Referenced by FontDBEntry(), and getSingleChar().
|
protected |
Definition at line 89 of file fontdbentry.h.
Referenced by FontDBEntry(), and getTip().
|
protected |
Definition at line 92 of file fontdbentry.h.
Referenced by FontDBEntry(), and getVariable().