Go to the source code of this file.
|
| #define | FXDECLARE(classname) |
| |
| #define | FXIMPLEMENT(classname, baseclassname, mapping, nmappings) |
| |
| #define | FXDECLARE_ABSTRACT(classname) |
| |
| #define | FXIMPLEMENT_ABSTRACT(classname, baseclassname, mapping, nmappings) |
| |
| #define | FXMETACLASS(classname) (&classname::metaClass) |
| |
| #define | FXDEFMAP(classname) static const classname::FXMapEntry |
| |
| #define | FXMAPTYPES(typelo, typehi, func) {FXSEL(typelo,FX::MINKEY),FXSEL(typehi,FX::MAXKEY),&func} |
| |
| #define | FXMAPTYPE(type, func) {FXSEL(type,FX::MINKEY),FXSEL(type,FX::MAXKEY),&func} |
| |
| #define | FXMAPFUNCS(type, keylo, keyhi, func) {FXSEL(type,keylo),FXSEL(type,keyhi),&func} |
| |
| #define | FXMAPFUNC(type, key, func) {FXSEL(type,key),FXSEL(type,key),&func} |
| |
| #define FXDECLARE |
( |
|
classname | ) |
|
Value:public: \
virtual
const FX::FXMetaClass* getMetaClass()
const {
return &metaClass; } \
FXStream & operator>>(FXStream &store, FXDate &d)
FXuint FXSelector
Association key.
Definition: FXObject.h:53
FXStream & saveObject(const FXObject *v)
Save object.
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:99
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
FXStream & loadObject(FXObject *&v)
Load object.
FXStream & operator<<(FXStream &store, const FXDate &d)
Macro to set up class declaration.
| #define FXIMPLEMENT |
( |
|
classname, |
|
|
|
baseclassname, |
|
|
|
mapping, |
|
|
|
nmappings |
|
) |
| |
Value:FX::FXObject* classname::manufacture(){
return new classname;} \
const
FX::FXMetaClass classname::metaClass(#classname,classname::manufacture,&baseclassname::metaClass,mapping,nmappings,
sizeof(classname::FXMapEntry)); \
const FXMapEntry* me=(const FXMapEntry*)metaClass.search(sel); \
return me ? (this->* me->func)(sender,sel,ptr) : baseclassname::handle(sender,sel,ptr); \
}
FXuint FXSelector
Association key.
Definition: FXObject.h:53
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
Macro to set up class implementation.
| #define FXDECLARE_ABSTRACT |
( |
|
classname | ) |
|
Value:public: \
virtual
const FX::FXMetaClass* getMetaClass()
const {
return &metaClass; } \
FXStream & operator>>(FXStream &store, FXDate &d)
FXuint FXSelector
Association key.
Definition: FXObject.h:53
FXStream & saveObject(const FXObject *v)
Save object.
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:99
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
FXStream & loadObject(FXObject *&v)
Load object.
FXStream & operator<<(FXStream &store, const FXDate &d)
Macro to set up abstract class declaration.
| #define FXIMPLEMENT_ABSTRACT |
( |
|
classname, |
|
|
|
baseclassname, |
|
|
|
mapping, |
|
|
|
nmappings |
|
) |
| |
Value:const FX::FXMetaClass classname::metaClass(#classname,
NULL,&baseclassname::metaClass,mapping,nmappings,
sizeof(classname::FXMapEntry)); \
const FXMapEntry* me=(const FXMapEntry*)metaClass.search(sel); \
return me ? (this->* me->func)(sender,sel,ptr) : baseclassname::handle(sender,sel,ptr); \
}
FXuint FXSelector
Association key.
Definition: FXObject.h:53
#define NULL
Definition: fxdefs.h:41
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
Macro to set up abstract class implementation.
| #define FXMETACLASS |
( |
|
classname | ) |
(&classname::metaClass) |
| #define FXDEFMAP |
( |
|
classname | ) |
static const classname::FXMapEntry |
Define range of function types.
Define range of function types.
| #define FXMAPFUNCS |
( |
|
type, |
|
|
|
keylo, |
|
|
|
keyhi, |
|
|
|
func |
|
) |
| {FXSEL(type,keylo),FXSEL(type,keyhi),&func} |
Define range of functions.
| #define FXMAPFUNC |
( |
|
type, |
|
|
|
key, |
|
|
|
func |
|
) |
| {FXSEL(type,key),FXSEL(type,key),&func} |