A class for passing information to drawing and measuring functions.
Pass the buffer to the context so the context can retrieve information such as virtual attributes. |
|
Applies any virtual attributes relevant to this object. |
|
Enables virtual attribute processing. |
|
Returns the virtual attributes for this object. |
|
Returns |
|
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. |
|
Does this object have virtual attributes? Virtual attributes can be provided for visual cues without affecting the actual styling. |
|
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. |
|
wx.richtext.
RichTextDrawingContext
(Object)¶Possible constructors:
RichTextDrawingContext(buffer)
A class for passing information to drawing and measuring functions.
__init__
(self, buffer)¶Pass the buffer to the context so the context can retrieve information such as virtual attributes.
buffer (wx.richtext.RichTextBuffer) –
ApplyVirtualAttributes
(self, attr, obj)¶Applies any virtual attributes relevant to this object.
attr (wx.richtext.RichTextAttr) –
obj (wx.richtext.RichTextObject) –
bool
EnableVirtualAttributes
(self, b)¶Enables virtual attribute processing.
b (bool) –
GetVirtualAttributes
(self, obj)¶Returns the virtual attributes for this object.
Virtual attributes can be provided for visual cues without affecting the actual styling.
obj (wx.richtext.RichTextObject) –
GetVirtualAttributesEnabled
(self)¶Returns True
if virtual attribute processing is enabled.
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. The function is passed the count returned by GetVirtualSubobjectAttributesCount.
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)¶Does this object have virtual attributes? Virtual attributes can be provided for visual cues without affecting the actual styling.
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
Init
(self)¶VirtualAttributesEnabled
¶m_buffer
¶A public C++ attribute of type RichTextBuffer
.