Class: Wx::RTC::RichTextEvent

Inherits:
NotifyEvent show all
Defined in:
lib/wx/doc/gen/rtc/rich_text_event.rb

Overview

This is the event class for RichTextCtrl notifications.

Events using this class

The following event-handler methods redirect the events to member method or handler blocks for RichTextEvent events. Event handler methods:

Category: Events, Rich Text

Requires:

  • USE_RICHTEXT

Instance Method Summary collapse

Methods inherited from NotifyEvent

#allow, #is_allowed, #veto

Methods inherited from CommandEvent

#client_data, #client_data=, #get_client_data, #get_client_object, #get_int, #get_selection, #get_string, #is_checked, #is_selection, #set_client_data, #set_client_object, #set_extra_long, #set_int, #set_string

Methods inherited from Event

#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initialize(commandType = Wx::EVT_NULL, winid = 0) ⇒ Wx::RTC::RichTextEvent #initialize(event) ⇒ Wx::RTC::RichTextEvent

Returns a new instance of RichTextEvent.

Overloads:

  • #initialize(commandType = Wx::EVT_NULL, winid = 0) ⇒ Wx::RTC::RichTextEvent

    Constructor.

    Parameters:

    • commandType (Wx::GenericCollapsiblePane::EventType) (defaults to: Wx::EVT_NULL)

      The type of the event.

    • winid (Integer) (defaults to: 0)

      Window identifier. The value StandardID::ID_ANY indicates a default value.

  • #initialize(event) ⇒ Wx::RTC::RichTextEvent

    Copy constructor.

    Parameters:



70
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 70

def initialize(*args) end

Instance Method Details

#get_characterString Also known as: character

Returns the character pressed, within a EVT_RICHTEXT_CHARACTER event.

Returns:

  • (String)


137
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 137

def get_character; end

#get_containerWx::RTC::RichTextParagraphLayoutBox Also known as: container

Returns the container for which the event is relevant.



148
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 148

def get_container; end

#get_flagsInteger Also known as: flags

Returns flags indicating modifier keys pressed.

Possible values are Wx::RTC::RICHTEXT_CTRL_DOWN, Wx::RTC::RICHTEXT_SHIFT_DOWN, and Wx::RTC::RICHTEXT_ALT_DOWN.

Returns:

  • (Integer)


87
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 87

def get_flags; end

#get_new_style_sheetWx::RTC::RichTextStyleSheet Also known as: new_style_sheet

Returns the new style sheet.

Can be used in a EVT_RICHTEXT_STYLESHEET_CHANGING or EVT_RICHTEXT_STYLESHEET_CHANGED event handler.



115
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 115

def get_new_style_sheet; end

#get_old_containerWx::RTC::RichTextParagraphLayoutBox Also known as: old_container

Returns the old container, for a focus change event.



159
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 159

def get_old_container; end

#get_old_style_sheetWx::RTC::RichTextStyleSheet Also known as: old_style_sheet

Returns the old style sheet.

Can be used in a EVT_RICHTEXT_STYLESHEET_CHANGING or EVT_RICHTEXT_STYLESHEET_CHANGED event handler.



102
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 102

def get_old_style_sheet; end

#get_positionInteger Also known as: position

Returns the buffer position at which the event occurred.

Returns:

  • (Integer)


74
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 74

def get_position; end

#get_rangeRange Also known as: range

Gets the range for the current operation.

Returns:

  • (Range)


126
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 126

def get_range; end

#set_character(ch) ⇒ void Also known as: character=

This method returns an undefined value.

Sets the character variable.

Parameters:

  • ch (String)


143
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 143

def set_character(ch) end

#set_container(container) ⇒ void Also known as: container=

This method returns an undefined value.

Sets the container for which the event is relevant.

Parameters:



154
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 154

def set_container(container) end

#set_flags(flags) ⇒ void Also known as: flags=

This method returns an undefined value.

Sets flags indicating modifier keys pressed.

Possible values are Wx::RTC::RICHTEXT_CTRL_DOWN, Wx::RTC::RICHTEXT_SHIFT_DOWN, and Wx::RTC::RICHTEXT_ALT_DOWN.

Parameters:

  • flags (Integer)


95
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 95

def set_flags(flags) end

#set_new_style_sheet(sheet) ⇒ void Also known as: new_style_sheet=

This method returns an undefined value.

Sets the new style sheet variable.

Parameters:



121
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 121

def set_new_style_sheet(sheet) end

#set_old_container(container) ⇒ void Also known as: old_container=

This method returns an undefined value.

Sets the old container, for a focus change event.

Parameters:



165
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 165

def set_old_container(container) end

#set_old_style_sheet(sheet) ⇒ void Also known as: old_style_sheet=

This method returns an undefined value.

Sets the old style sheet variable.

Parameters:



108
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 108

def set_old_style_sheet(sheet) end

#set_position(pos) ⇒ void Also known as: position=

This method returns an undefined value.

Sets the buffer position variable.

Parameters:

  • pos (Integer)


80
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 80

def set_position(pos) end

#set_range(range) ⇒ void Also known as: range=

This method returns an undefined value.

Sets the range variable.

Parameters:

  • range (Range)


132
# File 'lib/wx/doc/gen/rtc/rich_text_event.rb', line 132

def set_range(range) end