wxShapeFramework  1.13.0 beta
wxSFShapeEvent Class Reference

Class encapsulates generic wxSF shape's event. More...

#include <SFEvents.h>

Collaboration diagram for wxSFShapeEvent:

List of all members.

Public Member Functions

 wxSFShapeEvent (wxEventType cmdType=wxEVT_NULL, int id=0)
 Constructor.
 wxSFShapeEvent (const wxSFShapeEvent &obj)
 Copy constructor.
virtual ~wxSFShapeEvent ()
 Destructor.
void SetShape (wxSFShapeBase *shape)
 Insert a shape object to the event object.
wxSFShapeBaseGetShape ()
 Get a shape object from the event object.
wxEvent * Clone () const
 Clone this event object and return pointer to the new instance.
bool IsVetoed ()
 Check if the event has been vetoed or not.
void Veto ()
 Set the veto flag to true.

Private Attributes

wxSFShapeBasem_Shape
 Pointer to stored shape object.
bool m_Vetoed

Detailed Description

Class encapsulates generic wxSF shape's event.


Constructor & Destructor Documentation

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

Constructor.

Copy constructor.

virtual wxSFShapeEvent::~wxSFShapeEvent ( ) [virtual]

Destructor.


Member Function Documentation

wxEvent* wxSFShapeEvent::Clone ( ) const [inline]

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

Get a shape object from the event object.

Returns:
Pointer to the shape object.
bool wxSFShapeEvent::IsVetoed ( ) [inline]

Check if the event has been vetoed or not.

Returns:
TRUE if the event has been vetoed.
void wxSFShapeEvent::SetShape ( wxSFShapeBase shape) [inline]

Insert a shape object to the event object.

Parameters:
shapePointer to the shape object
void wxSFShapeEvent::Veto ( ) [inline]

Set the veto flag to true.


Member Data Documentation

Pointer to stored shape object.

bool wxSFShapeEvent::m_Vetoed [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines