galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::KeyInput Struct Referencefinal

Unicode text data from a textinput event. More...

#include <KeyInput.hpp>

+ Inheritance diagram for galaxy::KeyInput:
+ Collaboration diagram for galaxy::KeyInput:

Public Member Functions

 KeyInput (std::string &&text) noexcept
 Constructor.
 
- Public Member Functions inherited from galaxy::Event
 Event () noexcept
 Constructor.
 
 Event (Event &&) noexcept
 Move constructor.
 
Eventoperator= (Event &&) noexcept
 Move assignment operator.
 
 Event (const Event &) noexcept
 Copy constructor.
 
Eventoperator= (const Event &) noexcept
 Copy assignment operator.
 
virtual ~Event () noexcept
 Destructor.
 
void consume () noexcept
 Mark this event as consumed.
 
bool consumed () const noexcept
 Is this event already consumed?
 

Public Attributes

std::string m_text
 Text.
 

Additional Inherited Members

- Protected Attributes inherited from galaxy::Event
bool m_handled
 Keeps track if event has been used already.
 

Detailed Description

Unicode text data from a textinput event.

Definition at line 20 of file KeyInput.hpp.

Constructor & Destructor Documentation

◆ KeyInput()

galaxy::KeyInput::KeyInput ( std::string && text)
noexcept

Constructor.

Parameters
textInput text.

Definition at line 12 of file KeyInput.cpp.

Member Data Documentation

◆ m_text

std::string galaxy::KeyInput::m_text

Text.

Definition at line 32 of file KeyInput.hpp.


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