3#include "terminalpp/point.hpp"
4#include "terminalpp/virtual_key.hpp"
9namespace terminalpp::mouse {
11enum class button :
byte
28enum class event_type :
byte
47 event_type action_ = event_type::no_button_change;
54 button button_ = button::none;
55 std::optional<std::uint16_t> button_code_;
56 terminalpp::vk_modifier modifiers_ = terminalpp::vk_modifier::none;
57 bool is_motion_ =
false;
58 bool is_release_ =
false;
A structure representing an ANSI graphics effect (e.g. intensity, underlining)
Definition effect.hpp:27
A structure that encapsulates a mouse event.
Definition mouse.hpp:43
point position_
The position of the mouse in this event.
Definition mouse.hpp:52
constexpr friend auto operator<=>(event const &lhs, event const &rhs) noexcept=default
Relational operators for events.
A class that represents a position in space.
Definition point.hpp:17