A class for passing information to drawing and measuring functions.
See also
wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
Pass the buffer to the context so the context can retrieve information such as virtual attributes. |
|
Applies any virtual attributes relevant to this object. |
|
Enable or disable delayed image loading. |
|
Enable or disable images. |
|
Enables virtual attribute processing. |
|
Returns |
|
Returns |
|
Returns |
|
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. |
|
Set laying out flag. |
See |
|
See |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
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
EnableDelayedImageLoading
(self, b)¶Enable or disable delayed image loading.
b (bool) –
EnableImages
(self, b)¶Enable or disable images.
b (bool) –
EnableVirtualAttributes
(self, b)¶Enables virtual attribute processing.
b (bool) –
GetDelayedImageLoading
(self)¶Returns True
if delayed image loading is enabled.
bool
GetImagesEnabled
(self)¶Returns True
if images are enabled.
bool
GetLayingOut
(self)¶Returns True
if laying out.
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)¶SetLayingOut
(self, b)¶Set laying out flag.
b (bool) –
DelayedImageLoading
¶ImagesEnabled
¶See GetImagesEnabled
LayingOut
¶See GetLayingOut
and SetLayingOut
VirtualAttributesEnabled
¶m_buffer
¶A public C++ attribute of type RichTextBuffer
.
m_enableDelayedImageLoading
¶A public C++ attribute of type bool
.
m_enableImages
¶A public C++ attribute of type bool
.
m_enableVirtualAttributes
¶A public C++ attribute of type bool
.
m_layingOut
¶A public C++ attribute of type bool
.