6#include "ddciiconpalette.h"
8#include <dtkgui_global.h>
18typedef void* DDciIconMatchResult;
37 enum IconMatchedFlag {
39 DontFallbackMode = 0x01
41 Q_DECLARE_FLAGS(IconMatchedFlags, IconMatchedFlag)
42 Q_FLAGS(IconMatchedFlags);
45 explicit DDciIcon(
const DCORE_NAMESPACE::DDciFile *dciFile);
53 void swap(
DDciIcon &other)
noexcept { d.swap(other.d); }
56 DDciIconMatchResult matchIcon(
int size, Theme theme, Mode mode, IconMatchedFlags flags = None)
const;
58 int actualSize(DDciIconMatchResult result)
const;
59 int actualSize(
int size, Theme theme, Mode mode = Normal)
const;
61 QList<int> availableSizes(Theme theme, Mode mode = Normal)
const;
62 bool isSupportedAttribute(DDciIconMatchResult result, IconAttibute attr)
const;
64 QPixmap pixmap(qreal devicePixelRatio,
int iconSize, Theme theme, Mode mode = Normal,
66 QPixmap pixmap(qreal devicePixelRatio,
int iconSize, DDciIconMatchResult result,
69 void paint(QPainter *painter,
const QRect &rect, qreal devicePixelRatio, Theme theme, Mode mode = Normal,
71 void paint(QPainter *painter,
const QRect &rect, qreal devicePixelRatio, DDciIconMatchResult result,
80#ifndef QT_NO_DATASTREAM
86#ifndef QT_NO_DATASTREAM
92Q_DECLARE_METATYPE(DTK_GUI_NAMESPACE::DDciIcon);
Definition: ddciiconpalette.h:17
Definition: ddciicon.h:22