From b417df720584c101f3799874a0c836a543a8d0a8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 12 Oct 2008 14:55:10 +0000 Subject: user interface updates, work-in-progress --- src/ui/palette.h | 51 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 37 insertions(+), 14 deletions(-) (limited to 'src/ui/palette.h') diff --git a/src/ui/palette.h b/src/ui/palette.h index edd738f..9d27f95 100644 --- a/src/ui/palette.h +++ b/src/ui/palette.h @@ -9,7 +9,8 @@ #include "math/color.h" -namespace ui { +namespace ui +{ class Palette { @@ -17,28 +18,50 @@ class Palette public: Palette(); ~Palette(); - + void set_foreground(math::Color const &color); - + void set_highlight(math::Color const &color); - + void set_background(math::Color const &color); - + void set_border(math::Color const &color); - - inline math::Color const &foreground() const { return palette_foreground; } - - inline math::Color const &highlight() const { return palette_highlight; } - - inline math::Color const &background() const { return palette_background; } - - inline math::Color const &border() const { return palette_border; } - + + void set_pointer(math::Color const &color); + + void set_active(math::Color const &color); + + inline math::Color const &foreground() const { + return palette_foreground; + } + + inline math::Color const &highlight() const { + return palette_highlight; + } + + inline math::Color const &background() const { + return palette_background; + } + + inline math::Color const &border() const { + return palette_border; + } + + inline math::Color const &pointer() const { + return palette_pointer; + } + + inline math::Color const &active() const { + return palette_active; + } + private: math::Color palette_foreground; math::Color palette_highlight; math::Color palette_background; + math::Color palette_pointer; + math::Color palette_active; math::Color palette_border; }; -- cgit v1.2.3