wxRichTextEvent Class Reference
[EventsRich Text]

#include <wx/richtext/richtextctrl.h>

Inheritance diagram for wxRichTextEvent:

wxNotifyEvent wxCommandEvent wxEvent wxObject

List of all members.


Detailed Description

This is the event class for wxRichTextCtrl notifications.

Events:

The following event handler macros redirect the events to member function handlers 'func' with prototypes like:

void handlerFuncName(wxRichTextEvent& event)
Event macros:
Library:  wxRichText

Category:  Events, Rich Text

Public Member Functions

 wxRichTextEvent (const wxRichTextEvent &event)
 wxRichTextEvent (wxEventType commandType=wxEVT_NULL, int id=0)
wxEventClone () const
wxChar GetCharacter () const
int GetFlags () const
wxRichTextStyleSheetGetNewStyleSheet () const
wxRichTextStyleSheetGetOldStyleSheet () const
long GetPosition () const
const wxRichTextRangeGetRange () const
void SetCharacter (wxChar ch)
void SetFlags (int flags)
void SetNewStyleSheet (wxRichTextStyleSheet *sheet)
void SetOldStyleSheet (wxRichTextStyleSheet *sheet)
void SetPosition (long pos)
void SetRange (const wxRichTextRange &range)

Constructor & Destructor Documentation

wxRichTextEvent::wxRichTextEvent ( const wxRichTextEvent event  ) 

Copy constructor.

wxRichTextEvent::wxRichTextEvent ( wxEventType  commandType = wxEVT_NULL,
int  id = 0 
)

Constructor.

Parameters:
commandType The type of the event.
id Window identifier. The value wxID_ANY indicates a default value.


Member Function Documentation

wxEvent* wxRichTextEvent::Clone (  )  const [virtual]

Clones the event.

Implements wxEvent.

wxChar wxRichTextEvent::GetCharacter (  )  const

Returns the character pressed, within a wxEVT_COMMAND_RICHTEXT_CHARACTER event.

int wxRichTextEvent::GetFlags (  )  const

Returns flags indicating modifier keys pressed.

Possible values are wxRICHTEXT_CTRL_DOWN, wxRICHTEXT_SHIFT_DOWN, and wxRICHTEXT_ALT_DOWN.

wxRichTextStyleSheet* wxRichTextEvent::GetNewStyleSheet (  )  const

Returns the new style sheet.

Can be used in a wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING or wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED event handler.

wxRichTextStyleSheet* wxRichTextEvent::GetOldStyleSheet (  )  const

Returns the old style sheet.

Can be used in a wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING or wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED event handler.

long wxRichTextEvent::GetPosition (  )  const

Returns the buffer position at which the event occured.

const wxRichTextRange& wxRichTextEvent::GetRange (  )  const

Gets the range for the current operation.

void wxRichTextEvent::SetCharacter ( wxChar  ch  ) 

Sets the character variable.

void wxRichTextEvent::SetFlags ( int  flags  ) 

Sets flags indicating modifier keys pressed.

Possible values are wxRICHTEXT_CTRL_DOWN, wxRICHTEXT_SHIFT_DOWN, and wxRICHTEXT_ALT_DOWN.

void wxRichTextEvent::SetNewStyleSheet ( wxRichTextStyleSheet sheet  ) 

Sets the new style sheet variable.

void wxRichTextEvent::SetOldStyleSheet ( wxRichTextStyleSheet sheet  ) 

Sets the old style sheet variable.

void wxRichTextEvent::SetPosition ( long  pos  ) 

Sets the buffer position variable.

void wxRichTextEvent::SetRange ( const wxRichTextRange range  ) 

Sets the range variable.



wxWidgets logo

[ top ]