ttx 0.1.0
Loading...
Searching...
No Matches
mouse_event_io.h File Reference
#include "di/reflect/prelude.h"
#include "dius/tty.h"
#include "ttx/key_event_io.h"
#include "ttx/mouse.h"
#include "ttx/mouse_event.h"
#include "ttx/params.h"

Go to the source code of this file.

Classes

struct  ttx::MouseScrollProtocol
 

Namespaces

namespace  ttx
 

Enumerations

enum class  ttx::AlternateScrollMode { ttx::Disabled , ttx::Enabled }
 
enum class  ttx::MouseProtocol {
  ttx::None = 0 , ttx::X10 = 9 , ttx::VT200 = 1000 , ttx::BtnEvent = 1002 ,
  ttx::AnyEvent = 1003
}
 
enum class  ttx::MouseEncoding {
  ttx::X10 = 9 , ttx::UTF8 = 1005 , ttx::SGR = 1006 , ttx::URXVT = 1015 ,
  ttx::SGRPixels = 1016
}
 

Functions

constexpr auto ttx::tag_invoke (di::Tag< di::reflect >, di::InPlaceType< AlternateScrollMode >)
 
constexpr auto ttx::tag_invoke (di::Tag< di::reflect >, di::InPlaceType< MouseProtocol >)
 
constexpr auto ttx::tag_invoke (di::Tag< di::reflect >, di::InPlaceType< MouseEncoding >)
 
auto ttx::serialize_mouse_event (MouseEvent const &event, MouseProtocol protocol, MouseEncoding encoding, di::Optional< MousePosition > prev_event_position, MouseScrollProtocol const &scroll_protocol, dius::tty::WindowSize const &window_size) -> di::Optional< di::TransparentString >
 
auto ttx::mouse_event_from_csi (CSI const &csi, di::Optional< dius::tty::WindowSize > window_size_if_using_pixels={}) -> di::Optional< MouseEvent >