|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <IconFont.h>
Public Member Functions | |
| IconFont (const QString &name, const std::uint32_t &majorVersion, const std::uint32_t &minorVersion) | |
| QString | getName () const |
| QString | getFullName () const |
| std::uint32_t | getMajorVersion () const |
| std::uint32_t | getMinorVersion () const |
| QString | getVersionString () const |
| QFont | getFont (const int &pointSize=-1) const |
| QIcon | getIcon (const QString &name, const QColor &foregroundColor=QColor(0, 0, 0, 255), const QColor &backgroundColor=Qt::transparent) const |
| virtual void | initialize () |
| virtual QString | getIconCharacter (const QString &iconName) const =0 |
Static Public Member Functions | |
| static QString | getSearchVersionString (const std::int32_t &majorVersion=-1, const std::int32_t &minorVersion=-1) |
Protected Attributes | |
| QString | _name |
| std::uint32_t | _majorVersion |
| std::uint32_t | _minorVersion |
| QString | _fontResourceName |
| QString | _fontFamily |
| QMap< QString, QString > | _characters |
Icon font utility class
Helper class for extracting an icon (character) from an icon font
| hdps::IconFont::IconFont | ( | const QString & | name, |
| const std::uint32_t & | majorVersion, | ||
| const std::uint32_t & | minorVersion | ||
| ) |
Constructor
| name | Name of the icon font |
| majorVersion | Major version number |
| minorVersion | Minor version number |
| QFont hdps::IconFont::getFont | ( | const int & | pointSize = -1 | ) | const |
Get font
| pointSize | Font point size |
| QString hdps::IconFont::getFullName | ( | ) | const |
Get icon font full name (includes major and minor version)
| QIcon hdps::IconFont::getIcon | ( | const QString & | name, |
| const QColor & | foregroundColor = QColor(0, 0, 0, 255), |
||
| const QColor & | backgroundColor = Qt::transparent |
||
| ) | const |
Get icon by name and color
| name | Name of the icon |
| foregroundColor | Foreground color of the icon |
| backgroundColor | Background color of the icon |
|
pure virtual |
Converts human readable icon name to icon character (unicode)
| iconName | Name of the icon |
| return | Icon character (unicode) |
Implemented in hdps::FontAwesome.
| std::uint32_t hdps::IconFont::getMajorVersion | ( | ) | const |
Get icon font major version
| std::uint32_t hdps::IconFont::getMinorVersion | ( | ) | const |
Get icon font minor version
| QString hdps::IconFont::getName | ( | ) | const |
Get icon font name
|
static |
Get icon font search version string
| majorVersion | Major version number |
| minorVersion | Minor version number |
| QString hdps::IconFont::getVersionString | ( | ) | const |
Get icon font version string
|
virtual |
Initializes the icon font A typical implementation builds a mapping from icon name to string-based hexadecimal icon unicode character
Reimplemented in hdps::FontAwesome.
|
protected |
Loaded font family
|
protected |
Resource name of the icon font
|
protected |
Minor version of the icon font
|
protected |
Name of the icon font
|
protected |
Major version of the icon font
|
protected |