Skin support
[Crystal Space Windowing System]
Compounds | |
| class | csButtonSkin |
| This class defines the interface for a button skin slice. More... | |
| struct | csColorScheme |
| This structure is used to change color scheme. More... | |
| class | csDefaultButtonSkin |
| This is the default skin for buttons. More... | |
| class | csDefaultDialogSkin |
| This is the default skin for dialogs. More... | |
| class | csDefaultListBoxItemSkin |
| This is the default skin for listbox items. More... | |
| class | csDefaultListBoxSkin |
| This is the default skin for listboxes. More... | |
| class | csDefaultScrollBarSkin |
| This is the default skin for scroll bars. More... | |
| class | csDefaultTitlebarSkin |
| This is the default skin for window titlebars. More... | |
| class | csDefaultWindowSkin |
| This is the default skin for windows. More... | |
| class | csDialogSkin |
| This class defines the interface for a dialog skin slice. More... | |
| class | csListBoxItemSkin |
| This class defines the interface for a listbox item skin slice. More... | |
| class | csListBoxSkin |
| This class defines the interface for a listbox skin slice. More... | |
| struct | csPaletteExport |
| Control palette export structure. More... | |
| class | csScrollBarSkin |
| This class defines the interface for a scrollbar skin slice. More... | |
| class | csSkin |
| This class defines the interface for a container of skins. More... | |
| class | csSkinSlice |
| A `skin slice' is responsible for managing the external view of a certain component. More... | |
| class | csTitlebarSkin |
| This class defines the interface for a window titlebar skin slice. More... | |
| class | csWindowSkin |
| This class defines the interface for a window skin slice. 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. | |
Defines | |
| #define | CSWS_SKIN_DECLARE(name, base) |
| Start the declaration of a skin. | |
| #define | CSWS_SKIN_SLICE(comp) InsertSorted ((csSkinSliceNonAbstr*)new cs##comp##Skin, Compare); |
| Declare a single skin slice to be included into the skin that is in process of definition. | |
| #define | CSWS_SKIN_DECLARE_END |
| Finish the definition of a skin. | |
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. | |
Define Documentation
|
|
Application palette index.
|
|
|
Workspace color index.
|
|
|
Button palette index.
|
|
|
button background
|
|
|
3D border dark
|
|
|
default button frame
|
|
|
button disabled text
|
|
|
3D border light
|
|
|
button text
|
|
|
Dialog palette index.
|
|
|
2nd level 3D border dark
|
|
|
2nd level 3D border light
|
|
|
Background color index.
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
GridCell palette index.
|
|
|
background
|
|
|
border background
|
|
|
border foreground
|
|
|
data background
|
|
|
data foreground
|
|
|
selected background
|
|
|
selected border background
|
|
|
selected border foreground
|
|
|
selcted data background
|
|
|
selected data foreground
|
|
|
GridView palette index.
|
|
|
background
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
3D border dark selected
|
|
|
3D border light selected
|
|
|
Hint component palette index.
|
|
|
Background tip color.
|
|
|
Tip border.
|
|
|
Tip text color.
|
|
|
Input line palette index.
|
|
|
2nd level 3D border dark
|
|
|
2nd level 3D border light
|
|
|
input line background
|
|
|
Background color for csifsThickRect.
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
input line selection background
|
|
|
input line selected text
|
|
|
input line text
|
|
|
List box palette index.
|
|
|
2nd level 3D border dark
|
|
|
2nd level 3D border light
|
|
|
list box background
|
|
|
background color for cslfsThickRect
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
List box item palette index.
|
|
|
Unselected listbox item background.
|
|
|
Disabled text.
|
|
|
Selected listbox item background.
|
|
|
Selected emphasized text.
|
|
|
Selected normal text.
|
|
|
Unselected emphasized text.
|
|
|
Unselected normal text.
|
|
|
Menu palette index.
|
|
|
3D border 2nd level dark
|
|
|
3D border 2nd level light
|
|
|
Menu background.
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
Menu item palette index.
|
|
|
Unselected menu item background.
|
|
|
Separator 3D dark.
|
|
|
Disabled text.
|
|
|
Separator 3D light.
|
|
|
Selected menu item background.
|
|
|
Selected text.
|
|
|
Unselected text.
|
|
|
Notebook palette index.
|
|
|
3D border very dark
|
|
|
3D border middle light
|
|
|
Notebook background.
|
|
|
3D border dark
|
|
|
The information text.
|
|
|
3D border light
|
|
|
The text on selected tab.
|
|
|
Selected tab background.
|
|
|
The most dark color of selected tab border.
|
|
|
The second color of selected tab border.
|
|
|
The third color of selected tab border.
|
|
|
Unselected tab background.
|
|
|
The most dark color of unselected tab border.
|
|
|
The second color of unselected tab border.
|
|
|
The third color of unselected tab border.
|
|
|
The text on unselected tabs.
|
|
|
Scroll bar palette index.
|
|
|
Scroll bar background.
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
Scroll bar selected background.
|
|
|
Slider palette index.
|
|
|
Splitter active background.
|
|
|
Splitter active dark 3D color.
|
|
|
Splitter active light 3D color.
|
|
|
Splitter inactive background.
|
|
|
Splitter inactive dark 3D color.
|
|
|
Splitter inactive light 3D color.
|
|
|
Static component palette index.
|
|
|
static component text / active
|
|
|
static component background
|
|
|
3D border dark
|
|
|
static component text / disabled
|
|
|
static component text / inactive
|
|
|
3D border light
|
|
|
Title bar palette index.
|
|
|
active title background
|
|
|
active title 3D bars dark
|
|
|
active title 3D bars light
|
|
|
active title text
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
passive title background
|
|
|
passive title 3D bars dark
|
|
|
passive title 3D bars light
|
|
|
passive title text
|
|
|
Tree control palette index.
|
|
|
2nd level 3D border dark
|
|
|
2nd level 3D border light
|
|
|
tree control background
|
|
|
background color for cstfsThickRect
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
Tree control item palette index.
|
|
|
Unselected tree item background.
|
|
|
Disabled text.
|
|
|
The lines connecting children.
|
|
|
Selected tree item background.
|
|
|
Selected emphasized text.
|
|
|
Selected normal text.
|
|
|
Unselected emphasized text.
|
|
|
Unselected normal text.
|
|
|
Window palette index.
|
|
|
3D border 2nd level dark
|
|
|
3D border 2nd level light
|
|
|
border normal
|
|
|
3D border dark
|
|
|
3D border light
|
|
|
Value: class name : public base \ { \ public: \ name () \ {
`name' is the name of the skin (e.g. "Default") `base' is the base class of the skin (e.g. "csSkin") |
|
|
Value: CSWS_SKIN_DECLARE (my##var##Type, csSkin); \ CSWS_SKIN_SLICE (DefaultScrollBar); \ CSWS_SKIN_SLICE (DefaultButton); \ CSWS_SKIN_SLICE (DefaultWindow); \ CSWS_SKIN_SLICE (DefaultDialog); \ CSWS_SKIN_SLICE (DefaultTitlebar); \ CSWS_SKIN_SLICE (DefaultListBox); \ CSWS_SKIN_SLICE (DefaultListBoxItem); \ CSWS_SKIN_DECLARE_END var Definition at line 32 of file sdefault.h. |
|
|
Value: } \ } After CSWS_SKIN_DECLARE_END you should put either a variable name (e.g. "CSWS_SKIN_DECLARE_END myskin;") or simply a ';' - in the later case you will define just a type called [name], where `name' is the first parameter passed to CSWS_SKIN_DECLARE(), and you will have to declare somewhere a variable of this type in order to use the skin. |
|
|
Declare a single skin slice to be included into the skin that is in process of definition. "comp" is the component name, e.g. "Button", "Window" and so on. |
Enumeration Type Documentation
|
|
csApp contains a static array with indexes of all colors used in windowing system. They are mapped to nearest closest match in physical palette.
|
Function Documentation
|
||||||||||||
|
Register a new color palette (returns the palette index). Registered palettes will be affected by color scheme changes; unregistered won't be. |
|
|
Cleanup the global palette array when it is not needed anymore. Must be called to avoid memleaks. |
|
||||||||||||
|
Change the global color scheme (or restore scheme if 0 passed).
|
Variable Documentation
|
|
A global array containing CSWS palette for all component types.
Definition at line 121 of file cswspal.h. Referenced by csComponent::SetPalette(). |
|
|
Total number of palettes.
|
Generated for Crystal Space by doxygen 1.2.18
