wxShapeFramework  1.13.0 beta
wxSFShapeKeyEvent Class Reference

Class encapsulates wxEVT_SF_SHAPE_KEYDOWN event. More...

#include <SFEvents.h>

Inheritance diagram for wxSFShapeKeyEvent:
Collaboration diagram for wxSFShapeKeyEvent:

Public Member Functions

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

Private Attributes

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

Detailed Description

Class encapsulates wxEVT_SF_SHAPE_KEYDOWN event.

Constructor & Destructor Documentation

◆ wxSFShapeKeyEvent() [1/2]

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

Constructor.

◆ wxSFShapeKeyEvent() [2/2]

wxSFShapeKeyEvent::wxSFShapeKeyEvent ( const wxSFShapeKeyEvent obj)

Copy constructor.

◆ ~wxSFShapeKeyEvent()

virtual wxSFShapeKeyEvent::~wxSFShapeKeyEvent ( )
virtual

Destructor.

Member Function Documentation

◆ Clone()

wxEvent* wxSFShapeKeyEvent::Clone ( ) const
inline

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

◆ GetKeyCode()

int wxSFShapeKeyEvent::GetKeyCode ( ) const
inline

Get key code.

Returns
Code of pressed key

◆ GetShape()

wxSFShapeBase* wxSFShapeKeyEvent::GetShape ( )
inline

Get a shape object from the event object.

Returns
Pointer to the shape object.

◆ SetKeyCode()

void wxSFShapeKeyEvent::SetKeyCode ( int  KeyCode)
inline

Set key code.

Parameters
KeyCodeCode of pressed key

◆ SetShape()

void wxSFShapeKeyEvent::SetShape ( wxSFShapeBase shape)
inline

Insert a shape object to the event object.

Parameters
shapePointer to the shape object

Member Data Documentation

◆ m_KeyCode

int wxSFShapeKeyEvent::m_KeyCode
private

Code of pressed key.

◆ m_Shape

wxSFShapeBase* wxSFShapeKeyEvent::m_Shape
private

Pointer to stored shape object.


The documentation for this class was generated from the following file: