Code::Blocks
SVN r11506
|
Functor class for use as a editor modification operations hook. More...
#include <editor_hooks.h>
Public Types | |
typedef void(T::* | Func) (cbEditor *, wxScintillaEvent &) |
Public Member Functions | |
HookFunctor (T *obj, Func func) | |
void | Call (cbEditor *editor, wxScintillaEvent &event) const override |
Public Member Functions inherited from EditorHooks::HookFunctorBase | |
virtual | ~HookFunctorBase () |
Protected Attributes | |
T * | m_pObj |
Func | m_pFunc |
Functor class for use as a editor modification operations hook.
Passed as the first parameter in RegisterHook() and UnregisterHook().
example: EditorHooks::HookFunctorBase* myhook = new EditorHooks::HookFunctor<MyClass>(this, &MyClass::OnHookCalled); int id = EditorHooks::RegisterHook(myhook); ... (and before your class' destruction - or earlier): EditorHooks::UnregisterHook(id, true);
Member functions used as hook callbacks must have the following signature: void YourFunctionName(cbEditor*, wxScintillaEvent&)
Definition at line 52 of file editor_hooks.h.
typedef void(T::* EditorHooks::HookFunctor< T >::Func) (cbEditor *, wxScintillaEvent &) |
Definition at line 55 of file editor_hooks.h.
|
inline |
Definition at line 56 of file editor_hooks.h.
|
inlineoverridevirtual |
Implements EditorHooks::HookFunctorBase.
Definition at line 58 of file editor_hooks.h.
References GetTypeName().
|
protected |
Definition at line 74 of file editor_hooks.h.
|
protected |
Definition at line 73 of file editor_hooks.h.