game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
IconFont Class Reference

#include <icon_font.h>

Static Public Member Functions

static const QString & brandsFamily ()
 Get the loaded Brands font family name.
static QIcon icon (char32_t codepoint, int size, const QColor &color)
 Render a FontAwesome glyph as a QIcon at the given size and color.
static QIcon icon (char32_t codepoint, int size, const QColor &normalColor, const QColor &selectedColor)
 Render a FontAwesome glyph as QIcon with normal + selected colors.
static bool init ()
 Load FontAwesome fonts from Qt resources. Call once at startup.
static bool isBrandIcon (char32_t cp)
 Check if a codepoint is from the Brands font.
static bool isInitialized ()
 Check if fonts were loaded successfully.
static const QString & solidFamily ()
 Get the loaded Solid font family name.
static QString text (char32_t codepoint)
 Convert a codepoint to a QString glyph.

Detailed Description

Definition at line 85 of file icon_font.h.

Member Function Documentation

◆ brandsFamily()

const QString & IconFont::brandsFamily ( )
inlinestatic

Get the loaded Brands font family name.

Definition at line 142 of file icon_font.h.

◆ icon() [1/2]

QIcon IconFont::icon ( char32_t codepoint,
int size,
const QColor & color )
inlinestatic

Render a FontAwesome glyph as a QIcon at the given size and color.

Definition at line 119 of file icon_font.h.

Referenced by CollectionsModel::rebuild(), RunnerFilterModel::rebuild(), SourceFilterModel::rebuild(), CategoryModel::rebuildIcons(), and ToolbarManager::setupToolbar().

◆ icon() [2/2]

QIcon IconFont::icon ( char32_t codepoint,
int size,
const QColor & normalColor,
const QColor & selectedColor )
inlinestatic

Render a FontAwesome glyph as QIcon with normal + selected colors.

Definition at line 126 of file icon_font.h.

◆ init()

bool IconFont::init ( )
inlinestatic

Load FontAwesome fonts from Qt resources. Call once at startup.

Definition at line 89 of file icon_font.h.

Referenced by main().

◆ isBrandIcon()

bool IconFont::isBrandIcon ( char32_t cp)
inlinestatic

Check if a codepoint is from the Brands font.

Definition at line 148 of file icon_font.h.

References FA::ItchIo, FA::Linux, and FA::Steam.

◆ isInitialized()

bool IconFont::isInitialized ( )
inlinestatic

Check if fonts were loaded successfully.

Definition at line 154 of file icon_font.h.

◆ solidFamily()

const QString & IconFont::solidFamily ( )
inlinestatic

◆ text()


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