equal
deleted
inserted
replaced
1 #ifndef GRAPHICS_GUI_STYLE_HH |
|
2 #define GRAPHICS_GUI_STYLE_HH |
|
3 |
|
4 #include "GUI.hh" |
|
5 |
|
6 #include <ClanLib/guistylesilver.h> |
|
7 |
|
8 namespace graphics |
|
9 { |
|
10 |
|
11 /** |
|
12 * Our CL_StyleManager used for drawing ClanLib's GUI components |
|
13 */ |
|
14 class GUIStyle : public CL_StyleManager_Silver { |
|
15 public: |
|
16 /** |
|
17 * Construct GUI style |
|
18 */ |
|
19 GUIStyle (CL_ResourceManager *resources) : |
|
20 CL_StyleManager_Silver(resources) |
|
21 { |
|
22 |
|
23 } |
|
24 |
|
25 /** |
|
26 * Handle attaching style objects to components |
|
27 */ |
|
28 virtual void connect_styles (const std::string &type, CL_Component *component) { |
|
29 |
|
30 // default to parent impl |
|
31 CL_StyleManager_Silver::connect_styles(type, component); |
|
32 } |
|
33 }; |
|
34 |
|
35 } |
|
36 |
|
37 #endif |
|