4#ifndef INCLUDE_FIFECHAN_TEXTINPUTEVENT_HPP_
5#define INCLUDE_FIFECHAN_TEXTINPUTEVENT_HPP_
13#include "fifechan/platform.hpp"
16#include "fifechan/events/inputevent.hpp"
41 enum class Type : std::uint8_t
63 bool isControlPressed,
67 Type type = Type::Input);
74 std::string
const & getText()
const;
Text input event for IME (input method editor) composition, dead keys, and pasted text.
@ Input
Text was input (SDL_EVENT_TEXT_INPUT).
Type mType
The type of text event.
std::string mText
The UTF-8 text.
TextInputEvent(Widget *source, Widget *distributor, bool isShiftPressed, bool isControlPressed, bool isAltPressed, bool isMetaPressed, std::string text, Type type=Type::Input)
Constructor.
Used replacement tokens by configure_file():