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. 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... | |
wxSFShapeBase * | GetShape () |
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 | |
wxSFShapeBase * | m_Shape |
Pointer to stored shape object. More... | |
wxPoint | m_MousePosition |
Code of pressed key. More... | |
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 |
Destructor.
|
inline |
Clone this event object and return pointer to the new instance.
|
inline |
Get absolute position of mouse cursor.
|
inline |
Get a shape object from the event object.
|
inline |
Set absolute position of mouse cursor.
MousePosition | Mouse cursor's absolute position |
|
inline |
Insert a shape object to the event object.
shape | Pointer to the shape object |
|
private |
Code of pressed key.
|
private |
Pointer to stored shape object.