TextBuffer Class Reference
#include <Ample.h>
List of all members.
Detailed Description
Text node buffer class. Represents a single buffer in a text node.
Member Typedef Documentation
Member Function Documentation
Adds the specified observer to this object.
- Parameters:
-
| observer | The observer to add. |
Destroys this text buffer.
| unsigned int getDataVersion |
( |
void |
|
) |
const [inherited] |
- Returns:
- The current version of the internal state.
| VBufferID getID |
( |
void |
|
) |
const |
- Returns:
- The ID of this text buffer.
| const std::string& getName |
( |
void |
|
) |
const |
- Returns:
- The name of this text buffer.
- Returns:
- The node containing this text buffer.
| const ObserverList& getObservers |
( |
void |
|
) |
const [inline, inherited] |
- Returns:
- The list of observers attached to this object.
| unsigned int getStructureVersion |
( |
void |
|
) |
const [inherited] |
- Returns:
- The current version of the internal structure.
| const std::string& getText |
( |
void |
|
) |
const |
- Returns:
- The current contents of this text buffer.
Removes the specified observer from this object.
- Parameters:
-
| observer | The observer to remove. |
Removes the specified observer from this object.
- Parameters:
-
| observer | The observer to remove. |
| void replaceRange |
( |
uint32 |
position, |
|
|
uint32 |
length, |
|
|
const std::string & |
text | |
|
) |
| | |
Replaces the specified portion (range) with the specified string.
- Parameters:
-
| position | The start of the range to replace. |
| length | The number of characters to replace. |
| text | The string to replace the specified range with. |
| void setName |
( |
const std::string & |
name |
) |
|
Changes the name of this text buffer.
- Parameters:
-
| void setText |
( |
const std::string & |
text |
) |
|
Replaces the entire contents of this text buffer with the specified string.
- Parameters:
-
| text | The desired contents. |
Friends And Related Function Documentation