ttx 0.1.0
Loading...
Searching...
No Matches
ttx::MouseEvent Class Reference

#include </home/runner/work/ttx/ttx/lib/include/ttx/mouse_event.h>

Public Member Functions

constexpr MouseEvent (MouseEventType type, MouseButton button, MousePosition const &position={}, Modifiers modifiers=Modifiers::None)
 
constexpr auto type () const -> MouseEventType
 
constexpr auto button () const -> MouseButton
 
constexpr auto position () const -> MousePosition const &
 
constexpr auto modifiers () const -> Modifiers
 
constexpr auto is_vertical_scroll () const -> bool
 
constexpr auto translate (MouseCoordinate offset_in_cells, dius::tty::WindowSize const &size) const -> MouseEvent
 
auto operator== (MouseEvent const &) const -> bool=default
 

Static Public Member Functions

static constexpr auto press (MouseButton button, MousePosition const &position={}, Modifiers modifiers=Modifiers::None) -> MouseEvent
 

Friends

constexpr friend auto tag_invoke (di::Tag< di::reflect >, di::InPlaceType< MouseEvent >)
 

Constructor & Destructor Documentation

◆ MouseEvent()

ttx::MouseEvent::MouseEvent ( MouseEventType type,
MouseButton button,
MousePosition const & position = {},
Modifiers modifiers = Modifiers::None )
inlineconstexpr

Member Function Documentation

◆ button()

auto ttx::MouseEvent::button ( ) const -> MouseButton
inlineconstexpr

◆ is_vertical_scroll()

auto ttx::MouseEvent::is_vertical_scroll ( ) const -> bool
inlineconstexpr

◆ modifiers()

auto ttx::MouseEvent::modifiers ( ) const -> Modifiers
inlineconstexpr

◆ operator==()

auto ttx::MouseEvent::operator== ( MouseEvent const & ) const -> bool=default
default

◆ position()

auto ttx::MouseEvent::position ( ) const -> MousePosition const&
inlineconstexpr

◆ press()

static constexpr auto ttx::MouseEvent::press ( MouseButton button,
MousePosition const & position = {},
Modifiers modifiers = Modifiers::None ) -> MouseEvent
inlinestaticconstexpr

◆ translate()

auto ttx::MouseEvent::translate ( MouseCoordinate offset_in_cells,
dius::tty::WindowSize const & size ) const -> MouseEvent
inlineconstexpr

◆ type()

auto ttx::MouseEvent::type ( ) const -> MouseEventType
inlineconstexpr

Friends And Related Symbol Documentation

◆ tag_invoke

friend auto tag_invoke ( di::Tag< di::reflect > ,
di::InPlaceType< MouseEvent >  )
friend

The documentation for this class was generated from the following file: