|
utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
Text editing event for IME/dead-key preedit state. More...
#include <headers/utility/event/text_editing_event.hpp>


Classes | |
| class | Factory |
| Factory for creating TextEditingEvent instances. More... | |
Public Member Functions | |
| TextEditingEvent (void) | |
| Default constructor. | |
| ~TextEditingEvent (void) override | |
| Default destructor. | |
| TextEditingEvent & | setText (const std::string &text) |
| Set preedit UTF-8 text. | |
| std::string | getText (void) const |
| Get preedit UTF-8 text. | |
| TextEditingEvent & | setStart (const int start) noexcept |
| Set cursor start position in preedit text. | |
| int | getStart (void) const noexcept |
| Get cursor start position in preedit text. | |
| TextEditingEvent & | setLength (const int length) noexcept |
| Set selection length in preedit text. | |
| int | getLength (void) const noexcept |
| Get selection length in preedit text. | |
Public Member Functions inherited from utility::event::Event | |
| Event (void)=default | |
| Default constructor. | |
| virtual | ~Event (void)=default |
| Virtual destructor. | |
Text editing event for IME/dead-key preedit state.
Definition at line 36 of file text_editing_event.hpp.
|
noexcept |
Get selection length in preedit text.
Definition at line 73 of file text_editing_event.cpp.
|
noexcept |
Get cursor start position in preedit text.
Definition at line 62 of file text_editing_event.cpp.
| std::string utility::event::TextEditingEvent::getText | ( | void | ) | const |
Get preedit UTF-8 text.
Definition at line 51 of file text_editing_event.cpp.
|
noexcept |
Set selection length in preedit text.
| length | Selection length. |
Definition at line 67 of file text_editing_event.cpp.
|
noexcept |
Set cursor start position in preedit text.
| start | Cursor start position. |
Definition at line 56 of file text_editing_event.cpp.
| TextEditingEvent & utility::event::TextEditingEvent::setText | ( | const std::string & | text | ) |
Set preedit UTF-8 text.
| text | The preedit text. |
Definition at line 45 of file text_editing_event.cpp.