wx.richtext.RichTextRenderer¶This class isolates some common drawing functionality.
See also
wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
Class Hierarchy¶
Inheritance diagram for class RichTextRenderer:

Known Subclasses¶wx.richtext.RichTextStdRenderer
Methods Summary¶Constructor. |
|
Draws a bitmap bullet, where the bullet bitmap is specified by the value of GetBulletName. |
|
Draws a standard bullet, as specified by the value of GetBulletName. |
|
Draws a bullet that can be described by text, such as numbered or symbol bullets. |
|
Enumerate the standard bullet names currently supported. |
|
Measure the bullet. |
Class API¶wx.richtext.RichTextRenderer(Object)¶Possible constructors:
RichTextRenderer()
This class isolates some common drawing functionality.
__init__(self)¶Constructor.
DrawBitmapBullet(self, paragraph, dc, attr, rect)¶Draws a bitmap bullet, where the bullet bitmap is specified by the value of GetBulletName.
This function should be overridden.
paragraph (wx.richtext.RichTextParagraph) –
dc (wx.DC) –
attr (wx.richtext.RichTextAttr) –
rect (wx.Rect) –
bool
DrawStandardBullet(self, paragraph, dc, attr, rect)¶Draws a standard bullet, as specified by the value of GetBulletName.
This function should be overridden.
paragraph (wx.richtext.RichTextParagraph) –
dc (wx.DC) –
attr (wx.richtext.RichTextAttr) –
rect (wx.Rect) –
bool
DrawTextBullet(self, paragraph, dc, attr, rect, text)¶Draws a bullet that can be described by text, such as numbered or symbol bullets.
This function should be overridden.
paragraph (wx.richtext.RichTextParagraph) –
dc (wx.DC) –
attr (wx.richtext.RichTextAttr) –
rect (wx.Rect) –
text (string) –
bool
EnumerateStandardBulletNames(self, bulletNames)¶Enumerate the standard bullet names currently supported.
This function should be overridden.
bulletNames (list of strings) –
bool
MeasureBullet(self, paragraph, dc, attr, sz)¶Measure the bullet.
paragraph (wx.richtext.RichTextParagraph) –
dc (wx.DC) –
attr (wx.richtext.RichTextAttr) –
sz (wx.Size) –
bool