#include <utextwidget.hpp>
Inheritance diagram for ufo::UTextWidget:
Public Member Functions | |
UTextWidget () | |
UTextWidget (const std::string &text) | |
void | setContentType (const std::string &type) |
std::string | getContentType () const |
void | setDocument (UDocument *documentA) |
UDocument * | getDocument () const |
UTextLayout * | getTextLayout () const |
virtual void | cut () |
virtual void | copy () |
virtual void | paste () |
virtual void | setText (const std::string &textA) |
virtual std::string | getText () const |
void | setCaretPosition (unsigned int positionA) |
void | moveCaretPosition (unsigned int positionA) |
UCaret * | getCaret () const |
void | setColumns (unsigned int columnsA) |
unsigned int | getColumns () const |
void | setRows (unsigned int rowsA) |
unsigned int | getRows () const |
virtual void | validateSelf () |
virtual void | processMouseEvent (UMouseEvent *e) |
virtual UDimension | getContentsSize (const UDimension &maxSize) const |
virtual std::streambuf * | rdbuf () |
int | overflow (int c) |
UTextWidget & | operator<< (const std::string &str) |
UTextWidget & | operator<< (int i) |
UTextWidget & | operator<< (long i) |
UTextWidget & | operator<< (float f) |
UTextWidget & | operator<< (double d) |
UTextWidget & | operator<< (const char *cstr) |
Protected Member Functions | |
UTextModel * | getTextModel () const |
void | docChanged (UDocument *, unsigned int, unsigned int, unsigned int) |
Static Protected Attributes | |
std::string | m_textBuffer |
|
Creates a new multi line text widget |
|
Creates a text widget with initial text
|
|
copies the selected text to the internal text clipboard |
|
cuts the selected text to the internal text clipboard |
|
Returns the entire plain text of the document. |
|
moves the caret to the new position leaving a mark at the old position Reimplemented in ufo::UTextEdit.
|
|
pastes from the internal clipboard to selection |
|
Processes focus events. Primarily, it is used to notify listeners. Reimplemented from ufo::UWidget.
Reimplemented in ufo::UTextEdit.
|
|
Returns a std stream buffer wich can be used to redirect std::cout |
|
Reimplemented in ufo::UTextEdit.
|
|
Sets the preferred numer of columns. If set to 0, a variable size depending on the current text is used. |
|
Sets the content type. This may change the document class. So far, only plain text documents are supported. |
|
Sets the document object for this text widget. If you want to manipulate the text content directly, you must get an instance of UDocument with getDocument()
|
|
Sets the preferred numer of rows. If set to 0, a variable size depending on the current text is used. |
|
Sets the text of this text widget. |
|
an internal text clipboard |