Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIGeneralResource.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 ENTRY(res, res_filename, res_permanent)   -1
 Helper Macros in Guiliani
 
#define ENTRY(res, res_filename, res_permanent)   res,
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   -1
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   a,
 Helper Macros in Guiliani
 
#define GENERAL_RESOURCES_TABLE
 abstract resource files More...
 
#define MAP_RESID_TO_ARRAY(RES_ID)   (static_cast<eC_UInt>(RES_ID-RES_START_TAG-1))
 Map general resource ids to interval 0 to NOF_GENERALRESOURCES.
 
#define UNMAP_RESENTRY_TO_ARRAY(RES_ENTRY)   (static_cast<GeneralResource_t>(RES_ENTRY+RES_START_TAG+1))
 Unmap general resource ids from interval 0 to NOF_GENERALRESOURCES.
 

Typedefs

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

Enumerations

enum  GeneralResource_t {
  RES_START_TAG = ciCalculatedResStartTag , KBD_LAYOUT_GERMAN , KBD_LAYOUT_ENGLISH , KBD_LAYOUT_RUSSIAN ,
  KBD_LAYOUT_ARABIC , DUMMY_RESOURCE , NOF_GENERALRESOURCES , GUILIANI_INTERNAL_RES = INT_MAX
}
 List of general resource ids.
 

Variables

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

Detailed Description

Macro Definition Documentation

◆ GENERAL_RESOURCES_TABLE

#define GENERAL_RESOURCES_TABLE
Value:
ENTRY(KBD_LAYOUT_GERMAN, "keyboard_layout_german.bin", true) \
ENTRY(KBD_LAYOUT_ENGLISH, "keyboard_layout_english.bin", true) \
ENTRY(KBD_LAYOUT_RUSSIAN, "keyboard_layout_russian.bin", true) \
ENTRY(KBD_LAYOUT_ARABIC, "keyboard_layout_arabic.bin", true) \
ENTRY(DUMMY_RESOURCE, "DUMMY_RESOURCE", true)
#define ENTRY(res, res_filename, res_permanent)
Helper Macros in Guiliani
Definition: GUIGeneralResource.h:55

abstract resource files