File: checkbox_opengl.h

package info (click to toggle)
clanlib 0.5.4-1-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 10,320 kB
  • ctags: 10,893
  • sloc: cpp: 76,056; xml: 3,281; sh: 2,961; perl: 1,204; asm: 837; makefile: 775
file content (39 lines) | stat: -rw-r--r-- 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef header_checkbox_style_opengl
#define header_checkbox_style_opengl

#include <ClanLib/gui.h>
#include <ClanLib/core.h>

class CL_CheckBox;
class CL_StyleManager_OpenGL;
class CL_ResourceManager;

class CL_CheckBox_OpenGL : public CL_ComponentStyle
{
public:
	CL_CheckBox_OpenGL(
		CL_CheckBox *button,
		CL_StyleManager_OpenGL *style);

	virtual ~CL_CheckBox_OpenGL();

private:
	CL_Slot slot_paint;
	void on_paint(CL_SlotParent_v0 &super);

	CL_Slot slot_get_preferred_size;
	void on_get_preferred_size(CL_Point &size);

	CL_CheckBox *checkbox;
	
	CL_StyleManager_OpenGL *style;
	CL_ResourceManager *resources;

	CL_Font *font;

	CL_Surface *surface_left;
	CL_Surface *surface_right;
	CL_Surface *surface_ticker;
};

#endif