1 // $XConsortium: create_macros.hh /main/3 1996/06/11 16:17:20 cde-hal $
2 #ifndef _create_macros_hh
3 #define _create_macros_hh
5 #define DECL(TYPE,VAR,PARENT,NAME) TYPE VAR (PARENT, NAME)
6 #define DECLM(TYPE,VAR,PARENT,NAME) TYPE VAR (PARENT, NAME, WAutoManage)
7 #define ASSN(TYPE,VAR,PARENT,NAME) VAR = TYPE (PARENT, NAME)
8 #define ASSNM(TYPE,VAR,PARENT,NAME) VAR = TYPE (PARENT, NAME, WAutoManage)
10 #define SET_CALLBACK(WOBJ,CBACK,FUNC) \
11 (WOBJ).CONCAT3(Set,CBACK,Callback) (this, (WWL_FUN) &CLASS::FUNC)
12 #define SET_CALLBACK_D(WOBJ,CBACK,FUNC,DATA) \
13 (WOBJ).CONCAT3(Set,CBACK,Callback) (this, (WWL_FUN) &CLASS::FUNC, \
16 #define ON_ACTIVATE(WOBJ,FUNC) SET_CALLBACK(WOBJ,Activate,FUNC)
17 #define ON_ACTIVATE_D(WOBJ,FUNC,DATA) SET_CALLBACK_D(WOBJ,Activate,FUNC,DATA)
19 #define CALL_DATA(TYPE,NAME) \
20 TYPE *NAME = (TYPE *) wcb->CallData()
23 #error "CLASS macro must be defined!"
26 #endif /* _create_macros_hh */
27 /* DO NOT ADD ANY LINES AFTER THIS #endif */