blob: e6f0a93be02f6da4aa496c6c969bf3dafbf21f1c (
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
58
59
60
61
62
|
//
// Appearance.h
// The Powder Toy
//
// Created by Simon Robertshaw on 15/05/2012.
//
#ifndef The_Powder_Toy_Appearance_h
#define The_Powder_Toy_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;
Icon icon;
VideoBuffer * GetTexture();
void SetTexture(VideoBuffer * texture);
Appearance();
~Appearance();
};
}
#endif
|