Helper Macros in Guiliani More...
#include "eC_Types.h"
#include <limits.h>
Go to the source code of this file.
Macros | |
#define | ENTRY(a) a, |
Helper Macros in Guiliani | |
#define | ENTRY(fnt) -1 |
Helper Macros in Guiliani | |
#define | ENTRY(fnt, fnt_filename, fnt_size, fnt_style, fnt_permanent) fnt, |
Helper Macros in Guiliani | |
#define | ENTRY_ENUM(a) -1 |
Helper Macros in Guiliani | |
#define | ENTRY_ENUM(a) a, |
Helper Macros in Guiliani | |
#define | FONT_TABLE |
Font resources. More... | |
#define | MAP_FNTID_TO_ARRAY(FNT_ID) (static_cast<eC_UInt>((FNT_ID-FNT_START_TAG)-1)) |
Map FontIDs to interval 0 to NOF_FONTRESOURCES. | |
#define | UNMAP_FNTENTRY_TO_ARRAY(FNT_ENTRY) (static_cast<FontResource_t>(FNT_ENTRY+FNT_START_TAG+1)) |
Unmap FontIDs from interval 0 to NOF_FONTRESOURCES. | |
Typedefs | |
typedef int | static_assert_something[(DUMMY_FONT==0) ? 1 :-1] |
Will throw compile error negative subscript if DUMMY_FONT is NOT 0! | |
Enumerations | |
enum | FontResource_t { FNT_START_TAG = ciCalculatedFntStartTag , FNT_KEYBOARD , FNT_DEFAULT , DUMMY_FONT , NOF_FONTRESOURCES , GUILIANI_INTERNAL_FNT = INT_MAX } |
List of font resource ids. | |
Variables | |
const int | ciCalculatedFntStartTag = -1 -1 -1 |
preprocessor generates for all entries of FONT_TABLE: -1 -1 -1..., resulting in a mathematical expression, that will be evaluated to -1*(Number of entries of IMAGE_TABLE | |
const eC_UInt | cuiNOFFontResources |
Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);. | |