|
Wt
4.13.1
|
A value class that defines a text. More...
#include <Wt/WTextF.h>
Public Member Functions | |
| WTextF () | |
| Default constructor. | |
| WTextF (const WString &text) | |
| Construct text from WString. | |
| WTextF (const char *text) | |
| Construct text from string. | |
| WTextF (const std::string &text) | |
| Construct text from string. | |
| WTextF & | operator= (const WTextF &other) |
| Internal assign method. | |
| bool | operator== (const WTextF &other) const |
| Comparison operator. | |
| bool | empty () const |
| Returns whether the text is empty or not. | |
| void | setText (const WString &text) |
| Sets the content of the text. | |
| WString | text () const |
| Returns the content of the text. | |
| std::string | jsValue () const override |
| Returns a JavaScript representation of the value of this object. | |
| operator WString () const | |
| Convert WTextF to WString. | |
Public Member Functions inherited from Wt::WJavaScriptExposableObject | |
| bool | isJavaScriptBound () const |
| Returns whether this object is JavaScript bound. | |
| std::string | jsRef () const |
| Returns a JavaScript reference to this object. | |
A value class that defines a text.
The text is defined by a string.
A WTextF is JavaScript exposable. If a WTextF is JavaScript bound, it can be accessed in your custom JavaScript code through its handle's jsRef(). A text is represented in JavaScript as a string.
| Wt::WTextF::WTextF | ( | ) |
|
overridevirtual |
Returns a JavaScript representation of the value of this object.
Implements Wt::WJavaScriptExposableObject.
| Wt::WTextF::operator WString | ( | ) | const |
| WException | if the text is JavaScript bound |
Sets the content of the text.
| WException | if the text is JavaScript bound |