CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 (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

csPaletteExportcswsPalette
 A global array containing CSWS palette for all component types.

int cswsPaletteSize
 Total number of palettes.


Define Documentation

#define CSPAL_APP   0
 

Application palette index.

Definition at line 143 of file cswspal.h.

#define CSPAL_APP_WORKSPACE   0
 

Workspace color index.

Definition at line 186 of file cswspal.h.

#define CSPAL_BUTTON   1
 

Button palette index.

Definition at line 145 of file cswspal.h.

#define CSPAL_BUTTON_BACKGROUND   0
 

button background

Definition at line 193 of file cswspal.h.

#define CSPAL_BUTTON_DARK3D   2
 

3D border dark

Definition at line 197 of file cswspal.h.

#define CSPAL_BUTTON_DEFFRAME   1
 

default button frame

Definition at line 195 of file cswspal.h.

#define CSPAL_BUTTON_DTEXT   5
 

button disabled text

Definition at line 203 of file cswspal.h.

#define CSPAL_BUTTON_LIGHT3D   3
 

3D border light

Definition at line 199 of file cswspal.h.

#define CSPAL_BUTTON_TEXT   4
 

button text

Definition at line 201 of file cswspal.h.

#define CSPAL_DIALOG   2
 

Dialog palette index.

Definition at line 147 of file cswspal.h.

#define CSPAL_DIALOG_2DARK3D   3
 

2nd level 3D border dark

Definition at line 216 of file cswspal.h.

#define CSPAL_DIALOG_2LIGHT3D   4
 

2nd level 3D border light

Definition at line 218 of file cswspal.h.

#define CSPAL_DIALOG_BACKGROUND   0
 

Background color index.

Definition at line 210 of file cswspal.h.

#define CSPAL_DIALOG_DARK3D   1
 

3D border dark

Definition at line 212 of file cswspal.h.

#define CSPAL_DIALOG_LIGHT3D   2
 

3D border light

Definition at line 214 of file cswspal.h.

#define CSPAL_GRIDCELL   13
 

GridCell palette index.

Definition at line 169 of file cswspal.h.

#define CSPAL_GRIDCELL_BACKGROUND   0
 

background

Definition at line 464 of file cswspal.h.

#define CSPAL_GRIDCELL_BORDER_BG   2
 

border background

Definition at line 468 of file cswspal.h.

#define CSPAL_GRIDCELL_BORDER_FG   1
 

border foreground

Definition at line 466 of file cswspal.h.

#define CSPAL_GRIDCELL_DATA_BG   7
 

data background

Definition at line 478 of file cswspal.h.

#define CSPAL_GRIDCELL_DATA_FG   6
 

data foreground

Definition at line 476 of file cswspal.h.

#define CSPAL_GRIDCELL_SEL_BACKGROUND   3
 

selected background

Definition at line 470 of file cswspal.h.

#define CSPAL_GRIDCELL_SEL_BORDER_BG   5
 

selected border background

Definition at line 474 of file cswspal.h.

#define CSPAL_GRIDCELL_SEL_BORDER_FG   4
 

selected border foreground

Definition at line 472 of file cswspal.h.

#define CSPAL_GRIDCELL_SEL_DATA_BG   9
 

selcted data background

Definition at line 482 of file cswspal.h.

#define CSPAL_GRIDCELL_SEL_DATA_FG   8
 

selected data foreground

Definition at line 480 of file cswspal.h.

#define CSPAL_GRIDVIEW   14
 

GridView palette index.

Definition at line 171 of file cswspal.h.

#define CSPAL_GRIDVIEW_BACKGROUND   0
 

background

Definition at line 489 of file cswspal.h.

#define CSPAL_GRIDVIEW_DARK3D   1
 

3D border dark

Definition at line 491 of file cswspal.h.

#define CSPAL_GRIDVIEW_LIGHT3D   2
 

3D border light

Definition at line 493 of file cswspal.h.

#define CSPAL_GRIDVIEW_SEL_DARK3D   3
 

3D border dark selected

Definition at line 495 of file cswspal.h.

#define CSPAL_GRIDVIEW_SEL_LIGHT3D   4
 

3D border light selected

Definition at line 497 of file cswspal.h.

#define CSPAL_HINT   18
 

Hint component palette index.

Definition at line 179 of file cswspal.h.

#define CSPAL_HINT_BACKGROUND   0
 

Background tip color.

Definition at line 521 of file cswspal.h.

#define CSPAL_HINT_BORDER   2
 

Tip border.

Definition at line 525 of file cswspal.h.

#define CSPAL_HINT_TEXT   1
 

Tip text color.

Definition at line 523 of file cswspal.h.

#define CSPAL_INPUTLINE   3
 

Input line palette index.

Definition at line 149 of file cswspal.h.

#define CSPAL_INPUTLINE_2DARK3D   4
 

2nd level 3D border dark

Definition at line 233 of file cswspal.h.

#define CSPAL_INPUTLINE_2LIGHT3D   5
 

2nd level 3D border light

Definition at line 235 of file cswspal.h.

#define CSPAL_INPUTLINE_BACKGROUND   0
 

input line background

Definition at line 225 of file cswspal.h.

#define CSPAL_INPUTLINE_BACKGROUND2   1
 

Background color for csifsThickRect.

Definition at line 227 of file cswspal.h.

#define CSPAL_INPUTLINE_DARK3D   2
 

3D border dark

Definition at line 229 of file cswspal.h.

#define CSPAL_INPUTLINE_LIGHT3D   3
 

3D border light

Definition at line 231 of file cswspal.h.

#define CSPAL_INPUTLINE_SELBACKGROUND   7
 

input line selection background

Definition at line 239 of file cswspal.h.

#define CSPAL_INPUTLINE_SELTEXT   8
 

input line selected text

Definition at line 241 of file cswspal.h.

#define CSPAL_INPUTLINE_TEXT   6
 

input line text

Definition at line 237 of file cswspal.h.

#define CSPAL_LISTBOX   9
 

List box palette index.

Definition at line 161 of file cswspal.h.

#define CSPAL_LISTBOX_2DARK3D   4
 

2nd level 3D border dark

Definition at line 256 of file cswspal.h.

#define CSPAL_LISTBOX_2LIGHT3D   5
 

2nd level 3D border light

Definition at line 258 of file cswspal.h.

#define CSPAL_LISTBOX_BACKGROUND   0
 

list box background

Definition at line 248 of file cswspal.h.

#define CSPAL_LISTBOX_BACKGROUND2   1
 

background color for cslfsThickRect

Definition at line 250 of file cswspal.h.

#define CSPAL_LISTBOX_DARK3D   2
 

3D border dark

Definition at line 252 of file cswspal.h.

#define CSPAL_LISTBOX_LIGHT3D   3
 

3D border light

Definition at line 254 of file cswspal.h.

#define CSPAL_LISTBOXITEM   10
 

List box item palette index.

Definition at line 163 of file cswspal.h.

#define CSPAL_LISTBOXITEM_BACKGROUND   0
 

Unselected listbox item background.

Definition at line 374 of file cswspal.h.

#define CSPAL_LISTBOXITEM_DTEXT   2
 

Disabled text.

Definition at line 378 of file cswspal.h.

#define CSPAL_LISTBOXITEM_SELECTION   1
 

Selected listbox item background.

Definition at line 376 of file cswspal.h.

#define CSPAL_LISTBOXITEM_SETEXT   6
 

Selected emphasized text.

Definition at line 386 of file cswspal.h.

#define CSPAL_LISTBOXITEM_SNTEXT   4
 

Selected normal text.

Definition at line 382 of file cswspal.h.

#define CSPAL_LISTBOXITEM_UETEXT   5
 

Unselected emphasized text.

Definition at line 384 of file cswspal.h.

#define CSPAL_LISTBOXITEM_UNTEXT   3
 

Unselected normal text.

Definition at line 380 of file cswspal.h.

#define CSPAL_MENU   5
 

Menu palette index.

Definition at line 153 of file cswspal.h.

#define CSPAL_MENU_2DARK3D   3
 

3D border 2nd level dark

Definition at line 307 of file cswspal.h.

#define CSPAL_MENU_2LIGHT3D   4
 

3D border 2nd level light

Definition at line 309 of file cswspal.h.

#define CSPAL_MENU_BACKGROUND   0
 

Menu background.

Definition at line 301 of file cswspal.h.

#define CSPAL_MENU_DARK3D   1
 

3D border dark

Definition at line 303 of file cswspal.h.

#define CSPAL_MENU_LIGHT3D   2
 

3D border light

Definition at line 305 of file cswspal.h.

#define CSPAL_MENUITEM   4
 

Menu item palette index.

Definition at line 151 of file cswspal.h.

#define CSPAL_MENUITEM_BACKGROUND   0
 

Unselected menu item background.

Definition at line 282 of file cswspal.h.

#define CSPAL_MENUITEM_DARK3D   5
 

Separator 3D dark.

Definition at line 292 of file cswspal.h.

#define CSPAL_MENUITEM_DTEXT   4
 

Disabled text.

Definition at line 290 of file cswspal.h.

#define CSPAL_MENUITEM_LIGHT3D   6
 

Separator 3D light.

Definition at line 294 of file cswspal.h.

#define CSPAL_MENUITEM_SELECTION   1
 

Selected menu item background.

Definition at line 284 of file cswspal.h.

#define CSPAL_MENUITEM_STEXT   3
 

Selected text.

Definition at line 288 of file cswspal.h.

#define CSPAL_MENUITEM_UTEXT   2
 

Unselected text.

Definition at line 286 of file cswspal.h.

#define CSPAL_NOTEBOOK   12
 

Notebook palette index.

Definition at line 167 of file cswspal.h.

#define CSPAL_NOTEBOOK_2DARK3D   14
 

3D border very dark

Definition at line 455 of file cswspal.h.

#define CSPAL_NOTEBOOK_2LIGHT3D   15
 

3D border middle light

Definition at line 457 of file cswspal.h.

#define CSPAL_NOTEBOOK_BACKGROUND   0
 

Notebook background.

Definition at line 427 of file cswspal.h.

#define CSPAL_NOTEBOOK_DARK3D   12
 

3D border dark

Definition at line 451 of file cswspal.h.

#define CSPAL_NOTEBOOK_INFO_TEXT   11
 

The information text.

Definition at line 449 of file cswspal.h.

#define CSPAL_NOTEBOOK_LIGHT3D   13
 

3D border light

Definition at line 453 of file cswspal.h.

#define CSPAL_NOTEBOOK_SEL_TEXT   7
 

The text on selected tab.

Definition at line 441 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_SEL   6
 

Selected tab background.

Definition at line 439 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_SELB1   8
 

The most dark color of selected tab border.

Definition at line 443 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_SELB2   9
 

The second color of selected tab border.

Definition at line 445 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_SELB3   10
 

The third color of selected tab border.

Definition at line 447 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_UNSEL   1
 

Unselected tab background.

Definition at line 429 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_UNSELB1   3
 

The most dark color of unselected tab border.

Definition at line 433 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_UNSELB2   4
 

The second color of unselected tab border.

Definition at line 435 of file cswspal.h.

#define CSPAL_NOTEBOOK_TAB_UNSELB3   5
 

The third color of unselected tab border.

Definition at line 437 of file cswspal.h.

#define CSPAL_NOTEBOOK_UNSEL_TEXT   2
 

The text on unselected tabs.

Definition at line 431 of file cswspal.h.

#define CSPAL_SCROLLBAR   11
 

Scroll bar palette index.

Definition at line 165 of file cswspal.h.

#define CSPAL_SCROLLBAR_BACKGROUND   0
 

Scroll bar background.

Definition at line 414 of file cswspal.h.

#define CSPAL_SCROLLBAR_DARK3D   2
 

3D border dark

Definition at line 418 of file cswspal.h.

#define CSPAL_SCROLLBAR_LIGHT3D   3
 

3D border light

Definition at line 420 of file cswspal.h.

#define CSPAL_SCROLLBAR_SELBACKGROUND   1
 

Scroll bar selected background.

Definition at line 416 of file cswspal.h.

#define CSPAL_SPLITTER   15
 

Slider palette index.

Definition at line 173 of file cswspal.h.

#define CSPAL_SPLITTER_ABACKGROUND   3
 

Splitter active background.

Definition at line 510 of file cswspal.h.

#define CSPAL_SPLITTER_ADARK3D   5
 

Splitter active dark 3D color.

Definition at line 514 of file cswspal.h.

#define CSPAL_SPLITTER_ALIGHT3D   4
 

Splitter active light 3D color.

Definition at line 512 of file cswspal.h.

#define CSPAL_SPLITTER_IBACKGROUND   0
 

Splitter inactive background.

Definition at line 504 of file cswspal.h.

#define CSPAL_SPLITTER_IDARK3D   2
 

Splitter inactive dark 3D color.

Definition at line 508 of file cswspal.h.

#define CSPAL_SPLITTER_ILIGHT3D   1
 

Splitter inactive light 3D color.

Definition at line 506 of file cswspal.h.

#define CSPAL_STATIC   6
 

Static component palette index.

Definition at line 155 of file cswspal.h.

#define CSPAL_STATIC_ATEXT   2
 

static component text / active

Definition at line 320 of file cswspal.h.

#define CSPAL_STATIC_BACKGROUND   0
 

static component background

Definition at line 316 of file cswspal.h.

#define CSPAL_STATIC_DARK3D   4
 

3D border dark

Definition at line 324 of file cswspal.h.

#define CSPAL_STATIC_DTEXT   3
 

static component text / disabled

Definition at line 322 of file cswspal.h.

#define CSPAL_STATIC_ITEXT   1
 

static component text / inactive

Definition at line 318 of file cswspal.h.

#define CSPAL_STATIC_LIGHT3D   5
 

3D border light

Definition at line 326 of file cswspal.h.

#define CSPAL_TITLEBAR   7
 

Title bar palette index.

Definition at line 157 of file cswspal.h.

#define CSPAL_TITLEBAR_ABACKGROUND   6
 

active title background

Definition at line 345 of file cswspal.h.

#define CSPAL_TITLEBAR_ADARK3D   8
 

active title 3D bars dark

Definition at line 349 of file cswspal.h.

#define CSPAL_TITLEBAR_ALIGHT3D   9
 

active title 3D bars light

Definition at line 351 of file cswspal.h.

#define CSPAL_TITLEBAR_ATEXT   7
 

active title text

Definition at line 347 of file cswspal.h.

#define CSPAL_TITLEBAR_DARK3D   0
 

3D border dark

Definition at line 333 of file cswspal.h.

#define CSPAL_TITLEBAR_LIGHT3D   1
 

3D border light

Definition at line 335 of file cswspal.h.

#define CSPAL_TITLEBAR_PBACKGROUND   2
 

passive title background

Definition at line 337 of file cswspal.h.

#define CSPAL_TITLEBAR_PDARK3D   4
 

passive title 3D bars dark

Definition at line 341 of file cswspal.h.

#define CSPAL_TITLEBAR_PLIGHT3D   5
 

passive title 3D bars light

Definition at line 343 of file cswspal.h.

#define CSPAL_TITLEBAR_PTEXT   3
 

passive title text

Definition at line 339 of file cswspal.h.

#define CSPAL_TREEBOX   17
 

Tree control palette index.

Definition at line 177 of file cswspal.h.

#define CSPAL_TREEBOX_2DARK3D   4
 

2nd level 3D border dark

Definition at line 273 of file cswspal.h.

#define CSPAL_TREEBOX_2LIGHT3D   5
 

2nd level 3D border light

Definition at line 275 of file cswspal.h.

#define CSPAL_TREEBOX_BACKGROUND   0
 

tree control background

Definition at line 265 of file cswspal.h.

#define CSPAL_TREEBOX_BACKGROUND2   1
 

background color for cstfsThickRect

Definition at line 267 of file cswspal.h.

#define CSPAL_TREEBOX_DARK3D   2
 

3D border dark

Definition at line 269 of file cswspal.h.

#define CSPAL_TREEBOX_LIGHT3D   3
 

3D border light

Definition at line 271 of file cswspal.h.

#define CSPAL_TREEITEM   16
 

Tree control item palette index.

Definition at line 175 of file cswspal.h.

#define CSPAL_TREEITEM_BACKGROUND   0
 

Unselected tree item background.

Definition at line 393 of file cswspal.h.

#define CSPAL_TREEITEM_DTEXT   2
 

Disabled text.

Definition at line 397 of file cswspal.h.

#define CSPAL_TREEITEM_LINES   7
 

The lines connecting children.

Definition at line 407 of file cswspal.h.

#define CSPAL_TREEITEM_SELECTION   1
 

Selected tree item background.

Definition at line 395 of file cswspal.h.

#define CSPAL_TREEITEM_SETEXT   6
 

Selected emphasized text.

Definition at line 405 of file cswspal.h.

#define CSPAL_TREEITEM_SNTEXT   4
 

Selected normal text.

Definition at line 401 of file cswspal.h.

#define CSPAL_TREEITEM_UETEXT   5
 

Unselected emphasized text.

Definition at line 403 of file cswspal.h.

#define CSPAL_TREEITEM_UNTEXT   3
 

Unselected normal text.

Definition at line 399 of file cswspal.h.

#define CSPAL_WINDOW   8
 

Window palette index.

Definition at line 159 of file cswspal.h.

#define CSPAL_WINDOW_2DARK3D   2
 

3D border 2nd level dark

Definition at line 362 of file cswspal.h.

#define CSPAL_WINDOW_2LIGHT3D   3
 

3D border 2nd level light

Definition at line 364 of file cswspal.h.

#define CSPAL_WINDOW_BORDER   4
 

border normal

Definition at line 366 of file cswspal.h.

#define CSPAL_WINDOW_DARK3D   0
 

3D border dark

Definition at line 358 of file cswspal.h.

#define CSPAL_WINDOW_LIGHT3D   1
 

3D border light

Definition at line 360 of file cswspal.h.

#define CSWS_SKIN_DECLARE name,
base   
 

Value:

class name : public base        \
  {                             \
  public:                       \
    name ()                     \
    {
Start the declaration of a skin.

`name' is the name of the skin (e.g. "Default")

`base' is the base class of the skin (e.g. "csSkin")

Definition at line 319 of file csskin.h.

#define CSWS_SKIN_DECLARE_DEFAULT var   
 

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 30 of file sdefault.h.

#define CSWS_SKIN_DECLARE_END
 

Value:

}                               \
  }
Finish the definition of a skin.

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.

Definition at line 342 of file csskin.h.

#define CSWS_SKIN_SLICE comp       InsertSorted (new cs##comp##Skin, Compare);
 

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.

Definition at line 330 of file csskin.h.


Enumeration Type Documentation

anonymous enum
 

csApp contains a static array with indexes of all colors used in windowing system.

They are mapped to nearest closest match in physical palette.

Enumeration values:
cs_Color_Black  0, 0, 0
cs_Color_White  255, 255, 255
cs_Color_Gray_D  128, 128, 128
cs_Color_Gray_M  160, 160, 160
cs_Color_Gray_L  204, 204, 204
cs_Color_Blue_D  0, 20, 80
cs_Color_Blue_M  0, 44, 176
cs_Color_Blue_L  0, 64, 255
cs_Color_Green_D  20, 80, 20
cs_Color_Green_M  44, 176, 44
cs_Color_Green_L  64, 255, 64
cs_Color_Red_D  80, 0, 0
cs_Color_Red_M  176, 0, 0
cs_Color_Red_L  255, 0, 0
cs_Color_Cyan_D  0, 60, 80
cs_Color_Cyan_M  0, 132, 176
cs_Color_Cyan_L  0, 192, 255
cs_Color_Brown_D  80, 60, 20
cs_Color_Brown_M  176, 132, 44
cs_Color_Brown_L  255, 192, 64
cs_Color_Lemon  255, 250, 205
cs_Color_Last  last color

Definition at line 38 of file cswspal.h.


Function Documentation

int csRegisterPalette int *    Palette,
int    Size
 

Register a new color palette (returns the palette index).

Registered palettes will be affected by color scheme changes; unregistered won't be.

void csResetPalette void   
 

Cleanup the global palette array when it is not needed anymore.

Must be called to avoid memleaks.

void csSetColorScheme csApp   iApp,
csColorScheme   Scheme
 

Change the global color scheme (or restore scheme if 0 passed).


Variable Documentation

csPaletteExport* cswsPalette
 

A global array containing CSWS palette for all component types.

Definition at line 119 of file cswspal.h.

Referenced by csComponent::SetPalette().

int cswsPaletteSize
 

Total number of palettes.

Definition at line 121 of file cswspal.h.


Generated for Crystal Space by doxygen 1.2.18