Debian Codegraph @

Source/Core/DolphinQt/Resources.h

raw symbols SCIP
1 // Copyright 2015 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <QIcon>
7 #include <QList>
8 #include <string_view>
9
10 namespace DiscIO
11 {
12 enum class Country;
13 enum class Platform;
14 } // namespace DiscIO
15
16 // Store for various QPixmaps that will be used repeatedly.
17 class Resources final
18 {
19 public:
20 enum class MiscID
21 {
22 BannerMissing,
23 Logo,
24 };
25
26 static void Init();
27
28 static QIcon GetPlatform(DiscIO::Platform platform);
29 static QIcon GetCountry(DiscIO::Country country);
30
31 static QIcon GetMisc(MiscID id);
32
33 static QIcon GetResourceIcon(std::string_view name);
34 static QIcon GetThemeIcon(std::string_view name);
35 static QIcon GetAppIcon();
36
37 private:
38 Resources() {}
39 static QIcon LoadNamedIcon(std::string_view name, const QString& dir);
40
41 static bool m_svg_supported;
42 static QList<QIcon> m_platforms;
43 static QList<QIcon> m_countries;
44 static QList<QIcon> m_misc;
45 };