summaryrefslogtreecommitdiff
path: root/src/interface/Appearance.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
commit136675b56a8a1862afb41ccee5c14e93e483b964 (patch)
tree8f679477c5e1c0984a5cb9c169e339c1ca0d6e0c /src/interface/Appearance.h
parent45563e97e813cfd21724ad1111e5de3e04679e1a (diff)
downloadpowder-136675b56a8a1862afb41ccee5c14e93e483b964.zip
powder-136675b56a8a1862afb41ccee5c14e93e483b964.tar.gz
Move style into Component
Diffstat (limited to 'src/interface/Appearance.h')
-rw-r--r--src/interface/Appearance.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/interface/Appearance.h b/src/interface/Appearance.h
new file mode 100644
index 0000000..6b3c44f
--- /dev/null
+++ b/src/interface/Appearance.h
@@ -0,0 +1,53 @@
+//
+// 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.h"
+
+namespace ui
+{
+ class Appearance
+ {
+ 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 TextHover;
+ ui::Colour TextInactive;
+ ui::Colour TextActive;
+
+ ui::Colour BorderHover;
+ ui::Colour BorderInactive;
+ ui::Colour BorderActive;
+
+ ui::Border Margin;
+
+ Icon icon;
+
+ Appearance();
+ };
+}
+
+#endif