|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
A chainable filter ("finder") over the font glyphs. More...
#include <fontsearch.h>
Public Member Functions | |
| FontSearch () | |
| Start with all glyphs in the result set. | |
| FontSearch * | startOver () |
Reset to all glyphs. Returns this. | |
| FontSearch * | clear () |
Empty the result set. Returns this. | |
| FontSearch * | keepAnyOf (bool normal, bool control, bool picture, bool singleChar, bool multiChar, bool variable) |
OR-union filter (see note). Returns this. | |
| FontSearch * | andShorthand () |
Keep only shorthand glyphs. Returns this. | |
| FontSearch * | notShorthand () |
Drop shorthand glyphs. Returns this. | |
| FontSearch * | andNormal () |
| Keep only normal glyphs. | |
| FontSearch * | notNormal () |
| Drop normal glyphs. | |
| FontSearch * | andControl () |
| Keep only control glyphs. | |
| FontSearch * | notControl () |
| Drop control glyphs. | |
| FontSearch * | andPicture () |
| Keep only picture glyphs. | |
| FontSearch * | notPicture () |
| Drop picture glyphs. | |
| FontSearch * | andSingleChar () |
| Keep only single-char glyphs. | |
| FontSearch * | notSingleChar () |
| Drop single-char glyphs. | |
| FontSearch * | andMultiChar () |
| Keep only multi-char glyphs. | |
| FontSearch * | notMultiChar () |
| Drop multi-char glyphs. | |
| FontSearch * | andVariable () |
| Keep only variable glyphs. | |
| FontSearch * | notVariable () |
| Drop variable glyphs. | |
| const QVector< FontDBEntry * > | getFonts () const |
| The current result set. | |
| int | getFontCount () const |
Result count (backs fontCount). | |
| const FontDBEntry * | fontAt (const int ind) const |
Result ind (for QML). | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
A chainable filter ("finder") over the font glyphs.
Obtained from FontsDB (search()/searchRaw()). Starts with all glyphs in results and narrows them with chainable calls – each and* / not* method returns this, so the UI/keyboard can write search()->andNormal()->notControl(). keepAnyOf() is the one OR-combiner (see its note); the rest are AND filters. fontAt / getFonts read the result.
Definition at line 39 of file fontsearch.h.
| FontSearch::FontSearch | ( | ) |
Start with all glyphs in the result set.
Definition at line 31 of file fontsearch.cpp.
References startOver().
Referenced by andControl(), andMultiChar(), andNormal(), andPicture(), andShorthand(), andSingleChar(), andVariable(), clear(), keepAnyOf(), notControl(), notMultiChar(), notNormal(), notPicture(), notShorthand(), notSingleChar(), notVariable(), and startOver().
| FontSearch * FontSearch::andControl | ( | ) |
| FontSearch * FontSearch::andMultiChar | ( | ) |
Keep only multi-char glyphs.
Definition at line 195 of file fontsearch.cpp.
References FontSearch().
| FontSearch * FontSearch::andNormal | ( | ) |
| FontSearch * FontSearch::andPicture | ( | ) |
| FontSearch * FontSearch::andShorthand | ( | ) |
Keep only shorthand glyphs. Returns this.
Definition at line 85 of file fontsearch.cpp.
References FontSearch().
| FontSearch * FontSearch::andSingleChar | ( | ) |
Keep only single-char glyphs.
Definition at line 173 of file fontsearch.cpp.
References FontSearch().
| FontSearch * FontSearch::andVariable | ( | ) |
| FontSearch * FontSearch::clear | ( | ) |
Empty the result set. Returns this.
Definition at line 52 of file fontsearch.cpp.
References clear(), and FontSearch().
Referenced by clear(), keepAnyOf(), and startOver().
| const FontDBEntry * FontSearch::fontAt | ( | const int | ind | ) | const |
Result ind (for QML).
Definition at line 249 of file fontsearch.cpp.
| int FontSearch::getFontCount | ( | ) | const |
Result count (backs fontCount).
Definition at line 244 of file fontsearch.cpp.
| const QVector< FontDBEntry * > FontSearch::getFonts | ( | ) | const |
The current result set.
Definition at line 239 of file fontsearch.cpp.
| FontSearch * FontSearch::keepAnyOf | ( | bool | normal, |
| bool | control, | ||
| bool | picture, | ||
| bool | singleChar, | ||
| bool | multiChar, | ||
| bool | variable ) |
OR-union filter (see note). Returns this.
Definition at line 60 of file fontsearch.cpp.
References clear(), FontSearch(), and FontsDB::inst().
| FontSearch * FontSearch::notControl | ( | ) |
| FontSearch * FontSearch::notMultiChar | ( | ) |
| FontSearch * FontSearch::notNormal | ( | ) |
| FontSearch * FontSearch::notPicture | ( | ) |
| FontSearch * FontSearch::notShorthand | ( | ) |
Drop shorthand glyphs. Returns this.
Definition at line 96 of file fontsearch.cpp.
References FontSearch().
| FontSearch * FontSearch::notSingleChar | ( | ) |
| FontSearch * FontSearch::notVariable | ( | ) |
| void FontSearch::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 254 of file fontsearch.cpp.
References Utility::qmlProtectUtil().
| FontSearch * FontSearch::startOver | ( | ) |
Reset to all glyphs. Returns this.
Definition at line 37 of file fontsearch.cpp.
References clear(), FontSearch(), and FontsDB::inst().
Referenced by FontSearch().