From c58c0507a53e156d2da86b13b1fb92fcbe73bca1 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Sun, 5 Oct 2003 21:52:00 +0000 Subject: [PATCH] API improvements git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4951 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/servers/app/ColorSet.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/headers/private/servers/app/ColorSet.h b/headers/private/servers/app/ColorSet.h index e33ff68cc3..45669370a8 100644 --- a/headers/private/servers/app/ColorSet.h +++ b/headers/private/servers/app/ColorSet.h @@ -30,6 +30,8 @@ #include #include "RGBColor.h" +#include +#include /*! \class ColorSet ColorSet.h @@ -43,6 +45,13 @@ public: ColorSet & operator=(const ColorSet &cs); void SetColors(const ColorSet &cs); void PrintToStream(void) const; + bool ConvertToMessage(BMessage *msg) const; + bool ConvertFromMessage(const BMessage *msg); + void SetToDefaults(void); + RGBColor StringToColor(const char *string); + status_t SetColor(const char *string, rgb_color value); + + BString name; RGBColor panel_background, panel_text, @@ -78,9 +87,11 @@ public: window_tab_text, inactive_window_tab, inactive_window_tab_text; +private: + RGBColor *StringToMember(const char *string); }; -void SetDefaultGUIColors(ColorSet *set); + bool LoadGUIColors(ColorSet *set); void SaveGUIColors(const ColorSet &set);