Phoenix Logo

phoenix_title wx.richtext.RichTextDrawingContext

A class for passing information to drawing and measuring functions.


class_hierarchy Class Hierarchy

Inheritance diagram for class RichTextDrawingContext:


method_summary Methods Summary

__init__ Pass the buffer to the context so the context can retrieve information such as virtual attributes.
ApplyVirtualAttributes Applies any virtual attributes relevant to this object.
EnableVirtualAttributes Enables virtual attribute processing.
GetVirtualAttributes Returns the virtual attributes for this object.
GetVirtualAttributesEnabled Returns True if virtual attribute processing is enabled.
GetVirtualSubobjectAttributes Gets the mixed virtual attributes for individual positions within the object.
GetVirtualSubobjectAttributesCount Gets the count for mixed virtual attributes for individual positions within the object.
GetVirtualText Gets the virtual text for this object.
HasVirtualAttributes Does this object have virtual attributes? Virtual attributes can be provided for visual cues without affecting the actual styling.
HasVirtualText 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.
Init  

property_summary Properties Summary

VirtualAttributesEnabled See GetVirtualAttributesEnabled
m_buffer A public C++ attribute of type RichTextBuffer .

api Class API



class wx.richtext.RichTextDrawingContext(Object)

Possible constructors:

RichTextDrawingContext(buffer)

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) –


ApplyVirtualAttributes(self, attr, obj)

Applies any virtual attributes relevant to this object.

Parameters:
Return type:

bool



EnableVirtualAttributes(self, b)

Enables virtual attribute processing.

Parameters: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.

Parameters:obj (wx.richtext.RichTextObject) –
Return type: wx.richtext.RichTextAttr


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:
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:obj (wx.richtext.RichTextObject) –
Return type:int


GetVirtualText(self, obj, text)

Gets the virtual text for this object.

Parameters:
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:obj (wx.richtext.RichTextObject) –
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:obj (wx.richtext.RichTextPlainText) –
Return type:bool


Init(self)

Properties



VirtualAttributesEnabled

See GetVirtualAttributesEnabled



m_buffer

A public C++ attribute of type RichTextBuffer .