This object represents a line in a paragraph, and stores offsets from the start of the paragraph representing the start and end positions of the line.
See also
wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
Copies from obj. |
|
Returns the absolute object position. |
|
Returns the absolute range. |
|
Returns the stored descent. |
|
Returns the parent paragraph. |
|
Returns the object position relative to the parent. |
|
Returns the range. |
|
Returns the rectangle enclosing the line. |
|
Returns the line size as calculated by Layout. |
|
Initialises the object. |
|
Sets the stored descent. |
|
Sets the object position relative to the parent. |
|
Sets the range associated with this line. |
|
Sets the line size as calculated by Layout. |
See |
|
See |
|
See |
|
See |
|
See |
|
wx.richtext.
RichTextLine
(object)¶Possible constructors:
RichTextLine(parent : RichTextParagraph) -> None
RichTextLine(obj : RichTextLine) -> None
This object represents a line in a paragraph, and stores offsets from the start of the paragraph representing the start and end positions of the line.
__init__
(self, *args, **kw)¶__init__ (self, parent : RichTextParagraph)
parent (wx.richtext.RichTextParagraph) –
None
__init__ (self, obj : RichTextLine)
obj (wx.richtext.RichTextLine) –
None
Clone
(self)¶Copy
(self, obj : RichTextLine)¶Copies from obj.
obj (wx.richtext.RichTextLine) –
None
GetAbsolutePosition
(self)¶Returns the absolute object position.
Point
GetAbsoluteRange
(self)¶Returns the absolute range.
GetDescent
(self)¶Returns the stored descent.
int
GetParent
(self)¶Returns the parent paragraph.
GetPosition
(self)¶Returns the object position relative to the parent.
Point
GetRange
(self)¶Returns the range.
Init
(self, parent : RichTextParagraph)¶Initialises the object.
parent (wx.richtext.RichTextParagraph) –
None
SetDescent
(self, descent : int)¶Sets the stored descent.
descent (int) –
None
SetPosition
(self, pos : Point)¶Sets the object position relative to the parent.
pos (wx.Point) –
None
SetRange
(self, *args, **kw)¶Sets the range associated with this line.
SetRange (self, range : RichTextRange)
range (wx.richtext.RichTextRange) –
None
SetRange (self, from_ : int, to_ : int)
from_ (long) –
to_ (long) –
None
SetSize
(self, sz : Size)¶Sets the line size as calculated by Layout.
sz (wx.Size) –
None
AbsolutePosition
¶AbsoluteRange
¶See GetAbsoluteRange
Descent
¶See GetDescent
and SetDescent
Position
¶See GetPosition
and SetPosition