Helper Macros in Guiliani More...
#include "eC_Types.h"
#include <limits.h>
Go to the source code of this file.
Macros | |
#define | ENTRY(prop_name, prop_value, prop_type) -1 |
Helper Macros in Guiliani | |
#define | ENTRY(prop_name, prop_value, prop_type) prop_name, |
Helper Macros in Guiliani | |
#define | ENTRY_ENUM(a) -1 |
Helper Macros in Guiliani | |
#define | ENTRY_ENUM(a) a, |
Helper Macros in Guiliani | |
#define | MAP_PROPID_TO_ARRAY(PROP_ID) static_cast<eC_UInt>(PROP_ID-GUI_PROP_START_TAG-1) |
Map GlobalProperty_t to interval 0 to NOF_PROPERTIES. | |
#define | PROPERTY_TABLE |
#define | UNMAP_PROPENTRY_TO_ARRAY(PROP_ENTRY) static_cast<GlobalProperty_t>(PROP_ENTRY+GUI_PROP_START_TAG+1) |
Unmap GlobalProperty_t from interval 0 to NOF_PROPERTIES. | |
Typedefs | |
typedef int | static_assert_something[(DUMMY_PROPERTY==0) ? 1 :-1] |
Will throw compile error negative subscript if DUMMY_PROPERTY is NOT 0! | |
Enumerations | |
enum | GlobalProperty_t { GUI_PROP_START_TAG = ciCalculatedPropStartTag , GUI_PROP_DEFAULT_LINE_WIDTH , GUI_PROP_DEFAULT_TEXT_ALIGNMENT , GUI_PROP_DEFAULT_TEXT_COLOR , GUI_PROP_DEFAULT_PRESSED_TEXT_COLOR , GUI_PROP_DEFAULT_HIGHLIGHT_TEXT_COLOR , GUI_PROP_DEFAULT_COLOR , GUI_PROP_DEFAULT_PRESSED_COLOR , GUI_PROP_DEFAULT_HIGHLIGHT_COLOR , GUI_PROP_DEFAULT_FOREGROUND_COLOR , GUI_PROP_DEFAULT_BACKGROUND_COLOR , GUI_PROP_DEFAULT_FONT , GUI_PROP_DEFAULT_FONT_SIZE , GUI_PROP_DEFAULT_FONT_SPACING , GUI_PROP_DEFAULT_BG_LIGHT_COLOR , GUI_PROP_DEFAULT_BG_DARK_COLOR , GUI_PROP_SLIDER_KNOB_SIZE , GUI_PROP_LISTBOX_DRAGGED_FRAME_COLOR , GUI_PROP_USE_STANDARD_IMAGES , DUMMY_PROPERTY , NOF_PROPERTIES , GUILIANI_INTERNAL_GUI_PROP = INT_MAX } |
List of property resource ids. | |
Variables | |
const int | ciCalculatedPropStartTag = -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 |
preprocessor generates for all entries of PROPERTY_TABLE: -1 -1 -1..., resulting in a mathematical expression, that will be evaluated to -1*(Number of entries of IMAGE_TABLE | |
const eC_UInt | cuiNOFGlobalProperties |
Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);. | |
#define PROPERTY_TABLE |
IDs for global properties. They are set per default in CGUI::Init(). The user can either call this method in its own GUI-init-routine in order to use them or he or she can overwrite them. If CGUI::Init() is called one must be sure that the graphics wrapper is already instantiated!