nux-0.9.46

NuxGraphics/UIColorTheme.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2010 Inalogic® Inc.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License, as
00006  * published by the  Free Software Foundation; either version 2.1 or 3.0
00007  * of the License.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranties of
00011  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00012  * PURPOSE.  See the applicable version of the GNU Lesser General Public
00013  * License for more details.
00014  *
00015  * You should have received a copy of both the GNU Lesser General Public
00016  * License along with this program. If not, see <http://www.gnu.org/licenses/>
00017  *
00018  * Authored by: Jay Taoko <jaytaoko@inalogic.com>
00019  *
00020  */
00021 
00022 
00023 #ifndef UICOLORTHEME_H
00024 #define UICOLORTHEME_H
00025 
00026 #include "NuxCore/Color.h"
00027 
00028 namespace nux
00029 {
00030 
00031   class UIColorThemeImpl
00032   {
00033 
00034   public:
00035     void Initialize();
00036 
00037     Color mUI_BackgroundColor0;
00038     Color mUI_BackgroundColor1;
00039 
00040     Color mUI_ForegroundColor0;
00041     Color mUI_ForegroundColor1;
00042 
00043     Color mUI_TextColor;
00044     Color mUI_DisabledText_Color;
00045     Color mUI_EditableText_Color;
00046 
00047     Color mUI_EditableText_BackgroundColor;
00048     Color mUI_DisableEditableText_BackgroundColor;
00049 
00050 
00051     static UIColorThemeImpl &Instance();
00052   private:
00053     static UIColorThemeImpl *m_pInstance;
00054 
00055     UIColorThemeImpl();
00056     UIColorThemeImpl (const UIColorThemeImpl &);
00057     // Does not make sense for a singleton. This is a self assignment.
00058     UIColorThemeImpl &operator= (const UIColorThemeImpl &);
00059     // Declare operator adress-of as private
00060     UIColorThemeImpl *operator &();
00061     ~UIColorThemeImpl() {};
00062   };
00063 
00064 #define gUIColorTheme UIColorThemeImpl::Instance()
00065 
00066 }
00067 
00068 #endif // UICOLORTHEME_H