wxShapeFramework  1.13.0 beta
EventSink Class Reference

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>

Collaboration diagram for EventSink:

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

wxSFControlShapem_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

Default constructor.

User constructor.

Parameters:
parentPointer to parent control shape
virtual EventSink::~EventSink ( ) [virtual]

Destructor.


Member Function Documentation

void EventSink::_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.

Parameters:
eventKeyboard event
void EventSink::_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.

Parameters:
eventMouse event
void EventSink::_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.

Parameters:
eventMouse event
void EventSink::_OnSize ( wxSizeEvent &  event)

Event handler used for adjusting the parent shape's size in accordance to size of managed GUI control.

void EventSink::SendEvent ( wxEvent &  event) [protected]

Send copy of incomming event to a shape canvas.

Parameters:
eventEvent to be send
void EventSink::UpdateMouseEvent ( wxMouseEvent &  event) [protected]

Modify given mouse event (recalculate the event's position in accordance to parent control shape's position.

Parameters:
eventMouse event to be updated;

Member Data Documentation

Poineter to parent contol shape.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines