wxShapeFramework  1.13.0 beta
wxSFShapeTextEvent Class Reference

Class encapsulates wxEVT_SF_TEXT_CHANGE event. More...

#include <SFEvents.h>

Collaboration diagram for wxSFShapeTextEvent:

List of all members.

Public Member Functions

 wxSFShapeTextEvent (wxEventType cmdType=wxEVT_NULL, int id=0)
 Constructor.
 wxSFShapeTextEvent (const wxSFShapeTextEvent &obj)
 Copy constructor.
virtual ~wxSFShapeTextEvent ()
 Destructor.
void SetShape (wxSFShapeBase *shape)
 Insert a shape object to the event object.
wxSFShapeBaseGetShape ()
 Get a shape object from the event object.
void SetText (const wxString &txt)
 Set new text shape.
wxString GetText ()
 Get a shape text.
wxEvent * Clone () const
 Clone this event object and return pointer to the new instance.

Private Attributes

wxSFShapeBasem_Shape
 Pointer to stored shape object.
wxString m_Text
 New shape text.

Detailed Description

Class encapsulates wxEVT_SF_TEXT_CHANGE event.


Constructor & Destructor Documentation

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

Constructor.

Copy constructor.

Destructor.


Member Function Documentation

wxEvent* wxSFShapeTextEvent::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.
wxString wxSFShapeTextEvent::GetText ( ) [inline]

Get a shape text.

Returns:
Shape text content.
void wxSFShapeTextEvent::SetShape ( wxSFShapeBase shape) [inline]

Insert a shape object to the event object.

Parameters:
shapePointer to the shape object
void wxSFShapeTextEvent::SetText ( const wxString &  txt) [inline]

Set new text shape.

Parameters:
txtNew text content.

Member Data Documentation

Pointer to stored shape object.

wxString wxSFShapeTextEvent::m_Text [private]

New shape text.


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