wx.richtext.RichTextLine¶
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.
Class Hierarchy¶
Methods Summary¶
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. |
Properties Summary¶
See |
|
See |
|
See |
|
See |
|
See |
|
Class API¶
- class wx.richtext.RichTextLine(object)¶
Possible constructors:
RichTextLine(parent) -> None RichTextLine(obj) -> 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.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self, parent)
- Parameters:
parent (wx.richtext.RichTextParagraph)
- Return type:
None
__init__ (self, obj)
- Parameters:
obj (wx.richtext.RichTextLine)
- Return type:
None
- Clone(self)¶
- Return type:
- Copy(self, obj)¶
Copies from obj.
- Parameters:
obj (wx.richtext.RichTextLine)
- Return type:
None
- GetAbsolutePosition(self)¶
Returns the absolute object position.
- Return type:
Point
- GetAbsoluteRange(self)¶
Returns the absolute range.
- Return type:
- GetDescent(self)¶
Returns the stored descent.
- Return type:
int
- GetParent(self)¶
Returns the parent paragraph.
- Return type:
- GetPosition(self)¶
Returns the object position relative to the parent.
- Return type:
Point
- GetRange(self)¶
Returns the range.
- Return type:
- Init(self, parent)¶
Initialises the object.
- Parameters:
parent (wx.richtext.RichTextParagraph)
- Return type:
None
- SetDescent(self, descent)¶
Sets the stored descent.
- Parameters:
descent (int)
- Return type:
None
- SetPosition(self, pos)¶
Sets the object position relative to the parent.
- Parameters:
pos (wx.Point)
- Return type:
None
- SetRange(self, *args, **kw)¶
Sets the range associated with this line.
SetRange (self, range)
- Parameters:
range (wx.richtext.RichTextRange)
- Return type:
None
SetRange (self, from_, to_)
- Parameters:
from_ (long)
to_ (long)
- Return type:
None
- SetSize(self, sz)¶
Sets the line size as calculated by Layout.
- Parameters:
sz (wx.Size)
- Return type:
None
Properties¶
- AbsolutePosition¶
- AbsoluteRange¶
See
GetAbsoluteRange
- Descent¶
See
GetDescent
andSetDescent
- Position¶
See
GetPosition
andSetPosition