wxShapeFramework  1.13.0 beta
wxSFShapeKeyEvent Class Reference

Class encapsulates wxEVT_SF_SHAPE_KEYDOWN event. More...

#include <SFEvents.h>

Collaboration diagram for wxSFShapeKeyEvent:

List of all members.

Public Member Functions

 wxSFShapeKeyEvent (wxEventType cmdType=wxEVT_NULL, int id=0)
 Constructor.
 wxSFShapeKeyEvent (const wxSFShapeKeyEvent &obj)
 Copy constructor.
virtual ~wxSFShapeKeyEvent ()
 Destructor.
void SetShape (wxSFShapeBase *shape)
 Insert a shape object to the event object.
wxSFShapeBaseGetShape ()
 Get a shape object from the event object.
void SetKeyCode (int KeyCode)
 Set key code.
int GetKeyCode () const
 Get key code.
wxEvent * Clone () const
 Clone this event object and return pointer to the new instance.

Private Attributes

wxSFShapeBasem_Shape
 Pointer to stored shape object.
int m_KeyCode
 Code of pressed key.

Detailed Description

Class encapsulates wxEVT_SF_SHAPE_KEYDOWN event.


Constructor & Destructor Documentation

wxSFShapeKeyEvent::wxSFShapeKeyEvent ( wxEventType  cmdType = wxEVT_NULL,
int  id = 0 
)

Constructor.

Copy constructor.

Destructor.


Member Function Documentation

wxEvent* wxSFShapeKeyEvent::Clone ( ) const [inline]

Clone this event object and return pointer to the new instance.

int wxSFShapeKeyEvent::GetKeyCode ( ) const [inline]

Get key code.

Returns:
Code of pressed key

Get a shape object from the event object.

Returns:
Pointer to the shape object.
void wxSFShapeKeyEvent::SetKeyCode ( int  KeyCode) [inline]

Set key code.

Parameters:
KeyCodeCode of pressed key
void wxSFShapeKeyEvent::SetShape ( wxSFShapeBase shape) [inline]

Insert a shape object to the event object.

Parameters:
shapePointer to the shape object

Member Data Documentation

Code of pressed key.

Pointer to stored shape object.


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