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

Helper Macros in Guiliani More...

#include <limits.h>

Go to the source code of this file.

Macros

#define BEHAVIOUR_TABLE
 BehaviourClassIDs. More...
 
#define ENTRY(beh_id, beh_classname)   beh_id,
 Helper Macros in Guiliani
 
#define ENTRY(bhv, bhvclass)   -1
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   -1
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   a,
 Helper Macros in Guiliani
 

Typedefs

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

Enumerations

enum  BehaviourClassID_t {
  BEHAVIOUR_START_TAG = ciCalculatedBhvStartTag - 1 , BEHAVIOUR_CONDITIONAL , BEHAVIOUR_OBJECT_VISUALS , BEHAVIOUR_TABSWITCH ,
  BEHAVIOUR_AUTOREPEAT , BEHAVIOUR_KEYBOARD , BEHAVIOUR_OBJECT_STATE , BEHAVIOUR_COMPOSITE ,
  BEHAVIOUR_HOTKEY , BEHAVIOUR_SINGLE_CMD , BEHAVIOUR_MULTI_CMD , DUMMY_BEHAVIOUR ,
  GUILIANI_INTERNAL_BHV = INT_MAX
}
 List of behaviour class ids.
 

Variables

const int ciCalculatedBhvStartTag = -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
 preprocessor generates for all entries of SOUND_TABLE: -1 -1 -1..., resulting in a mathematical expression, that will be evaluated to -1*(Number of entries of IMAGE_TABLE
 

Detailed Description

Macro Definition Documentation

◆ BEHAVIOUR_TABLE

#define BEHAVIOUR_TABLE
Value:
ENTRY(BEHAVIOUR_CONDITIONAL, CGUIConditionalBehaviour) \
ENTRY(BEHAVIOUR_OBJECT_VISUALS, CGUIObjectVisualsBehaviour) \
ENTRY(BEHAVIOUR_TABSWITCH, CGUITabSwitchBehaviour) \
ENTRY(BEHAVIOUR_AUTOREPEAT, CGUIAutoRepeatBehaviour) \
ENTRY(BEHAVIOUR_KEYBOARD, CGUIKeyboardBehaviour) \
ENTRY(BEHAVIOUR_OBJECT_STATE, CGUIObjectStateBehaviour) \
ENTRY(BEHAVIOUR_COMPOSITE, CGUICompositeBehaviour) \
ENTRY(BEHAVIOUR_HOTKEY, CGUIHotkeysBehaviour) \
ENTRY(BEHAVIOUR_SINGLE_CMD, CGUISingleCmdBehaviour) \
ENTRY(BEHAVIOUR_MULTI_CMD, CGUIMultiCmdBehaviour)
#define ENTRY(bhv, bhvclass)
Helper Macros in Guiliani
Definition: GUIBehaviourResource.h:51
Behaviour for repeating clicks on object Additional phases can be defined where the start-time of the...
Definition: GUIAutoRepeatBehaviour.h:20
Contains other behaviours and forwards events to them.
Definition: GUICompositeBehaviour.h:46
Behaviour for repeating clicks on object Additional phases can be defined where the start-time of the...
Definition: GUIConditionalBehaviour.h:19
Maps key codes to object IDs and 'clicks' on objects.
Definition: GUIHotkeysBehaviour.h:60
This behaviour sends a UTF16 keycode to the Keyboard in reaction to a ButtonUp-Event.
Definition: GUIKeyboardBehaviour.h:20
Associates one command with each event slot.
Definition: GUIMultiCmdBehaviour.h:23
Behaviour for processing object state changes.
Definition: GUIObjectStateBehaviour.h:18
Behaviour for processing object visual changes.
Definition: GUIObjectVisualsBehaviour.h:18
Execute a command when a specific event occurs.
Definition: GUISingleCmdBehaviour.h:21
Behaviour to switch between the children of a tab-container.
Definition: GUITabSwitchBehaviour.h:20

BehaviourClassIDs.