-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiconlookup.h
49 lines (41 loc) · 957 Bytes
/
diconlookup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef DICONLOOKUP_H
#define DICONLOOKUP_H
#include <QObject>
/**
* @brief Provides icon lookup of libdtk available images/icons
*/
class DIconic : public QObject
{
Q_OBJECT
public:
explicit DIconic(QObject *parent = nullptr);
~DIconic();
enum IconScopes {
All,
BuiltIn,
BuiltInIcon,
Assets,
Light,
Dark,
BuiltInText,
Chameleon
};
/**
* @brief fromString
* @param icon_name
* @param scope
* @return QIcon* with the icon or nullptr if not found.
*/
static QIcon *fromString(const QString icon_name, IconScopes scope = IconScopes::All);
/**
* @brief list
* @return QStringList of available icons (and their paths)
*/
static QStringList list();
/**
* @brief listPaths
* @return QStringList of path used to find icons/images
*/
static QStringList listPaths();
};
#endif // DICONLOOKUP_H