csws/cswspal.h File Reference
Crystal Space Windowing System: CSWS palette definition. More...
#include "csextern.h"
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. | |
| #define | CSPAL_BUTTON 1 |
| Button palette index. | |
| #define | CSPAL_DIALOG 2 |
| Dialog palette index. | |
| #define | CSPAL_INPUTLINE 3 |
| Input line palette index. | |
| #define | CSPAL_MENUITEM 4 |
| Menu item palette index. | |
| #define | CSPAL_MENU 5 |
| Menu palette index. | |
| #define | CSPAL_STATIC 6 |
| Static component palette index. | |
| #define | CSPAL_TITLEBAR 7 |
| Title bar palette index. | |
| #define | CSPAL_WINDOW 8 |
| Window palette index. | |
| #define | CSPAL_LISTBOX 9 |
| List box palette index. | |
| #define | CSPAL_LISTBOXITEM 10 |
| List box item palette index. | |
| #define | CSPAL_SCROLLBAR 11 |
| Scroll bar palette index. | |
| #define | CSPAL_NOTEBOOK 12 |
| Notebook palette index. | |
| #define | CSPAL_GRIDCELL 13 |
| GridCell palette index. | |
| #define | CSPAL_GRIDVIEW 14 |
| GridView palette index. | |
| #define | CSPAL_SPLITTER 15 |
| Slider palette index. | |
| #define | CSPAL_TREEITEM 16 |
| Tree control item palette index. | |
| #define | CSPAL_TREEBOX 17 |
| Tree control palette index. | |
| #define | CSPAL_HINT 18 |
| Hint component palette index. | |
csApp class color palette indices | |
| #define | CSPAL_APP_WORKSPACE 0 |
| Workspace color index. | |
csButton class color palette indices | |
| #define | CSPAL_BUTTON_BACKGROUND 0 |
| button background | |
| #define | CSPAL_BUTTON_DEFFRAME 1 |
| default button frame | |
| #define | CSPAL_BUTTON_DARK3D 2 |
| 3D border dark | |
| #define | CSPAL_BUTTON_LIGHT3D 3 |
| 3D border light | |
| #define | CSPAL_BUTTON_TEXT 4 |
| button text | |
| #define | CSPAL_BUTTON_DTEXT 5 |
| button disabled text | |
csDialog class color palette indices | |
| #define | CSPAL_DIALOG_BACKGROUND 0 |
| Background color index. | |
| #define | CSPAL_DIALOG_DARK3D 1 |
| 3D border dark | |
| #define | CSPAL_DIALOG_LIGHT3D 2 |
| 3D border light | |
| #define | CSPAL_DIALOG_2DARK3D 3 |
| 2nd level 3D border dark | |
| #define | CSPAL_DIALOG_2LIGHT3D 4 |
| 2nd level 3D border light | |
csInputLine class color palette indices | |
| #define | CSPAL_INPUTLINE_BACKGROUND 0 |
| input line background | |
| #define | CSPAL_INPUTLINE_BACKGROUND2 1 |
| Background color for csifsThickRect. | |
| #define | CSPAL_INPUTLINE_DARK3D 2 |
| 3D border dark | |
| #define | CSPAL_INPUTLINE_LIGHT3D 3 |
| 3D border light | |
| #define | CSPAL_INPUTLINE_2DARK3D 4 |
| 2nd level 3D border dark | |
| #define | CSPAL_INPUTLINE_2LIGHT3D 5 |
| 2nd level 3D border light | |
| #define | CSPAL_INPUTLINE_TEXT 6 |
| input line text | |
| #define | CSPAL_INPUTLINE_SELBACKGROUND 7 |
| input line selection background | |
| #define | CSPAL_INPUTLINE_SELTEXT 8 |
| input line selected text | |
csListBox class color palette indices | |
| #define | CSPAL_LISTBOX_BACKGROUND 0 |
| list box background | |
| #define | CSPAL_LISTBOX_BACKGROUND2 1 |
| background color for cslfsThickRect | |
| #define | CSPAL_LISTBOX_DARK3D 2 |
| 3D border dark | |
| #define | CSPAL_LISTBOX_LIGHT3D 3 |
| 3D border light | |
| #define | CSPAL_LISTBOX_2DARK3D 4 |
| 2nd level 3D border dark | |
| #define | CSPAL_LISTBOX_2LIGHT3D 5 |
| 2nd level 3D border light | |
csTreeBox class color palette indices | |
| #define | CSPAL_TREEBOX_BACKGROUND 0 |
| tree control background | |
| #define | CSPAL_TREEBOX_BACKGROUND2 1 |
| background color for cstfsThickRect | |
| #define | CSPAL_TREEBOX_DARK3D 2 |
| 3D border dark | |
| #define | CSPAL_TREEBOX_LIGHT3D 3 |
| 3D border light | |
| #define | CSPAL_TREEBOX_2DARK3D 4 |
| 2nd level 3D border dark | |
| #define | CSPAL_TREEBOX_2LIGHT3D 5 |
| 2nd level 3D border light | |
csMenuItem class color palette indices | |
| #define | CSPAL_MENUITEM_BACKGROUND 0 |
| Unselected menu item background. | |
| #define | CSPAL_MENUITEM_SELECTION 1 |
| Selected menu item background. | |
| #define | CSPAL_MENUITEM_UTEXT 2 |
| Unselected text. | |
| #define | CSPAL_MENUITEM_STEXT 3 |
| Selected text. | |
| #define | CSPAL_MENUITEM_DTEXT 4 |
| Disabled text. | |
| #define | CSPAL_MENUITEM_DARK3D 5 |
| Separator 3D dark. | |
| #define | CSPAL_MENUITEM_LIGHT3D 6 |
| Separator 3D light. | |
csMenu class color palette indices | |
| #define | CSPAL_MENU_BACKGROUND 0 |
| Menu background. | |
| #define | CSPAL_MENU_DARK3D 1 |
| 3D border dark | |
| #define | CSPAL_MENU_LIGHT3D 2 |
| 3D border light | |
| #define | CSPAL_MENU_2DARK3D 3 |
| 3D border 2nd level dark | |
| #define | CSPAL_MENU_2LIGHT3D 4 |
| 3D border 2nd level light | |
csStatic class color palette indices | |
| #define | CSPAL_STATIC_BACKGROUND 0 |
| static component background | |
| #define | CSPAL_STATIC_ITEXT 1 |
| static component text / inactive | |
| #define | CSPAL_STATIC_ATEXT 2 |
| static component text / active | |
| #define | CSPAL_STATIC_DTEXT 3 |
| static component text / disabled | |
| #define | CSPAL_STATIC_DARK3D 4 |
| 3D border dark | |
| #define | CSPAL_STATIC_LIGHT3D 5 |
| 3D border light | |
csTitleBar class color palette indices | |
| #define | CSPAL_TITLEBAR_DARK3D 0 |
| 3D border dark | |
| #define | CSPAL_TITLEBAR_LIGHT3D 1 |
| 3D border light | |
| #define | CSPAL_TITLEBAR_PBACKGROUND 2 |
| passive title background | |
| #define | CSPAL_TITLEBAR_PTEXT 3 |
| passive title text | |
| #define | CSPAL_TITLEBAR_PDARK3D 4 |
| passive title 3D bars dark | |
| #define | CSPAL_TITLEBAR_PLIGHT3D 5 |
| passive title 3D bars light | |
| #define | CSPAL_TITLEBAR_ABACKGROUND 6 |
| active title background | |
| #define | CSPAL_TITLEBAR_ATEXT 7 |
| active title text | |
| #define | CSPAL_TITLEBAR_ADARK3D 8 |
| active title 3D bars dark | |
| #define | CSPAL_TITLEBAR_ALIGHT3D 9 |
| active title 3D bars light | |
csWindow class color palette indices | |
| #define | CSPAL_WINDOW_DARK3D 0 |
| 3D border dark | |
| #define | CSPAL_WINDOW_LIGHT3D 1 |
| 3D border light | |
| #define | CSPAL_WINDOW_2DARK3D 2 |
| 3D border 2nd level dark | |
| #define | CSPAL_WINDOW_2LIGHT3D 3 |
| 3D border 2nd level light | |
| #define | CSPAL_WINDOW_BORDER 4 |
| border normal | |
csListBoxItem class color palette indices | |
| #define | CSPAL_LISTBOXITEM_BACKGROUND 0 |
| Unselected listbox item background. | |
| #define | CSPAL_LISTBOXITEM_SELECTION 1 |
| Selected listbox item background. | |
| #define | CSPAL_LISTBOXITEM_DTEXT 2 |
| Disabled text. | |
| #define | CSPAL_LISTBOXITEM_UNTEXT 3 |
| Unselected normal text. | |
| #define | CSPAL_LISTBOXITEM_SNTEXT 4 |
| Selected normal text. | |
| #define | CSPAL_LISTBOXITEM_UETEXT 5 |
| Unselected emphasized text. | |
| #define | CSPAL_LISTBOXITEM_SETEXT 6 |
| Selected emphasized text. | |
csTreeItem class color palette indices | |
| #define | CSPAL_TREEITEM_BACKGROUND 0 |
| Unselected tree item background. | |
| #define | CSPAL_TREEITEM_SELECTION 1 |
| Selected tree item background. | |
| #define | CSPAL_TREEITEM_DTEXT 2 |
| Disabled text. | |
| #define | CSPAL_TREEITEM_UNTEXT 3 |
| Unselected normal text. | |
| #define | CSPAL_TREEITEM_SNTEXT 4 |
| Selected normal text. | |
| #define | CSPAL_TREEITEM_UETEXT 5 |
| Unselected emphasized text. | |
| #define | CSPAL_TREEITEM_SETEXT 6 |
| Selected emphasized text. | |
| #define | CSPAL_TREEITEM_LINES 7 |
| The lines connecting children. | |
csScrollBar class color palette indices | |
| #define | CSPAL_SCROLLBAR_BACKGROUND 0 |
| Scroll bar background. | |
| #define | CSPAL_SCROLLBAR_SELBACKGROUND 1 |
| Scroll bar selected background. | |
| #define | CSPAL_SCROLLBAR_DARK3D 2 |
| 3D border dark | |
| #define | CSPAL_SCROLLBAR_LIGHT3D 3 |
| 3D border light | |
csNotebook class color palette indices | |
| #define | CSPAL_NOTEBOOK_BACKGROUND 0 |
| Notebook background. | |
| #define | CSPAL_NOTEBOOK_TAB_UNSEL 1 |
| Unselected tab background. | |
| #define | CSPAL_NOTEBOOK_UNSEL_TEXT 2 |
| The text on unselected tabs. | |
| #define | CSPAL_NOTEBOOK_TAB_UNSELB1 3 |
| The most dark color of unselected tab border. | |
| #define | CSPAL_NOTEBOOK_TAB_UNSELB2 4 |
| The second color of unselected tab border. | |
| #define | CSPAL_NOTEBOOK_TAB_UNSELB3 5 |
| The third color of unselected tab border. | |
| #define | CSPAL_NOTEBOOK_TAB_SEL 6 |
| Selected tab background. | |
| #define | CSPAL_NOTEBOOK_SEL_TEXT 7 |
| The text on selected tab. | |
| #define | CSPAL_NOTEBOOK_TAB_SELB1 8 |
| The most dark color of selected tab border. | |
| #define | CSPAL_NOTEBOOK_TAB_SELB2 9 |
| The second color of selected tab border. | |
| #define | CSPAL_NOTEBOOK_TAB_SELB3 10 |
| The third color of selected tab border. | |
| #define | CSPAL_NOTEBOOK_INFO_TEXT 11 |
| The information text. | |
| #define | CSPAL_NOTEBOOK_DARK3D 12 |
| 3D border dark | |
| #define | CSPAL_NOTEBOOK_LIGHT3D 13 |
| 3D border light | |
| #define | CSPAL_NOTEBOOK_2DARK3D 14 |
| 3D border very dark | |
| #define | CSPAL_NOTEBOOK_2LIGHT3D 15 |
| 3D border middle light | |
csGridCell class color palette indices | |
| #define | CSPAL_GRIDCELL_BACKGROUND 0 |
| background | |
| #define | CSPAL_GRIDCELL_BORDER_FG 1 |
| border foreground | |
| #define | CSPAL_GRIDCELL_BORDER_BG 2 |
| border background | |
| #define | CSPAL_GRIDCELL_SEL_BACKGROUND 3 |
| selected background | |
| #define | CSPAL_GRIDCELL_SEL_BORDER_FG 4 |
| selected border foreground | |
| #define | CSPAL_GRIDCELL_SEL_BORDER_BG 5 |
| selected border background | |
| #define | CSPAL_GRIDCELL_DATA_FG 6 |
| data foreground | |
| #define | CSPAL_GRIDCELL_DATA_BG 7 |
| data background | |
| #define | CSPAL_GRIDCELL_SEL_DATA_FG 8 |
| selected data foreground | |
| #define | CSPAL_GRIDCELL_SEL_DATA_BG 9 |
| selcted data background | |
csGridView class color palette indices | |
| #define | CSPAL_GRIDVIEW_BACKGROUND 0 |
| background | |
| #define | CSPAL_GRIDVIEW_DARK3D 1 |
| 3D border dark | |
| #define | CSPAL_GRIDVIEW_LIGHT3D 2 |
| 3D border light | |
| #define | CSPAL_GRIDVIEW_SEL_DARK3D 3 |
| 3D border dark selected | |
| #define | CSPAL_GRIDVIEW_SEL_LIGHT3D 4 |
| 3D border light selected | |
csSplitter class color palette indices | |
| #define | CSPAL_SPLITTER_IBACKGROUND 0 |
| Splitter inactive background. | |
| #define | CSPAL_SPLITTER_ILIGHT3D 1 |
| Splitter inactive light 3D color. | |
| #define | CSPAL_SPLITTER_IDARK3D 2 |
| Splitter inactive dark 3D color. | |
| #define | CSPAL_SPLITTER_ABACKGROUND 3 |
| Splitter active background. | |
| #define | CSPAL_SPLITTER_ALIGHT3D 4 |
| Splitter active light 3D color. | |
| #define | CSPAL_SPLITTER_ADARK3D 5 |
| Splitter active dark 3D color. | |
csTip class color palette indices | |
| #define | CSPAL_HINT_BACKGROUND 0 |
| Background tip color. | |
| #define | CSPAL_HINT_TEXT 1 |
| Tip text color. | |
| #define | CSPAL_HINT_BORDER 2 |
| Tip border. | |
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). | |
| void | csSetColorScheme (csApp *iApp, csColorScheme &Scheme) |
| Change the global color scheme (or restore scheme if 0 passed). | |
| void | csResetPalette (void) |
| Cleanup the global palette array when it is not needed anymore. | |
Variables | |
| csPaletteExport * | cswsPalette |
| A global array containing CSWS palette for all component types. | |
| int | cswsPaletteSize |
| Total number of palettes. | |
Detailed Description
Crystal Space Windowing System: CSWS palette definition.
Definition in file cswspal.h.
Generated for Crystal Space by doxygen 1.2.18
