Qt ForkAwesome
0.3.4
Library that bundles ForkAwesome for use within Qt applications
Toggle main menu visibility
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
7
#include <QStringView>
8
9
QT_FORWARD_DECLARE_CLASS(QString)
10
11
namespace
QtForkAwesome
{
12
17
constexpr
bool
isIconValid
(
Icon
icon)
18
{
19
return
static_cast<
IconBaseType
>
(icon);
20
}
21
22
QT_FORK_AWESOME_EXPORT
Icon
iconFromId
(
const
QString &
id
);
23
QT_FORK_AWESOME_EXPORT
Icon
iconFromId
(QStringView
id
);
24
25
}
// namespace QtForkAwesome
26
27
#endif
// QT_FORK_AWESOME_UTILS
global.h
QT_FORK_AWESOME_EXPORT
#define QT_FORK_AWESOME_EXPORT
Marks the symbol to be exported by the qtforkawesome library.
Definition
global.h:14
iconfwd.h
QtForkAwesome
Contains classes provided by the QtForkAwesome library.
Definition
renderer.h:20
QtForkAwesome::Icon
Icon
The Icon enum specifies a ForkAwesome icon for use with QtForkAwesome::Renderer::render().
Definition
icon.h:11
QtForkAwesome::isIconValid
constexpr bool isIconValid(Icon icon)
Returns whether icon is not Icon::Invalid.
Definition
utils.h:17
QtForkAwesome::iconFromId
QT_FORK_AWESOME_EXPORT Icon iconFromId(const QString &id)
Returns a QtForkAwesome::Icon for the specified icon id.
Definition
utils.cpp:39
QtForkAwesome::IconBaseType
std::remove_reference_t< decltype(QChar().unicode())> IconBaseType
Definition
iconfwd.h:10
Generated on
for Qt ForkAwesome by
1.18.0