wxShapeFramework
1.13.0 beta
|
Class encapsulates mouse events generated by a shape. More...
#include <SFEvents.h>
Public Member Functions | |
wxSFShapeMouseEvent (wxEventType cmdType=wxEVT_NULL, int id=0) | |
Constructor. | |
wxSFShapeMouseEvent (const wxSFShapeMouseEvent &obj) | |
Copy constructor. | |
virtual | ~wxSFShapeMouseEvent () |
Destructor. | |
void | SetShape (wxSFShapeBase *shape) |
Insert a shape object to the event object. | |
wxSFShapeBase * | GetShape () |
Get a shape object from the event object. | |
void | SetMousePosition (const wxPoint &MousePosition) |
Set absolute position of mouse cursor. | |
const wxPoint & | GetMousePosition () const |
Get absolute position of mouse cursor. | |
wxEvent * | Clone () const |
Clone this event object and return pointer to the new instance. | |
Private Attributes | |
wxSFShapeBase * | m_Shape |
Pointer to stored shape object. | |
wxPoint | m_MousePosition |
Code of pressed key. |
Class encapsulates mouse events generated by a shape.
wxSFShapeMouseEvent::wxSFShapeMouseEvent | ( | wxEventType | cmdType = wxEVT_NULL , |
int | id = 0 |
||
) |
Constructor.
wxSFShapeMouseEvent::wxSFShapeMouseEvent | ( | const wxSFShapeMouseEvent & | obj | ) |
Copy constructor.
virtual wxSFShapeMouseEvent::~wxSFShapeMouseEvent | ( | ) | [virtual] |
Destructor.
wxEvent* wxSFShapeMouseEvent::Clone | ( | ) | const [inline] |
Clone this event object and return pointer to the new instance.
const wxPoint& wxSFShapeMouseEvent::GetMousePosition | ( | ) | const [inline] |
Get absolute position of mouse cursor.
wxSFShapeBase* wxSFShapeMouseEvent::GetShape | ( | ) | [inline] |
Get a shape object from the event object.
void wxSFShapeMouseEvent::SetMousePosition | ( | const wxPoint & | MousePosition | ) | [inline] |
Set absolute position of mouse cursor.
MousePosition | Mouse cursor's absolute position |
void wxSFShapeMouseEvent::SetShape | ( | wxSFShapeBase * | shape | ) | [inline] |
Insert a shape object to the event object.
shape | Pointer to the shape object |
wxPoint wxSFShapeMouseEvent::m_MousePosition [private] |
Code of pressed key.
wxSFShapeBase* wxSFShapeMouseEvent::m_Shape [private] |
Pointer to stored shape object.