Auxiliary class used by wxSFControlShape. All events generated by a GUI control (widget) managed by parent control shape are redirected to this event sink which invokes a default event handler or send a copy of the event to shape canvas if requested.
More...
#include <ControlShape.h>
List of all members.
Public Member Functions |
| EventSink () |
| Default constructor.
|
| EventSink (wxSFControlShape *parent) |
| User constructor.
|
virtual | ~EventSink () |
| Destructor.
|
void | _OnMouseButton (wxMouseEvent &event) |
| Event handler used for delayed processing of a mouse button events. The handler creates new key event instance and sends it to a shape canvas for further processing.
|
void | _OnMouseMove (wxMouseEvent &event) |
| Event handler used for delayed processing of a mouse event (mouse movement). The handler creates new key event instance and sends it to a shape canvas for further processing.
|
void | _OnKeyDown (wxKeyEvent &event) |
| Event handler used for delayed processing of a key event. The handler creates new key event instance and sends it to a shape canvas for further processing.
|
void | _OnSize (wxSizeEvent &event) |
| Event handler used for adjusting the parent shape's size in accordance to size of managed GUI control.
|
Protected Member Functions |
void | SendEvent (wxEvent &event) |
| Send copy of incomming event to a shape canvas.
|
void | UpdateMouseEvent (wxMouseEvent &event) |
| Modify given mouse event (recalculate the event's position in accordance to parent control shape's position.
|
Protected Attributes |
wxSFControlShape * | m_pParentShape |
| Poineter to parent contol shape.
|
Detailed Description
Auxiliary class used by wxSFControlShape. All events generated by a GUI control (widget) managed by parent control shape are redirected to this event sink which invokes a default event handler or send a copy of the event to shape canvas if requested.
Constructor & Destructor Documentation
User constructor.
- Parameters:
-
parent | Pointer to parent control shape |
Member Function Documentation
Event handler used for delayed processing of a key event. The handler creates new key event instance and sends it to a shape canvas for further processing.
- Parameters:
-
Event handler used for delayed processing of a mouse button events. The handler creates new key event instance and sends it to a shape canvas for further processing.
- Parameters:
-
Event handler used for delayed processing of a mouse event (mouse movement). The handler creates new key event instance and sends it to a shape canvas for further processing.
- Parameters:
-
Event handler used for adjusting the parent shape's size in accordance to size of managed GUI control.
Send copy of incomming event to a shape canvas.
- Parameters:
-
Modify given mouse event (recalculate the event's position in accordance to parent control shape's position.
- Parameters:
-
event | Mouse event to be updated; |
Member Data Documentation
Poineter to parent contol shape.
The documentation for this class was generated from the following file: