~unity-team/nux/nux-remove-glew-mx

« back to all changes in this revision

Viewing changes to NuxGraphics/UIColorTheme.h

  • Committer: Jay Taoko
  • Date: 2011-05-30 02:54:31 UTC
  • mfrom: (353.1.1 nux)
  • Revision ID: jay.taoko@canonical.com-20110530025431-kpqcnbcq3apsfz92
* Object::Dispose() now does the same thing as Object::UnReference()
* Fixed memory leak in UXTheme::Load2DTextureFile
* Mesh Resource manager
    - Fixed mesh Resource manager pipeline
    - See example ProgObjMeshLoader

* Fixed GLSL Shaders in FontRendering.cpp
    - removed global variable USE_ARB_SHADERS and replaced with GraphicsEngine::UsingGLSLCodePath()

* Removing files IniFile.cpp/.h
* Removing files UIColorTheme.cpp/.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2010 Inalogic® Inc.
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify it
5
 
 * under the terms of the GNU Lesser General Public License, as
6
 
 * published by the  Free Software Foundation; either version 2.1 or 3.0
7
 
 * of the License.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful, but
10
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
11
 
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
12
 
 * PURPOSE.  See the applicable version of the GNU Lesser General Public
13
 
 * License for more details.
14
 
 *
15
 
 * You should have received a copy of both the GNU Lesser General Public
16
 
 * License along with this program. If not, see <http://www.gnu.org/licenses/>
17
 
 *
18
 
 * Authored by: Jay Taoko <jaytaoko@inalogic.com>
19
 
 *
20
 
 */
21
 
 
22
 
 
23
 
#ifndef UICOLORTHEME_H
24
 
#define UICOLORTHEME_H
25
 
 
26
 
#include "NuxCore/Color.h"
27
 
 
28
 
namespace nux
29
 
{
30
 
 
31
 
  class UIColorThemeImpl
32
 
  {
33
 
 
34
 
  public:
35
 
    void Initialize();
36
 
 
37
 
    Color mUI_BackgroundColor0;
38
 
    Color mUI_BackgroundColor1;
39
 
 
40
 
    Color mUI_ForegroundColor0;
41
 
    Color mUI_ForegroundColor1;
42
 
 
43
 
    Color mUI_TextColor;
44
 
    Color mUI_DisabledText_Color;
45
 
    Color mUI_EditableText_Color;
46
 
 
47
 
    Color mUI_EditableText_BackgroundColor;
48
 
    Color mUI_DisableEditableText_BackgroundColor;
49
 
 
50
 
 
51
 
    static UIColorThemeImpl &Instance();
52
 
  private:
53
 
    static UIColorThemeImpl *m_pInstance;
54
 
 
55
 
    UIColorThemeImpl();
56
 
    UIColorThemeImpl (const UIColorThemeImpl &);
57
 
    // Does not make sense for a singleton. This is a self assignment.
58
 
    UIColorThemeImpl &operator= (const UIColorThemeImpl &);
59
 
    // Declare operator adress-of as private
60
 
    UIColorThemeImpl *operator &();
61
 
    ~UIColorThemeImpl() {};
62
 
  };
63
 
 
64
 
#define gUIColorTheme UIColorThemeImpl::Instance()
65
 
 
66
 
}
67
 
 
68
 
#endif // UICOLORTHEME_H