Go to the source code of this file.
|
#define | mCBFn(clss, fn) ((CallBackFunction)(&clss::fn)) |
|
#define | mCB(obj, clss, fn) CallBack( static_cast<clss*>(obj), mCBFn(clss,fn)) |
|
To make your CallBack. Used in many places, especially the UI.
More...
|
|
#define | mSCB(fn) CallBack( ((StaticCallBackFunction)(&fn)) ) |
|
#define | mMainThreadCall(func) CallBack::callInMainThread( CallBack( this, ((CallBackFunction)(&func) ) ), 0) |
|
#define | mEnsureExecutedInMainThread(func) |
|
#define | mAttachCB(notifier, func) attachCB( notifier, CallBack( this, ((CallBackFunction)(&func) ) ), false ) |
|
#define | mAttachCBIfNotAttached(notifier, func) attachCB( notifier, CallBack( this, ((CallBackFunction)(&func) ) ), true ) |
|
#define | mDetachCB(notifier, func) detachCB( notifier, CallBack( this, ((CallBackFunction)(&func) ) ) ) |
|
#define | mCBCapsuleGet(T, var, cb) CBCapsule<T>* var = dynamic_cast< CBCapsule<T>* >( cb ); |
| Unpacking data from capsule. More...
|
|
#define | mCBCapsuleUnpack(T, var, cb) |
|
#define | mCBCapsuleUnpackWithCaller(T, var, cber, cb) |
|
#define | mDeclInstanceCreatedNotifierAccess(clss) static Notifier<clss>& instanceCreated() |
|
#define | mDefineInstanceCreatedNotifierAccess(clss) |
|
#define | mTriggerInstanceCreatedNotifier() instanceCreated().trigger( this ) |
|
#define mAttachCBIfNotAttached |
( |
|
notifier, |
|
|
|
func |
|
) |
| attachCB( notifier, CallBack( this, ((CallBackFunction)(&func) ) ), true ) |
#define mCB |
( |
|
obj, |
|
|
|
clss, |
|
|
|
fn |
|
) |
| CallBack( static_cast<clss*>(obj), mCBFn(clss,fn)) |
To make your CallBack. Used in many places, especially the UI.
#define mCBCapsuleUnpack |
( |
|
T, |
|
|
|
var, |
|
|
|
cb |
|
) |
| |
Value:T var = cb##caps->data
#define mCBCapsuleGet(T, var, cb)
Unpacking data from capsule.
Definition: callback.h:369
#define mCBCapsuleUnpackWithCaller |
( |
|
T, |
|
|
|
var, |
|
|
|
cber, |
|
|
|
cb |
|
) |
| |
Value:T var = cb##caps->data; \
CallBacker* cber = cb##caps->caller
#define mCBCapsuleGet(T, var, cb)
Unpacking data from capsule.
Definition: callback.h:369
#define mDeclInstanceCreatedNotifierAccess |
( |
|
clss | ) |
static Notifier<clss>& instanceCreated() |
#define mDefineInstanceCreatedNotifierAccess |
( |
|
clss | ) |
|
Value:{ \
return theNotif; \
}
Definition: callback.h:254
#define mEnsureExecutedInMainThread |
( |
|
func | ) |
|
Value: return
static bool queueIfNotInMainThread(CallBack, CallBacker *=0)
void(CallBacker::* CallBackFunction)(CallBacker *)
Definition: callback.h:38
CallBacks object-oriented (object + method).
Definition: callback.h:57
#define mTriggerInstanceCreatedNotifier |
( |
| ) |
instanceCreated().trigger( this ) |
typedef void(CallBacker::* CallBackFunction) (CallBacker *) |
typedef void(* StaticCallBackFunction) (CallBacker *) |