Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIColorResource.h File Reference

Helper Macros in Guiliani More...

#include "eC_Types.h"
#include <limits.h>

Go to the source code of this file.

Macros

#define COLOR_TABLE   ENTRY(DUMMY_COLOR, 0xff000000)
 Color resources.
 
#define ENTRY(color, value)   -1
 Helper Macros in Guiliani
 
#define ENTRY(color, value)   color,
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   -1
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   a,
 Helper Macros in Guiliani
 
#define MAP_COLORID_TO_ARRAY(COLOR_ID)   static_cast<eC_UInt>(COLOR_ID-COLOR_START_TAG-1)
 Map ColorResource_t to interval 0 to NOF_COLORRESOURCES.
 
#define UNMAP_COLORENTRY_TO_ARRAY(COLOR_ENTRY)   static_cast<ColorResource_t>(COLOR_ENTRY+COLOR_START_TAG+1)
 Unmap ColorResource_t from interval 0 to NOF_COLORRESOURCES.
 

Typedefs

typedef int static_assert_something[(DUMMY_COLOR==0) ? 1 :-1]
 < Will throw compile error negative subscript if DUMMY_COLOR is NOT 0!
 

Enumerations

enum  ColorResource_t { COLOR_START_TAG = ciCalculatedColorStartTag , DUMMY_COLOR , NOF_COLORRESOURCES , GUILIANI_INTERNAL_COLORRESOURCE = INT_MAX }
 List of color-resource ids.
 

Variables

const int ciCalculatedColorStartTag = -1
 preprocessor generates for all entries of COLOR_TABLE: -1 -1 -1..., resulting in a mathematical expression, that will be evaluated to -1*(Number of entries of COLOR_TABLE
 
const eC_UInt cuiNOFColorResources
 Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);.
 

Detailed Description