Class: Wx::RTC::RichTextDrawingHandler
- Defined in:
- lib/wx/doc/gen/rtc/rich_text_buffer.rb
Overview
The base class for custom drawing handlers.
Currently, drawing handlers can provide virtual attributes.
Category: Rich Text
Instance Method Summary collapse
-
#get_name ⇒ String
(also: #name)
Returns the name of the handler.
-
#get_virtual_attributes(attr, obj) ⇒ Boolean
(also: #virtual_attributes)
Provides virtual attributes that we can provide.
-
#get_virtual_subobject_attributes(obj, positions, attributes) ⇒ Integer
(also: #virtual_subobject_attributes)
Gets the mixed virtual attributes for individual positions within the object.
-
#get_virtual_subobject_attributes_count(obj) ⇒ Integer
(also: #virtual_subobject_attributes_count)
Gets the count for mixed virtual attributes for individual positions within the object.
-
#get_virtual_text(obj, text) ⇒ Boolean
(also: #virtual_text)
Gets the virtual text for this object.
-
#has_virtual_attributes(obj) ⇒ Boolean
(also: #has_virtual_attributes?)
Returns true if this object has virtual attributes that we can provide.
-
#has_virtual_text(obj) ⇒ Boolean
(also: #has_virtual_text?)
Do we have virtual text for this object? Virtual text allows an application to replace characters in an object for editing and display purposes, for example for highlighting special characters.
-
#initialize(name = ('')) ⇒ Wx::RTC::RichTextDrawingHandler
constructor
Creates a drawing handler object.
-
#set_name(name) ⇒ void
(also: #name=)
Sets the name of the handler.
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize(name = ('')) ⇒ Wx::RTC::RichTextDrawingHandler
Creates a drawing handler object.
1122 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1122 def initialize(name=('')) end |
Instance Method Details
#get_name ⇒ String Also known as: name
Returns the name of the handler.
1176 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1176 def get_name; end |
#get_virtual_attributes(attr, obj) ⇒ Boolean Also known as: virtual_attributes
Provides virtual attributes that we can provide.
1134 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1134 def get_virtual_attributes(attr, obj) end |
#get_virtual_subobject_attributes(obj, positions, attributes) ⇒ Integer Also known as: virtual_subobject_attributes
Gets the mixed virtual attributes for individual positions within the object.
For example, individual characters within a text object may require special highlighting. Returns the number of virtual attributes found.
1152 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1152 def get_virtual_subobject_attributes(obj, positions, attributes) end |
#get_virtual_subobject_attributes_count(obj) ⇒ Integer Also known as: virtual_subobject_attributes_count
Gets the count for mixed virtual attributes for individual positions within the object.
For example, individual characters within a text object may require special highlighting.
1142 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1142 def get_virtual_subobject_attributes_count(obj) end |
#get_virtual_text(obj, text) ⇒ Boolean Also known as: virtual_text
Gets the virtual text for this object.
1165 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1165 def get_virtual_text(obj, text) end |
#has_virtual_attributes(obj) ⇒ Boolean Also known as: has_virtual_attributes?
Returns true if this object has virtual attributes that we can provide.
1127 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1127 def has_virtual_attributes(obj) end |
#has_virtual_text(obj) ⇒ Boolean Also known as: has_virtual_text?
Do we have virtual text for this object? Virtual text allows an application to replace characters in an object for editing and display purposes, for example for highlighting special characters.
1158 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1158 def has_virtual_text(obj) end |
#set_name(name) ⇒ void Also known as: name=
This method returns an undefined value.
Sets the name of the handler.
1171 |
# File 'lib/wx/doc/gen/rtc/rich_text_buffer.rb', line 1171 def set_name(name) end |