utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
utility::event::TextInputEvent Class Reference

Text input event for committed UTF-8 text. More...

#include <headers/utility/event/text_input_event.hpp>

Inheritance diagram for utility::event::TextInputEvent:
Collaboration diagram for utility::event::TextInputEvent:

Classes

class  Factory
 Factory for creating TextInputEvent instances. More...
 

Public Member Functions

 TextInputEvent (void)
 Default constructor.
 
 ~TextInputEvent (void) override
 Default destructor.
 
TextInputEventsetText (const std::string &text)
 Set committed UTF-8 text.
 
std::string getText (void) const
 Get committed UTF-8 text.
 
- Public Member Functions inherited from utility::event::Event
 Event (void)=default
 Default constructor.
 
virtual ~Event (void)=default
 Virtual destructor.
 

Detailed Description

Text input event for committed UTF-8 text.

Definition at line 36 of file text_input_event.hpp.

Member Function Documentation

◆ getText()

std::string utility::event::TextInputEvent::getText ( void  ) const

Get committed UTF-8 text.

Returns
The committed text.

Definition at line 51 of file text_input_event.cpp.

◆ setText()

TextInputEvent & utility::event::TextInputEvent::setText ( const std::string &  text)

Set committed UTF-8 text.

Parameters
textThe committed text.
Returns
Reference to this TextInputEvent for method chaining.

Definition at line 45 of file text_input_event.cpp.


The documentation for this class was generated from the following files: