wxShapeFramework  1.13.0 beta
wxSFShapeTextEvent Class Reference

Class encapsulates wxEVT_SF_TEXT_CHANGE event. More...

#include <SFEvents.h>

Inheritance diagram for wxSFShapeTextEvent:
Collaboration diagram for wxSFShapeTextEvent:

Public Member Functions

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

Private Attributes

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

Detailed Description

Class encapsulates wxEVT_SF_TEXT_CHANGE event.

Constructor & Destructor Documentation

◆ wxSFShapeTextEvent() [1/2]

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

Constructor.

◆ wxSFShapeTextEvent() [2/2]

wxSFShapeTextEvent::wxSFShapeTextEvent ( const wxSFShapeTextEvent obj)

Copy constructor.

◆ ~wxSFShapeTextEvent()

virtual wxSFShapeTextEvent::~wxSFShapeTextEvent ( )
virtual

Destructor.

Member Function Documentation

◆ Clone()

wxEvent* wxSFShapeTextEvent::Clone ( ) const
inline

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

◆ GetShape()

wxSFShapeBase* wxSFShapeTextEvent::GetShape ( )
inline

Get a shape object from the event object.

Returns
Pointer to the shape object.

◆ GetText()

wxString wxSFShapeTextEvent::GetText ( )
inline

Get a shape text.

Returns
Shape text content.

◆ SetShape()

void wxSFShapeTextEvent::SetShape ( wxSFShapeBase shape)
inline

Insert a shape object to the event object.

Parameters
shapePointer to the shape object

◆ SetText()

void wxSFShapeTextEvent::SetText ( const wxString &  txt)
inline

Set new text shape.

Parameters
txtNew text content.

Member Data Documentation

◆ m_Shape

wxSFShapeBase* wxSFShapeTextEvent::m_Shape
private

Pointer to stored shape object.

◆ m_Text

wxString wxSFShapeTextEvent::m_Text
private

New shape text.


The documentation for this class was generated from the following file: