Represents a text.
More...
#include <text.h>
|
| Text (const char *text=0, int32_t start=0, int32_t length=0) |
| Constructor. More...
|
|
virtual | ~Text () |
| Destructor. More...
|
|
bool | isPrintable () const |
| Tells whether the Text can be represented as a string. More...
|
|
std::string | getAsString () const |
| Gets the string, encoded as UTF-8. More...
|
|
int32_t | getStart () const |
| Gets the start point of the text edit event, cursor position. More...
|
|
int32_t | getLength () const |
| Gets the length of the text edit event, the number of characters to edit from the start point. More...
|
|
Represents a text.
Definition at line 40 of file text.h.
◆ Text()
FIFE::Text::Text |
( |
const char * |
text = 0 , |
|
|
int32_t |
start = 0 , |
|
|
int32_t |
length = 0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
text | pointer to the UTF-8 text |
start | point of the text edit event |
length | length of the text edit event |
Definition at line 48 of file text.h.
◆ ~Text()
virtual FIFE::Text::~Text |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 55 of file text.h.
◆ getAsString()
std::string FIFE::Text::getAsString |
( |
| ) |
const |
|
inline |
Gets the string, encoded as UTF-8.
Definition at line 68 of file text.h.
References m_text.
◆ getLength()
int32_t FIFE::Text::getLength |
( |
| ) |
const |
|
inline |
Gets the length of the text edit event, the number of characters to edit from the start point.
Definition at line 81 of file text.h.
References m_length.
◆ getStart()
int32_t FIFE::Text::getStart |
( |
| ) |
const |
|
inline |
Gets the start point of the text edit event, cursor position.
Definition at line 74 of file text.h.
References m_start.
◆ isPrintable()
bool FIFE::Text::isPrintable |
( |
| ) |
const |
|
inline |
Tells whether the Text can be represented as a string.
Definition at line 59 of file text.h.
References m_text.
◆ m_length
int32_t FIFE::Text::m_length |
|
private |
◆ m_start
int32_t FIFE::Text::m_start |
|
private |
◆ m_text
std::string FIFE::Text::m_text |
|
private |
The documentation for this class was generated from the following file:
- engine/core/eventchannel/text/text.h