4#ifndef FTXUI_COMPONENT_EVENT_HPP
5#define FTXUI_COMPONENT_EVENT_HPP
13class ScreenInteractive;
33 static Event Character(
char);
34 static Event Character(
wchar_t);
67 static const Event F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12;
105 const std::string&
input()
const {
return input_; }
110 bool is_mouse()
const {
return type_ == Type::Mouse; }
137 Type type_ = Type::Unknown;
static const Event TabReverse
static const Event ArrowLeftCtrl
std::string character() const
static const Event CtrlAltX
static const Event CtrlAltN
static const Event CtrlAltC
static const Event PageUp
static const Event CtrlAltF
static const Event Escape
static const Event CtrlAltI
static Event CursorPosition(std::string_view, int x, int y)
bool is_cursor_position() const
static const Event CtrlAltP
static const Event CtrlAltE
static const Event CtrlAltJ
static const Event CtrlAltH
ScreenInteractive * screen_
static const Event CtrlAltW
static Event Special(std::string_view)
An custom event whose meaning is defined by the user of the library.
static const Event CtrlAltO
static const Event Custom
static Event Character(std::string_view)
An event corresponding to a given typed character.
bool operator<(const Event &other) const
std::string DebugString() const
Return a string representation of the event.
static const Event CtrlAltM
static const Event Backspace
static const Event CtrlAltR
static const Event ArrowUp
const std::string & input() const
static const Event CtrlAltZ
static const Event ArrowDown
static const Event CtrlAltY
static const Event CtrlAltL
static Event CursorShape(std::string_view, int shape)
An event corresponding to a terminal DCS (Device Control String).
static const Event ArrowUpCtrl
static const Event CtrlAltS
static const Event PageDown
static const Event CtrlAltK
static const Event CtrlAltG
static const Event Return
static const Event CtrlAltU
bool operator==(const Event &other) const
static const Event CtrlAltT
static const Event CtrlAltA
static const Event ArrowLeft
static const Event CtrlAltB
bool operator!=(const Event &other) const
bool is_character() const
static const Event Delete
static const Event CtrlAltV
static const Event ArrowDownCtrl
static const Event CtrlAltD
static const Event Insert
static const Event ArrowRightCtrl
bool is_cursor_shape() const
static const Event CtrlAltQ
static const Event ArrowRight
It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...
ScreenInteractive is a Screen that can handle events, run a main loop, and manage components.
Represent an event. It can be key press event, a terminal resize, or more ...
A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift,...
The FTXUI ftxui:: namespace.