34 virtual void paint(QPainter* painter,
const QRect& rect, QIcon::Mode mode, QIcon::State state)
override;
35 QSize
actualSize(
const QSize& size, QIcon::Mode mode, QIcon::State state)
override;
36 virtual QPixmap
pixmap(
const QSize& size, QIcon::Mode mode, QIcon::State state)
override;
38 virtual QIconEngine*
clone(
void)
const override;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Used to render any icons or fetch any pixmaps within the software. More rendering engines can be adde...
Definition QTIconManager.h:81
A QIconEngine used to render SVG icons.
Definition SVGIconManager.h:28
IconThemeSettings m_icon_theme
Definition SVGIconManager.h:45
QIcon::Mode m_override_mode
Definition SVGIconManager.h:47
virtual QIconEngine * clone(void) const override
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state) override
QSize m_default_size
Definition SVGIconManager.h:48
virtual void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override
String m_icon
Definition SVGIconManager.h:46
virtual QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) override
void createSVGRenderer(const QSize &size)
Dictionary< QIcon::Mode, QPixmap > m_cached_pixmap
Definition SVGIconManager.h:44
Buffer< IconEngineItem > m_renderers
Definition SVGIconManager.h:43
NDEVRSVGIconEngine(const Buffer< IconEngineItem > &renderers, const String &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal)
NDEVRSVGIconEngine(const String &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal)
Allows the NDEVR engine to process and display SVG icons within the UI.
Definition SVGIconManager.h:54
QIcon createIcon(const String &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal) final override
bool canProcess(const String &icon, const IconThemeSettings &theme, QIcon::Mode mode) const final override
The core String class for the NDEVR API.
Definition String.h:69
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Stores a specific renderer and transform for SVG rendering.
Definition SVGIconManager.h:16
QTransform transform
Definition SVGIconManager.h:21
IconEngineItem(const QTransform &transform, QSvgRenderer *render)
Definition SVGIconManager.h:17
QSvgRenderer * renderer
Definition SVGIconManager.h:22
Stores information for how to draw icons, when supported.
Definition QTIconManager.h:59