40 #ifndef INCLUDED_INPUT_HANDLER_H
41 #define INCLUDED_INPUT_HANDLER_H
62 virtual bool IsValid()
const = 0;
89 ( _object.Get()->*( _method ) )( ev );
95 return !_object.IsNull();
107 template<
class Class>
123 virtual bool IsValid()
const = 0;
135 typedef void ( T::*Callback )(
MouseEvent* ev );
150 ( _object.Get()->*( _method ) )( ev );
156 return !_object.IsNull();
168 template<
class Class>
181 typedef unsigned int ID;
void Call(MouseEvent *ev)
Definition: input_handler.h:146
KeyboardCallbackBase * CreateInputHandlerCallback(const typename KeyboardMethodCallback< Class >::Callback method, Class *const obj)
Definition: input_handler.h:108
Definition: input_handler.h:132
virtual void Call(MouseEvent *ev)=0
virtual bool IsValid() const =0
virtual void Call(KeyboardEvent *ev)=0
virtual bool IsValid() const
Definition: input_handler.h:93
Definition: weak_reference.h:64
void Call(KeyboardEvent *ev)
Definition: input_handler.h:85
#define GLS_VERIFY(exp)
Definition: disti_assert.h:155
Definition: input_handler.h:71
#define DISTI_STATIC_ASSERT_IS_CONVERTIBLE_TO(T, ConvertsTo)
Definition: gls_cpp_lang_support.h:247
virtual bool IsValid() const
Definition: input_handler.h:154
Definition: weak_reference.h:91
virtual bool IsValid() const =0
Contains the DistiAssert macro.
Macros and helper code to determine what subset of C++11/14/17 is available.
Definition: bmpimage.h:46
Definition: input_handler.h:116
weak reference and related classes
Definition: input_handler.h:55