A class for specifying an object anywhere in an object hierarchy, without using a pointer, necessary since RTC
commands may delete and recreate sub-objects so physical object addresses change.
An array of positions (one per hierarchy level) is used.
See also
Creates the address given a container and an object. |
|
Copies the address. |
|
Creates the address given a container and an object. |
|
Returns the array of integers representing the object address. |
|
Returns the object specified by the address, given a top level container. |
|
Sets the address from an array of integers. |
See |
wx.richtext.
RichTextObjectAddress
(object)¶Possible constructors:
RichTextObjectAddress(topLevelContainer : RichTextParagraphLayoutBox,
obj : RichTextObject) -> None
RichTextObjectAddress() -> None
RichTextObjectAddress(address : RichTextObjectAddress) -> None
A class for specifying an object anywhere in an object hierarchy,
without using a pointer, necessary since RTC
commands may delete and
recreate sub-objects so physical object addresses change.
__init__
(self, *args, **kw)¶__init__ (self, topLevelContainer : RichTextParagraphLayoutBox, obj : RichTextObject)
Creates the address given a container and an object.
topLevelContainer (wx.richtext.RichTextParagraphLayoutBox) –
obj (wx.richtext.RichTextObject) –
None
__init__ (self)
None
__init__ (self, address : RichTextObjectAddress)
address (wx.richtext.RichTextObjectAddress) –
None
Copy
(self, address : RichTextObjectAddress)¶Copies the address.
address (wx.richtext.RichTextObjectAddress) –
None
Create
(self, topLevelContainer : RichTextParagraphLayoutBox, obj : RichTextObject)¶Creates the address given a container and an object.
topLevelContainer (wx.richtext.RichTextParagraphLayoutBox) –
obj (wx.richtext.RichTextObject) –
bool
GetAddress
(self)¶Returns the array of integers representing the object address.
List[int]
GetObject
(self, topLevelContainer : RichTextParagraphLayoutBox)¶Returns the object specified by the address, given a top level container.
topLevelContainer (wx.richtext.RichTextParagraphLayoutBox) –
Init
(self)¶None
SetAddress
(self, address : List[int])¶Sets the address from an array of integers.
address (list of integers) –
None
Address
¶See GetAddress
and SetAddress