Cafu Engine
ArtProvider.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_CAWE_ART_PROVIDER_HPP_INCLUDED
8 #define CAFU_CAWE_ART_PROVIDER_HPP_INCLUDED
9 
10 #include "wx/artprov.h"
11 #include <vector>
12 
13 
14 /// This class provides our application with custom bitmaps for menus, toolbars, dialogs, etc.
15 /// One or several instances are plugged into the chain of wxWidgets art providers in order to
16 /// complement the native or built-in art providers and to provide support for user themes.
17 ///
18 /// The bitmaps in this ArtProviderT are all from a common theme.
19 /// The implementation, the directory structure and the file names follow the freedesktop.org
20 /// "Icon Naming Specification" and the "Icon Theme Specification". For details, see:
21 /// http://tango.freedesktop.org/Standard_Icon_Naming_Specification
22 class ArtProviderT : public wxArtProvider
23 {
24  public:
25 
26  ArtProviderT(const wxString& Theme);
27 
28 
29  protected:
30 
31  wxBitmap CreateBitmap(const wxArtID& ID, const wxArtClient& Client, const wxSize& Size);
32 
33  const wxString m_Theme;
34  std::vector<wxSize> m_Sizes;
35 };
36 
37 #endif
This class provides our application with custom bitmaps for menus, toolbars, dialogs, etc.
Definition: ArtProvider.hpp:22