|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <IconFonts.h>
Classes | |
| class | IconFontNotFoundException |
Public Member Functions | |
| IconFonts () | |
| const IconFont & | getIconFont (const QString &name, const std::int32_t &majorVersion=-1, const std::int32_t &minorVersion=-1) const |
| QIcon | getIcon (const QString &fontName, const QString &iconName, const QColor &iconForegroundGolor=QColor(0, 0, 0, 255), const QColor &iconBackgroundColor=Qt::transparent) const |
| QStringList | getFontNames () const |
| Fonts | getIconFonts (const QString &fontName) const |
| void | add (const QSharedPointer< IconFont > &iconFont) |
Icon fonts utility class
Helper class for keeping track of icon fonts
| hdps::IconFonts::IconFonts | ( | ) |
Default constructor
| void hdps::IconFonts::add | ( | const QSharedPointer< IconFont > & | iconFont | ) |
Adds an icon font to the database
| iconFont | The icon font to add |
| QStringList hdps::IconFonts::getFontNames | ( | ) | const |
Returns a list of the installed icon font names
| QIcon hdps::IconFonts::getIcon | ( | const QString & | fontName, |
| const QString & | iconName, | ||
| const QColor & | iconForegroundGolor = QColor(0, 0, 0, 255), |
||
| const QColor & | iconBackgroundColor = Qt::transparent |
||
| ) | const |
Get icon by fontName, iconName, iconForegroundGolor and iconBackgroundColor
| fontName | Name of the icon font |
| iconName | Name of the icon |
| iconForegroundGolor | Foreground color of the icon |
| iconBackgroundColor | Background color of the icon |
| const hdps::IconFont & hdps::IconFonts::getIconFont | ( | const QString & | name, |
| const std::int32_t & | majorVersion = -1, |
||
| const std::int32_t & | minorVersion = -1 |
||
| ) | const |
Get icon font by name majorVersion and minorVersion
| name | Name of the icon font |
| majorVersion | Major version number (latest if not specified) |
| minorVersion | Minor version number (latest if not specified) |
| hdps::IconFonts::Fonts hdps::IconFonts::getIconFonts | ( | const QString & | fontName | ) | const |
Get all icon fonts (versions) for the provided fontName
| fontName | Name of the font |