Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
GuiColorScheme Class Reference

Used to manage the colors for all application widgets. Any widget can ask for a specific color for a specific use, it will adapt automaticaly when theme changes. More...

Public Types

enum  Scheme {
  SCHEME_DARK,
  SCHEME_LIGHT,
  SCHEME_COUNT
}
 
enum  Group {
  GROUP_ENABLED = 0,
  GROUP_DISABLED,
  GROUP_MOUSE_OVER,
  GROUP_COUNT
}
 
enum  Role {
  ROLE_WINDOW = 0,
  ROLE_WIDGET,
  ROLE_BUTTON,
  ROLE_DARK_FRAME,
  ROLE_LIGHT_FRAME,
  ROLE_DARKER_FRAME,
  ROLE_LIGHTER_FRAME,
  ROLE_BASE,
  ROLE_LABEL,
  ROLE_LABEL_2,
  ROLE_LABEL_3,
  ROLE_HIGHLIGHTED_LABEL,
  ROLE_TEXT,
  ROLE_TEXT_CHANNEL_RED,
  ROLE_TEXT_CHANNEL_GREEN,
  ROLE_TEXT_CHANNEL_BLUE,
  ROLE_TEXT_CHANNEL_ALPHA,
  ROLE_TEXT_CHANNEL_LUMINANCE,
  ROLE_SELECTED,
  ROLE_SELECTED_TEXT,
  ROLE_PROGRESS_BAR,
  ROLE_PROGRESS_BAR_TEXT,
  ROLE_PROGRESS_BAR_TEXT_SHADOW,
  ROLE_GL_BASE_LIGHTER,
  ROLE_GL_BASE_LIGHT,
  ROLE_GL_BASE_DARK,
  ROLE_GL_BASE_DARKER,
  ROLE_GL_BASE,
  ROLE_GL_TEXT_LIGHT,
  ROLE_GL_TEXT_DARK,
  ROLE_SCRIPT_KEYWORDS,
  ROLE_SCRIPT_PREPROCESSOR_KEYWORDS,
  ROLE_SCRIPT_RESERVED_KEYWORDS,
  ROLE_SCRIPT_COMMENT_LINE,
  ROLE_SCRIPT_COMMENT_BLOCK,
  ROLE_SCRIPT_NUMBERS,
  ROLE_SCRIPT_STRINGS,
  ROLE_SCRIPT_OPERATOR,
  ROLE_TAB,
  ROLE_SELECTED_TAB,
  ROLE_DARK_SELECTED_TAB,
  ROLE_LIGHT_SELECTED_TAB,
  ROLE_TAB_LABEL,
  ROLE_SELECTED_TAB_LABEL,
  ROLE_GROUP_FRAME,
  ROLE_VIZROOT,
  ROLE_COUNT
}
 

Public Member Functions

 GuiColorScheme (GuiWidget &widget)
 
 GuiColorScheme (GuiApp &app)
 
void set_color (const Group &group, const Role &role, const unsigned char &r, const unsigned char &g, const unsigned char &b)
 
void set_color (const Group &group, const Role &role, const GMathVec3uc &color)
 
void get_color (const Group &group, const Role &role, unsigned char &r, unsigned char &g, unsigned char &b) const
 Gets a color for a specific role and group. The current theme color will be returned.
 
const GMathVec3uc & get_color (const Group &group, const Role &role) const
 Gets a color for a specific role and group. The current theme color will be returned.
 
void set (const GuiColorScheme &scheme)
 
void update (const GuiColorScheme &scheme)
 

Static Public Member Functions

static const GuiColorSchemeget_scheme (const Scheme &scheme)
 
static const GuiColorSchemeget_scheme (const CoreString &scheme_name)
 
static CoreString get_scheme_name (const Scheme &scheme)
 

Detailed Description

Used to manage the colors for all application widgets. Any widget can ask for a specific color for a specific use, it will adapt automaticaly when theme changes.