|
GL Studio C++ Runtime API
|
#include <callback_caller.h>
Public Types | |
| typedef void(T::* | MethodType) (void) |
| Typedef for function pointer. | |
Public Member Functions | |
| CallbackAttributeNotifier (T *container, const AttributeName &attributeName, MethodType method=NULL) | |
| virtual CallbackMethodCallerBase * | Duplicate () const override |
| virtual void | SetContainer (DisplayObject *container) override |
| int | Call (DisplayObject *, DisplayEvent *) override |
| void | CallType2 (DisplayEvent *, void *=NULL) override |
| void | CallType3 () override |
| Allows for a very simple callback, with no additional data passed. More... | |
| virtual int | Call (DisplayObject *, DisplayEvent *) |
| virtual void | CallType2 (DisplayEvent *, void *=NULL) |
| virtual void | CallType3 () |
| Allows for a very simple callback, with no additional data passed. More... | |
| virtual CallbackMethodCallerBase * | Duplicate () const |
| virtual void | SetContainer (DisplayObject *container)=0 |
Protected Attributes | |
| T * | _container |
| The object which contains the method to call. | |
| AttributeName | _attributeName |
| The associated property name for the callback. | |
| MethodType | _method |
| The function pointer to call back. | |
A CallbackMethodCallerBase that notifies when properties are changed, and also optionally calls a void callback Version only supports method type 3
|
inline |
Construct a CallbackAttributeNotifier.
| container | The object containing the callback method. |
| attributeName | The attribute name to attach the callback to. |
| method | The function to call back. |
|
inlineoverridevirtual |
This is for mouse and keyboard events.
Reimplemented from CallbackMethodCallerBase.
|
inlineoverridevirtual |
This is used mostly for user events. The callbackData is generally passed in when this object is created.
Reimplemented from CallbackMethodCallerBase.
|
inlineoverridevirtual |
Allows for a very simple callback, with no additional data passed.
Reimplemented from CallbackMethodCallerBase.
|
inlineoverridevirtual |
Reimplemented from CallbackMethodCallerBase.
|
inlineoverridevirtual |
Assign a new object to be the target of this callback.
| container | The new target object. |
Implements CallbackMethodCallerBase.