wxShapeFramework  1.13.0 beta
wxSFShapeMouseEvent Class Reference

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

#include <SFEvents.h>

Collaboration diagram for wxSFShapeMouseEvent:

List of all members.

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.
wxSFShapeBaseGetShape ()
 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

wxSFShapeBasem_Shape
 Pointer to stored shape object.
wxPoint m_MousePosition
 Code of pressed key.

Detailed Description

Class encapsulates mouse events generated by a shape.


Constructor & Destructor Documentation

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

Constructor.

Destructor.


Member Function Documentation

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.

Returns:
Mouse cursor's absolute position

Get a shape object from the event object.

Returns:
Pointer to the shape object.
void wxSFShapeMouseEvent::SetMousePosition ( const wxPoint &  MousePosition) [inline]

Set absolute position of mouse cursor.

Parameters:
MousePositionMouse cursor's absolute position
void wxSFShapeMouseEvent::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