The standard renderer for drawing bullets.
See also
wx.richtext.RichTextRenderer, wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
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. |
wx.richtext.
RichTextStdRenderer
(RichTextRenderer)¶Possible constructors:
RichTextStdRenderer() -> None
The standard renderer for drawing bullets.
__init__
(self)¶Constructor.
None
DrawBitmapBullet
(self, paragraph : RichTextParagraph, dc : DC, attr : RichTextAttr, rect : 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 : RichTextParagraph, dc : DC, attr : RichTextAttr, rect : 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 : RichTextParagraph, dc : DC, attr : RichTextAttr, rect : Rect, text : str)¶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 : List[str])¶Enumerate the standard bullet names currently supported.
This function should be overridden.
bulletNames (list of strings) –
bool
MeasureBullet
(self, paragraph : RichTextParagraph, dc : DC, attr : RichTextAttr, sz : Size)¶Measure the bullet.
paragraph (wx.richtext.RichTextParagraph) –
dc (wx.DC) –
attr (wx.richtext.RichTextAttr) –
sz (wx.Size) –
bool