cxWidgets 1.0
Namespaces | Macros | Enumerations
cxColors.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cx
 cxBorderChars.h - Defines border characters to be used in drawing a box (i.e., in cxWindow and all its derivitives)
 

Macros

#define cxCOLOR_BRIGHT   1
 cxColors.h - contains an enumeration of the colors available for the cxWidgets objects.
 

Enumerations

enum  cx::e_cxColors {
  cx::eDEFAULT = 0 , cx::eRED_BLACK = 2 , cx::eBRTRED_BLACK , cx::eGREEN_BLACK ,
  cx::eBRTGREEN_BLACK , cx::eBROWN_BLACK , cx::eYELLOW_BLACK , cx::eBLUE_BLACK ,
  cx::eBRTBLUE_BLACK , cx::eCYAN_BLACK , cx::eBRTCYAN_BLACK , cx::eMAGENTA_BLACK ,
  cx::eBRTMAGENTA_BLACK , cx::eGRAY_BLACK , cx::eWHITE_BLACK , cx::eBLACK_BLACK ,
  cx::eRED_WHITE = eBLACK_BLACK + 2 , cx::eBRTRED_WHITE , cx::eGREEN_WHITE , cx::eBRTGREEN_WHITE ,
  cx::eBROWN_WHITE , cx::eYELLOW_WHITE , cx::eBLUE_WHITE , cx::eBRTBLUE_WHITE ,
  cx::eCYAN_WHITE , cx::eBRTCYAN_WHITE , cx::eMAGENTA_WHITE , cx::eBRTMAGENTA_WHITE ,
  cx::eGRAY_WHITE , cx::eWHITE_WHITE , cx::eBLACK_WHITE , cx::eRED_BLUE = eBLACK_WHITE + 2 ,
  cx::eBRTRED_BLUE , cx::eGREEN_BLUE , cx::eBRTGREEN_BLUE , cx::eBROWN_BLUE ,
  cx::eYELLOW_BLUE , cx::eBLUE_BLUE , cx::eBRTBLUE_BLUE , cx::eCYAN_BLUE ,
  cx::eBRTCYAN_BLUE , cx::eMAGENTA_BLUE , cx::eBRTMAGENTA_BLUE , cx::eGRAY_BLUE ,
  cx::eWHITE_BLUE , cx::eBLACK_BLUE , cx::eRED_GREEN = eBLACK_BLUE + 2 , cx::eBRTRED_GREEN ,
  cx::eBROWN_GREEN , cx::eYELLOW_GREEN , cx::eBLUE_GREEN , cx::eBRTBLUE_GREEN ,
  cx::eCYAN_GREEN , cx::eBRTCYAN_GREEN , cx::eMAGENTA_GREEN , cx::eBRTMAGENTA_GREEN ,
  cx::eGRAY_GREEN , cx::eWHITE_GREEN , cx::eGREEN_GREEN , cx::eBRTGREEN_GREEN ,
  cx::eBLACK_GREEN , cx::eRED_RED = eBLACK_GREEN + 2 , cx::eBRTRED_RED , cx::eGREEN_RED ,
  cx::eBRTGREEN_RED , cx::eBROWN_RED , cx::eYELLOW_RED , cx::eBLUE_RED ,
  cx::eBRTBLUE_RED , cx::eCYAN_RED , cx::eBRTCYAN_RED , cx::eMAGENTA_RED ,
  cx::eBRTMAGENTA_RED , cx::eGRAY_RED , cx::eWHITE_RED , cx::eBLACK_RED ,
  cx::eRED_CYAN = eBLACK_RED + 2 , cx::eBRTRED_CYAN , cx::eGREEN_CYAN , cx::eBRTGREEN_CYAN ,
  cx::eBROWN_CYAN , cx::eYELLOW_CYAN , cx::eBLUE_CYAN , cx::eBRTBLUE_CYAN ,
  cx::eCYAN_CYAN , cx::eBRTCYAN_CYAN , cx::eMAGENTA_CYAN , cx::eBRTMAGENTA_CYAN ,
  cx::eGRAY_CYAN , cx::eWHITE_CYAN , cx::eBLACK_CYAN
}
 

Macro Definition Documentation

◆ cxCOLOR_BRIGHT

#define cxCOLOR_BRIGHT   1

cxColors.h - contains an enumeration of the colors available for the cxWidgets objects.

Note: These are arranged so that the odd ones are bright (w/ the A_BOLD attribute set) - odd ones will have the rightmost bit (the one bit) set to 1.

Note to programmers: If you add a color, make sure to edit the init() function in cxBase.cpp and use init_pair() to initialize the ncurses color pair. Also, make sure bright colors are odd and non-bright colors are even - cxWindow and other classes that display text use the ones bit (LSB) to check for brightness - if it's 1, then the A_BOLD attribute will be used, effectively making the text a bright version of the color that is set.

Note that the total possible number of colors that ncurses can handle is fairly limited. Currently there are more colors listed here than ncurses can handle, so the ones near the end of the list won't actually work correctly. In Fedora Core 4, with a version of ncurses current as of 10/12/05, the number of possible colors is 63.

Copyright (C) 2005-2007 Michael H. Kinney