summaryrefslogtreecommitdiff
path: root/src/gui/interface/Appearance.h
blob: 1c1bb5a418c39d201f3d16188e62127b789835f0 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef APPEARANCE_H_
#define APPEARANCE_H_

#include "Border.h"
#include "Colour.h"
#include "graphics/Graphics.h"

namespace ui
{
	class Appearance
	{
	private:
			VideoBuffer * texture;
	public:
		enum HorizontalAlignment
		{
			AlignLeft, AlignCentre, AlignRight
		};
		
		enum VerticalAlignment
		{
			AlignTop, AlignMiddle, AlignBottom
		};
		
		VerticalAlignment VerticalAlign;
		HorizontalAlignment HorizontalAlign;
		
		ui::Colour BackgroundHover;
		ui::Colour BackgroundInactive;
		ui::Colour BackgroundActive;
		ui::Colour BackgroundDisabled;
		
		ui::Colour TextHover;
		ui::Colour TextInactive;
		ui::Colour TextActive;
		ui::Colour TextDisabled;
		
		ui::Colour BorderHover;
		ui::Colour BorderInactive;
		ui::Colour BorderActive;
		ui::Colour BorderDisabled;
		
		ui::Border Margin;

		ui::Border Border;
		
		Icon icon;

		VideoBuffer * GetTexture();
		void SetTexture(VideoBuffer * texture);
		
		Appearance();
		~Appearance();
	};
}

#endif