FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
mouse.hpp
Go to the documentation of this file.
1// 版權所有 2020 Arthur Sonzogni. 保留所有權利。
2// 本原始碼的使用受 MIT 授權條款約束,詳情請參閱
3// LICENSE 文件。
4#ifndef FTXUI_COMPONENT_MOUSE_HPP
5#define FTXUI_COMPONENT_MOUSE_HPP
6namespace ftxui {
7
8/// @brief 滑鼠事件。它包含滑鼠的座標、按下的按鈕
9/// 以及修飾鍵(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, /// 僅支援的終端機。
20 WheelRight = 7, /// 僅支援的終端機。
21 };
22
23 enum Motion {
26 Moved = 2,
27 };
28
29 // 按鈕
31
32 // 動作
34
35 // 修飾鍵:
36 bool shift = false;
37 bool meta = false;
38 bool control = false;
39
40 // 座標:
41 int x = 0;
42 int y = 0;
43};
44
45} // namespace ftxui
46
47#endif /* end of include guard: FTXUI_COMPONENT_MOUSE_HPP */
@ WheelRight
僅支援的終端機。
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
滑鼠事件。它包含滑鼠的座標、按下的按鈕 以及修飾鍵(shift、ctrl、meta)。
Definition mouse.hpp:11
FTXUI 的 ftxui:: 命名空間
Definition animation.hpp:10