Game Develop Core: SkinHelper.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
SkinHelper.h
Go to the documentation of this file.
1
5 #ifndef GDCORE_SKINHELPER_H
6 #define GDCORE_SKINHELPER_H
7 #include <string>
8 #include <map>
9 class wxRibbonBar;
10 class wxAuiManager;
11 class wxAuiNotebook;
12 class wxAuiToolBar;
13 class wxPropertyGrid;
14 class wxBitmap;
15 class wxString;
16
17 namespace gd
18 {
19
28 class GD_CORE_API SkinHelper
29 {
30 public:
31
35 static void ApplyCurrentSkin(wxRibbonBar & bar);
36
40 static void ApplyCurrentSkin(wxAuiManager & auiManager);
41
49 static void ApplyCurrentSkin(wxAuiNotebook & notebook, bool subnotebook = false);
50
54 static void ApplyCurrentSkin(wxAuiToolBar & toolbar);
55
59 static void ApplyCurrentSkin(wxPropertyGrid & propertyGrid);
60
68 static wxBitmap GetRibbonIcon(wxString iconName);
69
81 static wxBitmap GetIcon(wxString iconName, unsigned int size);
82
93 static bool IconExists(wxString iconName, unsigned int size);
94
101 static void ClearIconCache();
102
103 private:
104 SkinHelper();
105 virtual ~SkinHelper();
106
107 static std::map<std::string, wxBitmap*> cachedIcons;
108 };
109
110 }
111
112 #endif // GDCORE_SKINHELPER_H