![]() |
Public API Reference |
Go to the source code of this file.
Compounds | |
struct | csColorScheme |
This structure is used to change color scheme. More... | |
struct | csPaletteExport |
Control palette export structure. More... | |
Palette indices | |
These are indices into cswsPalette for each component type | |
#define | CSPAL_APP 0 |
Application palette index. More... | |
#define | CSPAL_BUTTON 1 |
Button palette index. More... | |
#define | CSPAL_DIALOG 2 |
Dialog palette index. More... | |
#define | CSPAL_INPUTLINE 3 |
Input line palette index. More... | |
#define | CSPAL_MENUITEM 4 |
Menu item palette index. More... | |
#define | CSPAL_MENU 5 |
Menu palette index. More... | |
#define | CSPAL_STATIC 6 |
Static component palette index. More... | |
#define | CSPAL_TITLEBAR 7 |
Title bar palette index. More... | |
#define | CSPAL_WINDOW 8 |
Window palette index. More... | |
#define | CSPAL_LISTBOX 9 |
List box palette index. More... | |
#define | CSPAL_LISTBOXITEM 10 |
List box item palette index. More... | |
#define | CSPAL_SCROLLBAR 11 |
Scroll bar palette index. More... | |
#define | CSPAL_NOTEBOOK 12 |
Notebook palette index. More... | |
#define | CSPAL_GRIDCELL 13 |
GridCell palette index. More... | |
#define | CSPAL_GRIDVIEW 14 |
GridView palette index. More... | |
#define | CSPAL_SPLITTER 15 |
Slider palette index. More... | |
#define | CSPAL_TREEITEM 16 |
Tree control item palette index. More... | |
#define | CSPAL_TREEBOX 17 |
Tree control palette index. More... | |
#define | CSPAL_HINT 18 |
Hint component palette index. More... | |
csApp class color palette indices | |
#define | CSPAL_APP_WORKSPACE 0 |
Workspace color index. More... | |
csButton class color palette indices | |
#define | CSPAL_BUTTON_BACKGROUND 0 |
button background. More... | |
#define | CSPAL_BUTTON_DEFFRAME 1 |
default button frame. More... | |
#define | CSPAL_BUTTON_DARK3D 2 |
3D border dark. More... | |
#define | CSPAL_BUTTON_LIGHT3D 3 |
3D border light. More... | |
#define | CSPAL_BUTTON_TEXT 4 |
button text. More... | |
#define | CSPAL_BUTTON_DTEXT 5 |
button disabled text. More... | |
csDialog class color palette indices | |
#define | CSPAL_DIALOG_BACKGROUND 0 |
Background color index. More... | |
#define | CSPAL_DIALOG_DARK3D 1 |
3D border dark. More... | |
#define | CSPAL_DIALOG_LIGHT3D 2 |
3D border light. More... | |
#define | CSPAL_DIALOG_2DARK3D 3 |
2nd level 3D border dark. More... | |
#define | CSPAL_DIALOG_2LIGHT3D 4 |
2nd level 3D border light. More... | |
csInputLine class color palette indices | |
#define | CSPAL_INPUTLINE_BACKGROUND 0 |
input line background. More... | |
#define | CSPAL_INPUTLINE_BACKGROUND2 1 |
Background color for csifsThickRect. More... | |
#define | CSPAL_INPUTLINE_DARK3D 2 |
3D border dark. More... | |
#define | CSPAL_INPUTLINE_LIGHT3D 3 |
3D border light. More... | |
#define | CSPAL_INPUTLINE_2DARK3D 4 |
2nd level 3D border dark. More... | |
#define | CSPAL_INPUTLINE_2LIGHT3D 5 |
2nd level 3D border light. More... | |
#define | CSPAL_INPUTLINE_TEXT 6 |
input line text. More... | |
#define | CSPAL_INPUTLINE_SELBACKGROUND 7 |
input line selection background. More... | |
#define | CSPAL_INPUTLINE_SELTEXT 8 |
input line selected text. More... | |
csListBox class color palette indices | |
#define | CSPAL_LISTBOX_BACKGROUND 0 |
list box background. More... | |
#define | CSPAL_LISTBOX_BACKGROUND2 1 |
background color for cslfsThickRect. More... | |
#define | CSPAL_LISTBOX_DARK3D 2 |
3D border dark. More... | |
#define | CSPAL_LISTBOX_LIGHT3D 3 |
3D border light. More... | |
#define | CSPAL_LISTBOX_2DARK3D 4 |
2nd level 3D border dark. More... | |
#define | CSPAL_LISTBOX_2LIGHT3D 5 |
2nd level 3D border light. More... | |
csTreeBox class color palette indices | |
#define | CSPAL_TREEBOX_BACKGROUND 0 |
tree control background. More... | |
#define | CSPAL_TREEBOX_BACKGROUND2 1 |
background color for cstfsThickRect. More... | |
#define | CSPAL_TREEBOX_DARK3D 2 |
3D border dark. More... | |
#define | CSPAL_TREEBOX_LIGHT3D 3 |
3D border light. More... | |
#define | CSPAL_TREEBOX_2DARK3D 4 |
2nd level 3D border dark. More... | |
#define | CSPAL_TREEBOX_2LIGHT3D 5 |
2nd level 3D border light. More... | |
csMenuItem class color palette indices | |
#define | CSPAL_MENUITEM_BACKGROUND 0 |
Unselected menu item background. More... | |
#define | CSPAL_MENUITEM_SELECTION 1 |
Selected menu item background. More... | |
#define | CSPAL_MENUITEM_UTEXT 2 |
Unselected text. More... | |
#define | CSPAL_MENUITEM_STEXT 3 |
Selected text. More... | |
#define | CSPAL_MENUITEM_DTEXT 4 |
Disabled text. More... | |
#define | CSPAL_MENUITEM_DARK3D 5 |
Separator 3D dark. More... | |
#define | CSPAL_MENUITEM_LIGHT3D 6 |
Separator 3D light. More... | |
csMenu class color palette indices | |
#define | CSPAL_MENU_BACKGROUND 0 |
Menu background. More... | |
#define | CSPAL_MENU_DARK3D 1 |
3D border dark. More... | |
#define | CSPAL_MENU_LIGHT3D 2 |
3D border light. More... | |
#define | CSPAL_MENU_2DARK3D 3 |
3D border 2nd level dark. More... | |
#define | CSPAL_MENU_2LIGHT3D 4 |
3D border 2nd level light. More... | |
csStatic class color palette indices | |
#define | CSPAL_STATIC_BACKGROUND 0 |
static component background. More... | |
#define | CSPAL_STATIC_ITEXT 1 |
static component text / inactive. More... | |
#define | CSPAL_STATIC_ATEXT 2 |
static component text / active. More... | |
#define | CSPAL_STATIC_DTEXT 3 |
static component text / disabled. More... | |
#define | CSPAL_STATIC_DARK3D 4 |
3D border dark. More... | |
#define | CSPAL_STATIC_LIGHT3D 5 |
3D border light. More... | |
csTitleBar class color palette indices | |
#define | CSPAL_TITLEBAR_DARK3D 0 |
3D border dark. More... | |
#define | CSPAL_TITLEBAR_LIGHT3D 1 |
3D border light. More... | |
#define | CSPAL_TITLEBAR_PBACKGROUND 2 |
passive title background. More... | |
#define | CSPAL_TITLEBAR_PTEXT 3 |
passive title text. More... | |
#define | CSPAL_TITLEBAR_PDARK3D 4 |
passive title 3D bars dark. More... | |
#define | CSPAL_TITLEBAR_PLIGHT3D 5 |
passive title 3D bars light. More... | |
#define | CSPAL_TITLEBAR_ABACKGROUND 6 |
active title background. More... | |
#define | CSPAL_TITLEBAR_ATEXT 7 |
active title text. More... | |
#define | CSPAL_TITLEBAR_ADARK3D 8 |
active title 3D bars dark. More... | |
#define | CSPAL_TITLEBAR_ALIGHT3D 9 |
active title 3D bars light. More... | |
csWindow class color palette indices | |
#define | CSPAL_WINDOW_DARK3D 0 |
3D border dark. More... | |
#define | CSPAL_WINDOW_LIGHT3D 1 |
3D border light. More... | |
#define | CSPAL_WINDOW_2DARK3D 2 |
3D border 2nd level dark. More... | |
#define | CSPAL_WINDOW_2LIGHT3D 3 |
3D border 2nd level light. More... | |
#define | CSPAL_WINDOW_BORDER 4 |
border normal. More... | |
csListBoxItem class color palette indices | |
#define | CSPAL_LISTBOXITEM_BACKGROUND 0 |
Unselected listbox item background. More... | |
#define | CSPAL_LISTBOXITEM_SELECTION 1 |
Selected listbox item background. More... | |
#define | CSPAL_LISTBOXITEM_DTEXT 2 |
Disabled text. More... | |
#define | CSPAL_LISTBOXITEM_UNTEXT 3 |
Unselected normal text. More... | |
#define | CSPAL_LISTBOXITEM_SNTEXT 4 |
Selected normal text. More... | |
#define | CSPAL_LISTBOXITEM_UETEXT 5 |
Unselected emphasized text. More... | |
#define | CSPAL_LISTBOXITEM_SETEXT 6 |
Selected emphasized text. More... | |
csTreeItem class color palette indices | |
#define | CSPAL_TREEITEM_BACKGROUND 0 |
Unselected tree item background. More... | |
#define | CSPAL_TREEITEM_SELECTION 1 |
Selected tree item background. More... | |
#define | CSPAL_TREEITEM_DTEXT 2 |
Disabled text. More... | |
#define | CSPAL_TREEITEM_UNTEXT 3 |
Unselected normal text. More... | |
#define | CSPAL_TREEITEM_SNTEXT 4 |
Selected normal text. More... | |
#define | CSPAL_TREEITEM_UETEXT 5 |
Unselected emphasized text. More... | |
#define | CSPAL_TREEITEM_SETEXT 6 |
Selected emphasized text. More... | |
#define | CSPAL_TREEITEM_LINES 7 |
The lines connecting children. More... | |
csScrollBar class color palette indices | |
#define | CSPAL_SCROLLBAR_BACKGROUND 0 |
Scroll bar background. More... | |
#define | CSPAL_SCROLLBAR_SELBACKGROUND 1 |
Scroll bar selected background. More... | |
#define | CSPAL_SCROLLBAR_DARK3D 2 |
3D border dark. More... | |
#define | CSPAL_SCROLLBAR_LIGHT3D 3 |
3D border light. More... | |
csNotebook class color palette indices | |
#define | CSPAL_NOTEBOOK_BACKGROUND 0 |
Notebook background. More... | |
#define | CSPAL_NOTEBOOK_TAB_UNSEL 1 |
Unselected tab background. More... | |
#define | CSPAL_NOTEBOOK_UNSEL_TEXT 2 |
The text on unselected tabs. More... | |
#define | CSPAL_NOTEBOOK_TAB_UNSELB1 3 |
The most dark color of unselected tab border. More... | |
#define | CSPAL_NOTEBOOK_TAB_UNSELB2 4 |
The second color of unselected tab border. More... | |
#define | CSPAL_NOTEBOOK_TAB_UNSELB3 5 |
The third color of unselected tab border. More... | |
#define | CSPAL_NOTEBOOK_TAB_SEL 6 |
Selected tab background. More... | |
#define | CSPAL_NOTEBOOK_SEL_TEXT 7 |
The text on selected tab. More... | |
#define | CSPAL_NOTEBOOK_TAB_SELB1 8 |
The most dark color of selected tab border. More... | |
#define | CSPAL_NOTEBOOK_TAB_SELB2 9 |
The second color of selected tab border. More... | |
#define | CSPAL_NOTEBOOK_TAB_SELB3 10 |
The third color of selected tab border. More... | |
#define | CSPAL_NOTEBOOK_INFO_TEXT 11 |
The information text. More... | |
#define | CSPAL_NOTEBOOK_DARK3D 12 |
3D border dark. More... | |
#define | CSPAL_NOTEBOOK_LIGHT3D 13 |
3D border light. More... | |
#define | CSPAL_NOTEBOOK_2DARK3D 14 |
3D border very dark. More... | |
#define | CSPAL_NOTEBOOK_2LIGHT3D 15 |
3D border middle light. More... | |
csGridCell class color palette indices | |
#define | CSPAL_GRIDCELL_BACKGROUND 0 |
background. More... | |
#define | CSPAL_GRIDCELL_BORDER_FG 1 |
border foreground. More... | |
#define | CSPAL_GRIDCELL_BORDER_BG 2 |
border background. More... | |
#define | CSPAL_GRIDCELL_SEL_BACKGROUND 3 |
selected background. More... | |
#define | CSPAL_GRIDCELL_SEL_BORDER_FG 4 |
selected border foreground. More... | |
#define | CSPAL_GRIDCELL_SEL_BORDER_BG 5 |
selected border background. More... | |
#define | CSPAL_GRIDCELL_DATA_FG 6 |
data foreground. More... | |
#define | CSPAL_GRIDCELL_DATA_BG 7 |
data background. More... | |
#define | CSPAL_GRIDCELL_SEL_DATA_FG 8 |
selected data foreground. More... | |
#define | CSPAL_GRIDCELL_SEL_DATA_BG 9 |
selcted data background. More... | |
csGridView class color palette indices | |
#define | CSPAL_GRIDVIEW_BACKGROUND 0 |
background. More... | |
#define | CSPAL_GRIDVIEW_DARK3D 1 |
3D border dark. More... | |
#define | CSPAL_GRIDVIEW_LIGHT3D 2 |
3D border light. More... | |
#define | CSPAL_GRIDVIEW_SEL_DARK3D 3 |
3D border dark selected. More... | |
#define | CSPAL_GRIDVIEW_SEL_LIGHT3D 4 |
3D border light selected. More... | |
csSplitter class color palette indices | |
#define | CSPAL_SPLITTER_IBACKGROUND 0 |
Splitter inactive background. More... | |
#define | CSPAL_SPLITTER_ILIGHT3D 1 |
Splitter inactive light 3D color. More... | |
#define | CSPAL_SPLITTER_IDARK3D 2 |
Splitter inactive dark 3D color. More... | |
#define | CSPAL_SPLITTER_ABACKGROUND 3 |
Splitter active background. More... | |
#define | CSPAL_SPLITTER_ALIGHT3D 4 |
Splitter active light 3D color. More... | |
#define | CSPAL_SPLITTER_ADARK3D 5 |
Splitter active dark 3D color. More... | |
csTip class color palette indices | |
#define | CSPAL_HINT_BACKGROUND 0 |
Background tip color. More... | |
#define | CSPAL_HINT_TEXT 1 |
Tip text color. More... | |
#define | CSPAL_HINT_BORDER 2 |
Tip border. More... | |
Enumerations | |
enum | { cs_Color_Black = 0, cs_Color_White, cs_Color_Gray_D, cs_Color_Gray_M, cs_Color_Gray_L, cs_Color_Blue_D, cs_Color_Blue_M, cs_Color_Blue_L, cs_Color_Green_D, cs_Color_Green_M, cs_Color_Green_L, cs_Color_Red_D, cs_Color_Red_M, cs_Color_Red_L, cs_Color_Cyan_D, cs_Color_Cyan_M, cs_Color_Cyan_L, cs_Color_Brown_D, cs_Color_Brown_M, cs_Color_Brown_L, cs_Color_Lemon, cs_Color_Last } |
csApp contains a static array with indexes of all colors used in windowing system. More... | |
Functions | |
int | csRegisterPalette (int *Palette, int Size) |
Register a new color palette (returns the palette index). More... | |
void | csSetColorScheme (csApp *iApp, csColorScheme &Scheme) |
Change the global color scheme (or restore scheme if NULL passed). More... | |
void | csResetPalette (void) |
Cleanup the global palette array when it is not needed anymore. More... | |
Variables | |
csPaletteExport * | cswsPalette |
A global array containing CSWS palette for all component types. More... | |
int | cswsPaletteSize |
Total number of palettes. More... |
Definition in file cswspal.h.