Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-12-24 17:06:35 +0000
committerStijn Buys <ingar@osirion.org>2014-12-24 17:06:35 +0000
commitf330ae5ed3bd73c7b5b582cccde6cdd91d3c6e5b (patch)
tree339cb4f53afc7ac71c0865af61d4c539354ac179 /src/ui
parente38ab774ed6a82e75069214c3169215b0b3638a9 (diff)
Added autopilot and control lock HUD buttons.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/palette.cc19
-rw-r--r--src/ui/palette.h29
2 files changed, 40 insertions, 8 deletions
diff --git a/src/ui/palette.cc b/src/ui/palette.cc
index 6492dc3..9049b72 100644
--- a/src/ui/palette.cc
+++ b/src/ui/palette.cc
@@ -29,6 +29,25 @@ Palette::Palette() :
}
+Palette::Palette(const Palette & other ) :
+ palette_foreground(other.foreground()),
+ palette_background(other.background()),
+ palette_border(other.border()),
+ palette_text(other.text()),
+ palette_highlight(other.highlight()),
+ palette_disabled(other.disabled()),
+ palette_pointer(other.pointer()),
+ palette_active(other.active()),
+ palette_debug(other.debug()),
+ palette_mission(other.mission()),
+ palette_bold(other.bold()),
+ palette_fancy(other.fancy()),
+ palette_warning(other.warning()),
+ palette_error(other.error())
+{
+
+}
+
Palette::~Palette()
{
}
diff --git a/src/ui/palette.h b/src/ui/palette.h
index 422c0e7..ba5c456 100644
--- a/src/ui/palette.h
+++ b/src/ui/palette.h
@@ -12,22 +12,35 @@
namespace ui
{
-/// color palette used by the user interface
+/**
+ * @brief color palette used by the user interface
+ * */
class Palette
{
public:
- /// default constructor, creates a default palette
- Palette();
-
- /// default destructor
- ~Palette();
-
- /// color index
+ /**
+ * @brief color index
+ * */
enum Color { Foreground = 0, Background = 1, Border = 2, Text = 3, Highlight = 4, Disabled = 5, Pointer = 6, Active = 7,
Debug = 8, Mission = 9, Bold = 10, Fancy = 11, Warning = 12, Error = 13
};
+ /**
+ * @brief default constructor, creates a default palette
+ * */
+ Palette();
+
+ /**
+ * @brief copy construcotr
+ * */
+ Palette(const Palette & other);
+
+ /**
+ * @brief default destructor
+ * */
+ ~Palette();
+
/* ---- mutators ------------------------------------------- */
/// set foreground color