#include </home/Hamish/wxwidgets/wxWidgets3.0-3.0.5.1-1.x86_64/src/wxWidgets-3.0.5.1/interface/wx/richtext/richtextbuffer.h>
A class for specifying an object anywhere in an object hierarchy, without using a pointer, necessary since wxRTC commands may delete and recreate sub-objects so physical object addresses change.
An array of positions (one per hierarchy level) is used.
<>< =''>:</>&;&;< =''>\ </></>
Public Member Functions | |
| wxRichTextObjectAddress (wxRichTextParagraphLayoutBox *topLevelContainer, wxRichTextObject *obj) | |
| Creates the address given a container and an object. More... | |
| wxRichTextObjectAddress () | |
| wxRichTextObjectAddress (const wxRichTextObjectAddress &address) | |
| void | Init () |
| void | Copy (const wxRichTextObjectAddress &address) |
| Copies the address. More... | |
| void | operator= (const wxRichTextObjectAddress &address) |
| Assignment operator. More... | |
| wxRichTextObject * | GetObject (wxRichTextParagraphLayoutBox *topLevelContainer) const |
| Returns the object specified by the address, given a top level container. More... | |
| bool | Create (wxRichTextParagraphLayoutBox *topLevelContainer, wxRichTextObject *obj) |
| Creates the address given a container and an object. More... | |
| wxArrayInt & | GetAddress () |
| Returns the array of integers representing the object address. More... | |
| const wxArrayInt & | GetAddress () const |
| Returns the array of integers representing the object address. More... | |
| void | SetAddress (const wxArrayInt &address) |
| Sets the address from an array of integers. More... | |
Protected Attributes | |
| wxArrayInt | m_address |
|
inline |
Creates the address given a container and an object.
|
inline |
|
inline |
|
inline |
Copies the address.
| bool wxRichTextObjectAddress::Create | ( | wxRichTextParagraphLayoutBox * | topLevelContainer, |
| wxRichTextObject * | obj | ||
| ) |
Creates the address given a container and an object.
|
inline |
Returns the array of integers representing the object address.
|
inline |
Returns the array of integers representing the object address.
| wxRichTextObject* wxRichTextObjectAddress::GetObject | ( | wxRichTextParagraphLayoutBox * | topLevelContainer | ) | const |
Returns the object specified by the address, given a top level container.
|
inline |
|
inline |
Assignment operator.
|
inline |
Sets the address from an array of integers.
|
protected |