The base class for custom drawing handlers.
Currently, drawing handlers can provide virtual attributes.
See also
wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
Creates a drawing handler object. |
|
Returns the name of the handler. |
|
Provides virtual attributes that we can provide. |
|
Gets the mixed virtual attributes for individual positions within the object. |
|
Gets the count for mixed virtual attributes for individual positions within the object. |
|
Gets the virtual text for this object. |
|
Returns |
|
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. |
|
Sets the name of the handler. |
wx.richtext.
RichTextDrawingHandler
(Object)¶Possible constructors:
RichTextDrawingHandler(name="")
The base class for custom drawing handlers.
__init__
(self, name="")¶Creates a drawing handler object.
name (string) –
GetName
(self)¶Returns the name of the handler.
string
GetVirtualAttributes
(self, attr, obj)¶Provides virtual attributes that we can provide.
attr (wx.richtext.RichTextAttr) –
obj (wx.richtext.RichTextObject) –
bool
GetVirtualSubobjectAttributes
(self, obj, positions, 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.
obj (wx.richtext.RichTextObject) –
positions (list of integers) –
attributes (RichTextAttrArray) –
int
GetVirtualSubobjectAttributesCount
(self, obj)¶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.
obj (wx.richtext.RichTextObject) –
int
GetVirtualText
(self, obj, text)¶Gets the virtual text for this object.
obj (wx.richtext.RichTextPlainText) –
text (string) –
bool
HasVirtualAttributes
(self, obj)¶Returns True
if this object has virtual attributes that we can provide.
obj (wx.richtext.RichTextObject) –
bool
HasVirtualText
(self, obj)¶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.
obj (wx.richtext.RichTextPlainText) –
bool
SetName
(self, name)¶Sets the name of the handler.
name (string) –