wxShapeFramework  1.13.0 beta
wxSFShapeMouseEvent Class Reference

Class encapsulates mouse events generated by a shape. More...

#include <SFEvents.h>

Inheritance diagram for wxSFShapeMouseEvent:
Collaboration diagram for wxSFShapeMouseEvent:

Public Member Functions

 wxSFShapeMouseEvent (wxEventType cmdType=wxEVT_NULL, int id=0)
 Constructor. More...
 
 wxSFShapeMouseEvent (const wxSFShapeMouseEvent &obj)
 Copy constructor. More...
 
virtual ~wxSFShapeMouseEvent ()
 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 SetMousePosition (const wxPoint &MousePosition)
 Set absolute position of mouse cursor. More...
 
const wxPoint & GetMousePosition () const
 Get absolute position of mouse cursor. 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...
 
wxPoint m_MousePosition
 Code of pressed key. More...
 

Detailed Description

Class encapsulates mouse events generated by a shape.

Constructor & Destructor Documentation

◆ wxSFShapeMouseEvent() [1/2]

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

Constructor.

◆ wxSFShapeMouseEvent() [2/2]

wxSFShapeMouseEvent::wxSFShapeMouseEvent ( const wxSFShapeMouseEvent obj)

Copy constructor.

◆ ~wxSFShapeMouseEvent()

virtual wxSFShapeMouseEvent::~wxSFShapeMouseEvent ( )
virtual

Destructor.

Member Function Documentation

◆ Clone()

wxEvent* wxSFShapeMouseEvent::Clone ( ) const
inline

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

◆ GetMousePosition()

const wxPoint& wxSFShapeMouseEvent::GetMousePosition ( ) const
inline

Get absolute position of mouse cursor.

Returns
Mouse cursor's absolute position

◆ GetShape()

wxSFShapeBase* wxSFShapeMouseEvent::GetShape ( )
inline

Get a shape object from the event object.

Returns
Pointer to the shape object.

◆ SetMousePosition()

void wxSFShapeMouseEvent::SetMousePosition ( const wxPoint &  MousePosition)
inline

Set absolute position of mouse cursor.

Parameters
MousePositionMouse cursor's absolute position

◆ SetShape()

void wxSFShapeMouseEvent::SetShape ( wxSFShapeBase shape)
inline

Insert a shape object to the event object.

Parameters
shapePointer to the shape object

Member Data Documentation

◆ m_MousePosition

wxPoint wxSFShapeMouseEvent::m_MousePosition
private

Code of pressed key.

◆ m_Shape

wxSFShapeBase* wxSFShapeMouseEvent::m_Shape
private

Pointer to stored shape object.


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