TextBufferObserver Class Reference
#include <Ample.h>
List of all members.
Detailed Description
Observer interface for text node buffers.
Member Typedef Documentation
Member Function Documentation
| void detachObservables |
( |
void |
|
) |
[inline, inherited] |
Detaches all observed objects from this observer.
| virtual void onDestroy |
( |
TextBuffer & |
buffer |
) |
[virtual] |
Called before an observed text buffer is destroyed.
- Parameters:
-
| buffer | The text buffer to be destroyed. |
| virtual void onReplaceRange |
( |
TextBuffer & |
buffer, |
|
|
uint32 |
position, |
|
|
uint32 |
length, |
|
|
const std::string & |
text | |
|
) |
| | [virtual] |
Called before a portion (range) of an observed text buffer is modified.
- Parameters:
-
| buffer | The buffer to be modified. |
| position | The start of the range to be replaced. |
| length | The number of characters to be replaced. |
| text | The string to replace the specified range with. |
| virtual void onSetName |
( |
TextBuffer & |
buffer, |
|
|
const std::string & |
name | |
|
) |
| | [virtual] |
Called before an observed text buffer has its name changed.
- Parameters:
-
| buffer | The text buffer to be renamed. |
| name | The new name of the text buffer. |
Friends And Related Function Documentation