39#ifndef INCLUDED_INPUT_HANDLER_H
40#define INCLUDED_INPUT_HANDLER_H
188 typedef unsigned int ID;
Definition: input_handler.h:55
virtual void Call(KeyboardEvent *ev)=0
virtual bool IsValid() const =0
Definition: input_handler.h:72
WeakRef< T > _object
The object containing the function pointer.
Definition: input_handler.h:103
bool IsValid() const override
Definition: input_handler.h:96
KeyboardMethodCallback(Callback method, T *object)
Definition: input_handler.h:79
Callback _method
The function pointer to call back.
Definition: input_handler.h:102
void(T::* Callback)(KeyboardEvent *ev)
Typedef for a function pointer accepting a keyboard event.
Definition: input_handler.h:74
void Call(KeyboardEvent *ev) override
Definition: input_handler.h:88
Definition: input_handler.h:120
virtual void Call(MouseEvent *ev)=0
virtual bool IsValid() const =0
Definition: input_handler.h:137
void Call(MouseEvent *ev) override
Definition: input_handler.h:153
MouseMethodCallback(Callback method, T *object)
Definition: input_handler.h:144
WeakRef< T > _object
The object containing the function pointer.
Definition: input_handler.h:168
bool IsValid() const override
Definition: input_handler.h:161
Callback _method
The function pointer to call back.
Definition: input_handler.h:167
void(T::* Callback)(MouseEvent *ev)
Typedef for a function pointer accepting a mouse event.
Definition: input_handler.h:139
Definition: weak_reference.h:91
Definition: weak_reference.h:64
Contains the DistiAssert macro.
#define GLS_VERIFY(exp)
Definition: disti_assert.h:169
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_STATIC_ASSERT_IS_CONVERTIBLE_TO(T, ConvertsTo)
Definition: gls_cpp_lang_support.h:276
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:221
Definition: bmpimage.h:46
KeyboardCallbackBase * CreateInputHandlerCallback(const typename KeyboardMethodCallback< Class >::Callback method, Class *const obj)
Definition: input_handler.h:111
Weak reference and related classes.