Objects of this class can contain other objects.
wx.richtext.RichTextParagraph, wx.richtext.RichTextParagraphLayoutBox
Appends a child, returning the position. |
|
Calculates the range of the object. |
|
Recursively merges all pieces that can be merged. |
|
Deletes all the children. |
|
Deletes the given range. |
|
Finds the absolute position and row height for the given character position. |
|
Returns the nth child. |
|
Returns the child object at the given character position. |
|
Returns the number of children. |
|
Returns the children. |
|
Returns the object size for the given range. |
|
Returns any text in this object for the given range. |
|
Hit-testing: returns a flag indicating hit test details, plus information about position. |
|
Inserts the child in front of the given object, or at the beginning. |
|
Invalidates the object at the given range. |
|
Returns |
|
Returns |
|
Returns |
|
Moves the object recursively, by adding the offset from old to new. |
|
Removes and optionally deletes the specified child. |
See |
|
See |
Possible constructors:
RichTextCompositeObject(parent: Optional[RichTextObject]=None) -> None
Objects of this class can contain other objects.
parent (wx.richtext.RichTextObject)
None
Appends a child, returning the position.
child (wx.richtext.RichTextObject)
int
Calculates the range of the object.
By default, guess that the object is 1 unit long.
start (long)
int
None
Recursively merges all pieces that can be merged.
context (wx.richtext.RichTextDrawingContext)
range (wx.richtext.RichTextRange)
bool
Deletes all the children.
bool
Deletes the given range.
range (wx.richtext.RichTextRange)
bool
Finds the absolute position and row height for the given character position.
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
index (long)
forceLineStart (bool)
le[bool, wx.Point, int]
Returns the nth child.
n (int)
Returns the child object at the given character position.
pos (long)
Returns the number of children.
int
Returns the children.
RichTextObjectList
Returns the object size for the given range.
Returns False
if the range is invalid for this object.
range (wx.richtext.RichTextRange)
size (wx.Size)
descent (int)
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
flags (int)
position (wx.Point)
parentSize (wx.Size)
partialExtents (list of integers)
bool
Returns any text in this object for the given range.
range (wx.richtext.RichTextRange)
str
Hit-testing: returns a flag indicating hit test details, plus information about position.
contextObj is returned to specify what object position is relevant to, since otherwise there’s an ambiguity. @ obj might not be a child of contextObj, since we may be referring to the container itself if we have no hit on a child - for example if we click outside an object.
The function puts the position in textPosition if one is found. pt is in logical units (a zero y position is at the beginning of the buffer).
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
pt (wx.Point)
flags (int)
Tuple[int, int, RichTextObject, RichTextObject]
One of the wx.richtext.RichTextHitTestFlags values.
Inserts the child in front of the given object, or at the beginning.
child (wx.richtext.RichTextObject)
inFrontOf (wx.richtext.RichTextObject)
bool
Invalidates the object at the given range.
With no argument, invalidates the whole object.
invalidRange (wx.richtext.RichTextRange)
None
Returns True
if no user editing can be done inside the object.
This returns True
for simple objects, False
for most composite objects, but True
for fields, which if composite, should not be user-edited.
bool
Returns True
if this object is composite.
bool
Returns True
if the buffer is empty.
bool
Moves the object recursively, by adding the offset from old to new.
pt (wx.Point)
None
Removes and optionally deletes the specified child.
child (wx.richtext.RichTextObject)
deleteChild (bool)
bool
See GetChildCount
See GetChildren