Debian Codegraph @

Examples/GUIStyle/ZZ_Theme/label_zz.h

raw
1
2 #ifndef header_label_style_zz
3 #define header_label_style_zz
4
5 #if _MSC_VER > 1000
6 #pragma once
7 #endif
8
9 #include <ClanLib/gui.h>
10
11 class CL_StyleManager_ZZ;
12 class CL_DomElement;
13
14 class CL_Label_ZZ : public CL_ComponentStyle
15 {
16 public:
17 enum LabelType {
18 type1,
19 type2
20 };
21 public:
22 CL_Label_ZZ(
23 CL_Label *label,
24 CL_StyleManager_ZZ *style,
25 LabelType label_type = type1);
26
27 virtual ~CL_Label_ZZ();
28
29 private:
30 void on_paint();
31 void on_get_preferred_size(CL_Size &size);
32 void on_set_options(const CL_DomElement &options);
33
34 CL_Label *label_;
35 LabelType label_type_;
36
37 CL_ResourceManager *resources_;
38 CL_Font *font_;
39 CL_SlotContainer slots_;
40 };
41
42 #endif // header_label_style_zz