Lugdunum  0.1.0
Public Attributes | List of all members
lug::Window::MouseEvent Struct Reference

Represents a mouse event. More...

#include <Event.hpp>

Collaboration diagram for lug::Window::MouseEvent:
[legend]

Public Attributes

union {
   Mouse::Button   code
 The button that triggered the event. More...
 
   struct {
      double   xOffset
 
      double   yOffset
 
   }   scrollOffset
 The distance in x and y that the scroll wheel has traveled. More...
 
}; 
 
struct {
   int32_t   x
 
   int32_t   y
 
coord
 The mouse coordinate if the event was triggered by movement. More...
 
bool ctrl
 True if ctrl was pressed, False otherwise. More...
 
bool shift
 True if shift was pressed, False otherwise. More...
 
bool left
 True if left mouse button was pressed, False otherwise. More...
 
bool right
 True if right mouse button was pressed, False otherwise. More...
 
bool middle
 True if middle mouse button was pressed, False otherwise. More...
 
bool x1
 True if extra 1 mouse button was pressed, False otherwise. More...
 
bool x2
 True if extra 2 mouse button was pressed, False otherwise. More...
 

Detailed Description

Represents a mouse event.

Definition at line 28 of file Event.hpp.

Member Data Documentation

◆ code

Mouse::Button lug::Window::MouseEvent::code

The button that triggered the event.

Definition at line 31 of file Event.hpp.

◆ xOffset

double lug::Window::MouseEvent::xOffset

Definition at line 34 of file Event.hpp.

◆ yOffset

double lug::Window::MouseEvent::yOffset

Definition at line 35 of file Event.hpp.

◆ scrollOffset

struct { ... } lug::Window::MouseEvent::scrollOffset

The distance in x and y that the scroll wheel has traveled.

◆ @26

union { ... }

◆ x

int32_t lug::Window::MouseEvent::x

Definition at line 40 of file Event.hpp.

◆ y

int32_t lug::Window::MouseEvent::y

Definition at line 41 of file Event.hpp.

◆ coord

struct { ... } lug::Window::MouseEvent::coord

The mouse coordinate if the event was triggered by movement.

◆ ctrl

bool lug::Window::MouseEvent::ctrl

True if ctrl was pressed, False otherwise.

Definition at line 44 of file Event.hpp.

◆ shift

bool lug::Window::MouseEvent::shift

True if shift was pressed, False otherwise.

Definition at line 45 of file Event.hpp.

◆ left

bool lug::Window::MouseEvent::left

True if left mouse button was pressed, False otherwise.

Definition at line 46 of file Event.hpp.

◆ right

bool lug::Window::MouseEvent::right

True if right mouse button was pressed, False otherwise.

Definition at line 47 of file Event.hpp.

◆ middle

bool lug::Window::MouseEvent::middle

True if middle mouse button was pressed, False otherwise.

Definition at line 48 of file Event.hpp.

◆ x1

bool lug::Window::MouseEvent::x1

True if extra 1 mouse button was pressed, False otherwise.

Definition at line 49 of file Event.hpp.

◆ x2

bool lug::Window::MouseEvent::x2

True if extra 2 mouse button was pressed, False otherwise.

Definition at line 50 of file Event.hpp.


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