28#include "utility/event/event.hpp"
30namespace utility::event
54 std::shared_ptr<Event>
create(
void)
const override;
61 std::shared_ptr<TextInputEvent>
createTyped(
void)
const;
85 std::string
getText(
void)
const;
Abstract factory interface for creating events.
Base class for events in the event system.
Factory for creating TextInputEvent instances.
std::shared_ptr< Event > create(void) const override
Create a TextInputEvent as a base Event pointer.
std::shared_ptr< TextInputEvent > createTyped(void) const
Create a strongly-typed TextInputEvent.
Text input event for committed UTF-8 text.
TextInputEvent & setText(const std::string &text)
Set committed UTF-8 text.
~TextInputEvent(void) override
Default destructor.
std::string getText(void) const
Get committed UTF-8 text.
TextInputEvent(void)
Default constructor.