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

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

Static Public Member Functions

static mouse_event entered (f32x4 position=f32x4::point({0.0f, 0.0f})) noexcept
 
static mouse_event exited () noexcept
 

Data Fields

Type type
 
hires_utc_clock::time_point timePoint
 
f32x4 position
 The current position of the mouse pointer.
 
f32x4 downPosition
 The position the last time a button was pressed.
 
f32x4 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

std::string to_string (mouse_event const &rhs) noexcept
 
std::ostreamoperator<< (std::ostream &lhs, mouse_event const &rhs)
 

Member Function Documentation

◆ delta()

f32x4 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

f32x4 tt::mouse_event::downPosition

The position the last time a button was pressed.

◆ position

f32x4 tt::mouse_event::position

The current position of the mouse pointer.

◆ wheelDelta

f32x4 tt::mouse_event::wheelDelta

Change in wheel rotation, in pixels.


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