Qt ForkAwesome 0.2.0
Library that bundles ForkAwesome for use within Qt applications
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1#ifndef QT_FORK_AWESOME_UTILS
2#define QT_FORK_AWESOME_UTILS
3
4#include "./global.h"
5#include "./iconfwd.h"
6
7QT_FORWARD_DECLARE_CLASS(QString)
8
9namespace QtForkAwesome {
10
15constexpr bool isIconValid(Icon icon)
16{
17 return static_cast<IconBaseType>(icon);
18}
19
20QT_FORK_AWESOME_EXPORT Icon iconFromId(const QString &id);
21
22} // namespace QtForkAwesome
23
24#endif // QT_FORK_AWESOME_UTILS
#define QT_FORK_AWESOME_EXPORT
Marks the symbol to be exported by the qtforkawesome library.
Definition global.h:14
Contains classes provided by the QtForkAwesome library.
Definition renderer.h:20
Icon
The Icon enum specifies a ForkAwesome icon for calling QtForkAwesome::Renderer::render().
Definition icon.h:11
constexpr bool isIconValid(Icon icon)
Returns whether icon is not Icon::Invalid.
Definition utils.h:15
QT_FORK_AWESOME_EXPORT Icon iconFromId(const QString &id)
Returns a QtForkAwesome::Icon for the specified icon id.
Definition utils.cpp:15
std::remove_reference_t< decltype(QChar().unicode())> IconBaseType
Definition iconfwd.h:10