FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
mouse.hpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. Todos los derechos reservados.
2// El uso de este código fuente se rige por la licencia MIT que se puede encontrar en
3// el archivo LICENSE.
4#ifndef FTXUI_COMPONENT_MOUSE_HPP
5#define FTXUI_COMPONENT_MOUSE_HPP
6namespace ftxui {
7
8/// @brief Un evento del ratón. Contiene las coordenadas del ratón, el botón
9/// presionado y el modificador (shift, ctrl, meta).
10/// @ingroup component
11struct Mouse {
12 enum Button {
13 Left = 0,
14 Middle = 1,
15 Right = 2,
16 None = 3,
19 WheelLeft = 6, /// Solo terminales compatibles.
20 WheelRight = 7, /// Solo terminales compatibles.
21 };
22
23 enum Motion {
26 Moved = 2,
27 };
28
29 // Botón
31
32 // Movimiento
34
35 // Modificadores:
36 bool shift = false;
37 bool meta = false;
38 bool control = false;
39
40 // Coordenadas:
41 int x = 0;
42 int y = 0;
43};
44
45} // namespace ftxui
46
47#endif /* fin de la guarda de inclusión: FTXUI_COMPONENT_MOUSE_HPP */
@ WheelRight
Solo terminales compatibles.
Definition mouse.hpp:20
bool meta
Definition mouse.hpp:37
Button button
Definition mouse.hpp:30
bool shift
Definition mouse.hpp:36
bool control
Definition mouse.hpp:38
Motion motion
Definition mouse.hpp:33
Un evento del ratón. Contiene las coordenadas del ratón, el botón presionado y el modificador (shift,...
Definition mouse.hpp:11
El espacio de nombres ftxui:: de FTXUI.
Definition animation.hpp:10