GL Studio C++ Runtime API
|
#include <input_handler.h>
Public Types | |
typedef void(T::* | Callback) (KeyboardEvent *ev) |
Typedef for a function pointer accepting a keyboard event. | |
Public Member Functions | |
KeyboardMethodCallback (Callback method, T *object) | |
void | Call (KeyboardEvent *ev) override |
virtual bool | IsValid () const override |
virtual void | Call (KeyboardEvent *ev)=0 |
virtual bool | IsValid () const =0 |
Protected Attributes | |
Callback | _method |
The function pointer to call back. | |
WeakRef< T > | _object |
The object containing the function pointer. | |
Interface for creating a callback from a class method. The class must implement WeakReferenceable. Don't use this directly. Use CreateInputHandlerCallback instead
|
inline |
Constructor
method | Function pointer to call back. |
object | The object containing the function pointer. |
|
inlineoverridevirtual |
Call the callback with the provided display event.
ev | The event to process. |
Implements KeyboardCallbackBase.
|
inlineoverridevirtual |
Implements KeyboardCallbackBase.