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. 全著作権所有。
2// このソースコードの使用は、MITライセンスによって管理されています。
3// ライセンスファイルに記載されています。
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 /* インクルードガードの終わり: 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:9