HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Friends
tt::mouse_event Struct Reference

Public Types

enum class  Type {
  None , Entered , Exited , Move ,
  Drag , ButtonDown , ButtonUp , Wheel
}
 

Public Member Functions

vector2 delta () const noexcept
 Get the location of the mouse relative to the start of a drag.
 

Static Public Member Functions

static mouse_event entered (point2 position={}) noexcept
 
static mouse_event exited () noexcept
 

Data Fields

Type type
 
std::chrono::utc_time< std::chrono::nanosecondstimePoint
 
point2 position
 The current position of the mouse pointer.
 
point2 downPosition
 The position the last time a button was pressed.
 
vector2 wheelDelta
 Change in wheel rotation, in pixels.
 
mouse_buttons cause
 Buttons which has caused this event.
 
mouse_buttons down
 Buttons that are pressed/held down.
 
int clickCount
 Number of clicks from the last button clicked.
 

Friends

mouse_event operator* (geo::transformer auto const &transform, mouse_event const &rhs) noexcept
 
std::string to_string (mouse_event const &rhs) noexcept
 
std::ostreamoperator<< (std::ostream &lhs, mouse_event const &rhs)
 

Member Function Documentation

◆ delta()

vector2 tt::mouse_event::delta ( ) const
inlinenoexcept

Get the location of the mouse relative to the start of a drag.

Field Documentation

◆ cause

mouse_buttons tt::mouse_event::cause

Buttons which has caused this event.

◆ clickCount

int tt::mouse_event::clickCount

Number of clicks from the last button clicked.

◆ down

mouse_buttons tt::mouse_event::down

Buttons that are pressed/held down.

◆ downPosition

point2 tt::mouse_event::downPosition

The position the last time a button was pressed.

◆ position

point2 tt::mouse_event::position

The current position of the mouse pointer.

◆ wheelDelta

vector2 tt::mouse_event::wheelDelta

Change in wheel rotation, in pixels.


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