wx.richtext.RichTextDrawingContext¶
A class for passing information to drawing and measuring functions.
Class Hierarchy¶
Methods Summary¶
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. |
Properties Summary¶
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 |
Class API¶
- class wx.richtext.RichTextDrawingContext(Object)¶
Possible constructors:
RichTextDrawingContext(buffer) -> None
A class for passing information to drawing and measuring functions.
Methods¶
- __init__(self, buffer)¶
Pass the buffer to the context so the context can retrieve information such as virtual attributes.
- Parameters:
buffer (wx.richtext.RichTextBuffer)
- Return type:
None
- ApplyVirtualAttributes(self, attr, obj)¶
Applies any virtual attributes relevant to this object.
- Parameters:
attr (wx.richtext.RichTextAttr)
- Return type:
bool
- EnableDelayedImageLoading(self, b)¶
Enable or disable delayed image loading.
- Parameters:
b (bool)
- Return type:
None
- EnableImages(self, b)¶
Enable or disable images.
- Parameters:
b (bool)
- Return type:
None
- EnableVirtualAttributes(self, b)¶
Enables virtual attribute processing.
- Parameters:
b (bool)
- Return type:
None
- GetDelayedImageLoading(self)¶
Returns
True
if delayed image loading is enabled.- Return type:
bool
- GetImagesEnabled(self)¶
Returns
True
if images are enabled.- Return type:
bool
- GetLayingOut(self)¶
Returns
True
if laying out.- Return type:
bool
- GetVirtualAttributes(self, obj)¶
Returns the virtual attributes for this object.
Virtual attributes can be provided for visual cues without affecting the actual styling.
- Parameters:
- Return type:
- GetVirtualAttributesEnabled(self)¶
Returns
True
if virtual attribute processing is enabled.- Return type:
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.
- Parameters:
positions (list of integers)
attributes (RichTextAttrArray)
- Return type:
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.
- Parameters:
- Return type:
int
- GetVirtualText(self, obj, text)¶
Gets the virtual text for this object.
- Parameters:
text (string)
- Return type:
bool
- HasVirtualAttributes(self, obj)¶
Does this object have virtual attributes? Virtual attributes can be provided for visual cues without affecting the actual styling.
- Parameters:
- Return type:
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.
- Parameters:
- Return type:
bool
- Init(self)¶
- Return type:
None
- SetLayingOut(self, b)¶
Set laying out flag.
- Parameters:
b (bool)
- Return type:
None
Properties¶
- DelayedImageLoading¶
- ImagesEnabled¶
See
GetImagesEnabled
- LayingOut¶
See
GetLayingOut
andSetLayingOut
- 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
.