summaryrefslogtreecommitdiff
path: root/gui.h
blob: fe3bb3ef1d12f963c67b22eb8f973358e8fdb9eb (plain)
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
40
41
42
43
44
#ifndef GUI_H
#define GUI_H

// TODO: Remove temporary workaround for CEGUI + GCC 4.6
#include <cstddef>
#include <CEGUI.h>

class GUI {
	public:
		static CEGUI::Window *root;

		virtual ~GUI() {};

		static void init();
		virtual void render();
};

class RaiseWindow : public GUI {
	private:
		CEGUI::FrameWindow *wnd;
		CEGUI::PushButton *btn;

		CEGUI::Scrollbar *radius_sb;
		CEGUI::Window *radius_sb_lbl;

		CEGUI::Scrollbar *focus_sb;
		CEGUI::Window *focus_sb_lbl;

		CEGUI::Scrollbar *strength_sb;
		CEGUI::Window *strength_sb_lbl;

		static float radius, focus, strength;

	public:
		RaiseWindow();
		virtual ~RaiseWindow();

		virtual void render();
		float get_radius();
		float get_focus();
		float get_strength();
};

#endif