wx.richtext.RichTextStdRenderer¶
The standard renderer for drawing bullets.
Class Hierarchy¶
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¶
- class wx.richtext.RichTextStdRenderer(RichTextRenderer)¶
Possible constructors:
RichTextStdRenderer() -> None
The standard renderer for drawing bullets.
Methods¶
- __init__(self)¶
Constructor.
- Return type:
None
- 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.
- Parameters:
paragraph (wx.richtext.RichTextParagraph)
dc (wx.DC)
attr (wx.richtext.RichTextAttr)
rect (wx.Rect)
- Return type:
bool
- DrawStandardBullet(self, paragraph, dc, attr, rect)¶
Draws a standard bullet, as specified by the value of GetBulletName.
This function should be overridden.
- Parameters:
paragraph (wx.richtext.RichTextParagraph)
dc (wx.DC)
attr (wx.richtext.RichTextAttr)
rect (wx.Rect)
- Return type:
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.
- Parameters:
paragraph (wx.richtext.RichTextParagraph)
dc (wx.DC)
attr (wx.richtext.RichTextAttr)
rect (wx.Rect)
text (string)
- Return type:
bool
- EnumerateStandardBulletNames(self, bulletNames)¶
Enumerate the standard bullet names currently supported.
This function should be overridden.
- Parameters:
bulletNames (list of strings)
- Return type:
bool
- MeasureBullet(self, paragraph, dc, attr, sz)¶
Measure the bullet.
- Parameters:
paragraph (wx.richtext.RichTextParagraph)
dc (wx.DC)
attr (wx.richtext.RichTextAttr)
sz (wx.Size)
- Return type:
bool