#include <keybinder.h>

Public Member Functions | |
| wxBinderEvtHandler (wxKeyBinder *p, wxWindow *tg) | |
| Attaches this event handler to the given window. | |
| virtual | ~wxBinderEvtHandler () |
| Removes this event handler from the window you specified during construction (the target window). | |
| bool | IsAttachedTo (wxWindow *p) |
| Returns TRUE if this event handler is attached to the given window. | |
| wxKeyBinder * | GetBinder () const |
| Returns the wxKeyBinder which is called-back by this event handler. | |
| wxWindow * | GetTargetWnd () const |
| Returns the window which this event handler is filtering. | |
Protected Member Functions | |
| void | OnChar (wxKeyEvent &event) |
| The event handler for wxKeyEvents. | |
Private Attributes | |
| wxKeyBinder * | m_pBinder |
| The wxKeyBinder called by wxBinderEvtHandler when receving a wxKeyEvent. | |
| wxWindow * | m_pTarget |
| The target window which will process the keyevents if they're not registered hotkeys (this check is done by wxKeyBinder). | |
It handles only the key events calling a wxKeyBinder to process them. wxKeyBinder will process only hotkeys and will skip any other unregistered key combination. In these cases wxBinderEvtHandler just returns and wxWidgets will call the next handler in the chain (which is usually the wxWindow which was attached to this wxBinderEvtHandler).
| wxBinderEvtHandler::wxBinderEvtHandler | ( | wxKeyBinder * | p, | |
| wxWindow * | tg | |||
| ) | [inline] |
Attaches this event handler to the given window.
The given keybinder will be called on each keyevent.
| virtual wxBinderEvtHandler::~wxBinderEvtHandler | ( | ) | [inline, virtual] |
Removes this event handler from the window you specified during construction (the target window).
| wxKeyBinder* wxBinderEvtHandler::GetBinder | ( | ) | const [inline] |
Returns the wxKeyBinder which is called-back by this event handler.
| wxWindow* wxBinderEvtHandler::GetTargetWnd | ( | ) | const [inline] |
Returns the window which this event handler is filtering.
| bool wxBinderEvtHandler::IsAttachedTo | ( | wxWindow * | p | ) | [inline] |
Returns TRUE if this event handler is attached to the given window.
| void wxBinderEvtHandler::OnChar | ( | wxKeyEvent & | event | ) | [protected] |
wxKeyBinder* wxBinderEvtHandler::m_pBinder [private] |
wxWindow* wxBinderEvtHandler::m_pTarget [private] |
The target window which will process the keyevents if they're not registered hotkeys (this check is done by wxKeyBinder).
1.5.7.1