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

Public Types

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

Static Public Member Functions

static MouseEvent entered (vec position=vec::point(0.0f, 0.0f)) noexcept
 
static MouseEvent exited () noexcept
 

Data Fields

Type type
 
hires_utc_clock::time_point timePoint
 
vec position
 The current position of the mouse pointer.
 
vec downPosition
 The position the last time a button was pressed.
 
MouseButtons cause
 Buttons which has caused this event.
 
MouseButtons down
 Buttons that are pressed/held down.
 
int clickCount
 Number of clicks from the last button clicked.
 

Friends

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

Field Documentation

◆ cause

MouseButtons tt::MouseEvent::cause

Buttons which has caused this event.

◆ clickCount

int tt::MouseEvent::clickCount

Number of clicks from the last button clicked.

◆ down

MouseButtons tt::MouseEvent::down

Buttons that are pressed/held down.

◆ downPosition

vec tt::MouseEvent::downPosition

The position the last time a button was pressed.

◆ position

vec tt::MouseEvent::position

The current position of the mouse pointer.


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