|
NXWidgets
1.19
|
#include <itextbox.hxx>

Public Member Functions | |
| virtual | ~ITextBox (void) |
| virtual void | showCursor (EShowCursor cursorMode)=0 |
| virtual void | wrapCursor (bool wrap)=0 |
| virtual void | setText (const CNxString &text)=0 |
| virtual void | appendText (const CNxString &text)=0 |
| virtual void | removeText (const unsigned int startIndex)=0 |
| virtual void | removeText (const unsigned int startIndex, const unsigned int count)=0 |
| virtual void | insertText (const CNxString &text, const unsigned int index)=0 |
| virtual void | insertTextAtCursor (const CNxString &text)=0 |
| virtual void | moveCursorToPosition (const int position)=0 |
| virtual const int | getCursorPosition (void) const =0 |
Defines the interface that textbox-like classes should implement.
Definition at line 115 of file itextbox.hxx.
|
inlinevirtual |
A virtual destructor is required in order to override the ITextBox destructor. We do this because if we delete ITextBox, we want the destructor of the class that inherits from ITextBox to run, not this one.
Definition at line 125 of file itextbox.hxx.
|
pure virtual |
Append new text to the end of the current text displayed in the label.
| text | String to append. |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CTextBox, and NXWidgets::CScrollingTextBox.
|
pure virtual |
Get the cursor position. This is the index within the string that the cursor is currently positioned over.
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CTextBox, and NXWidgets::CScrollingTextBox.
|
pure virtual |
Insert text at the specified index.
| text | The text to insert. |
| index | Index at which to insert the text. |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CScrollingTextBox, and NXWidgets::CTextBox.
|
pure virtual |
Insert text at the current cursor position.
| text | The text to insert. |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CScrollingTextBox, and NXWidgets::CTextBox.
|
pure virtual |
Move the cursor to the text position specified. 0 indicates the start of the string. If position is greater than the length of the string, the cursor is moved to the end of the string.
| position | The new cursor position. |
Implemented in NXWidgets::CMultiLineTextBox, and NXWidgets::CTextBox.
|
pure virtual |
Remove all characters from the string from the start index onwards.
| startIndex | Index to remove from. |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CTextBox, and NXWidgets::CScrollingTextBox.
|
pure virtual |
Remove specified number of characters from the string from the start index onwards.
| startIndex | Index to remove from. |
| count | Number of characters to remove. |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CTextBox, and NXWidgets::CScrollingTextBox.
|
pure virtual |
Set the text displayed in the label.
| text | String to display. |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CTextBox, and NXWidgets::CScrollingTextBox.
|
pure virtual |
Sets the cursor display mode.
| cursorMode | Determines cursor display mode |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CScrollingTextBox, and NXWidgets::CTextBox.
|
pure virtual |
Enables/disables cursor wrapping
| wrap | True enables cursor wrapping |
Implemented in NXWidgets::CMultiLineTextBox, NXWidgets::CScrollingTextBox, and NXWidgets::CTextBox.
1.8.13