API Documentation
Loading...
Searching...
No Matches
MouseEvent Class Reference

#include <Event.h>

Inheritance diagram for MouseEvent:
[legend]
Collaboration diagram for MouseEvent:
[legend]

Public Types

enum  MouseClickType { e_right_button , e_center_button , e_left_button , none }
 
enum  MouseEventType {
  e_mouse_clicked , e_mouse_dragged , e_mouse_entered , e_mouse_exited ,
  e_mouse_moved , e_mouse_pressed , e_mouse_released , e_mouse_scrolled ,
  e_touch_zoomed
}
 

Public Member Functions

 MouseEvent ()
 
 MouseEvent (WindowInstance *instance)
 
bool operator== (const MouseEvent &other) const
 

Public Attributes

MouseClickType click_type = MouseClickType::none
 
Vector< 2, fltp04distance_scrolled = Constant<Vector<2, fltp04>>::Invalid
 
Vector< 2, fltp04event_location = Constant<Vector<2, fltp04>>::Invalid
 
MouseEventType event_type = MouseEventType::e_mouse_exited
 
uint01 key_modifier = 0
 
uint01 number_of_clicks = 0
 
Vector< 2, fltp04prev_location = Constant<Vector<2, fltp04>>::Invalid
 
WindowInstance * window_instance
 

Member Enumeration Documentation

◆ MouseClickType

Enumerator
e_right_button 
e_center_button 
e_left_button 
none 

◆ MouseEventType

Enumerator
e_mouse_clicked 
e_mouse_dragged 
e_mouse_entered 
e_mouse_exited 
e_mouse_moved 
e_mouse_pressed 
e_mouse_released 
e_mouse_scrolled 
e_touch_zoomed 

Constructor & Destructor Documentation

◆ MouseEvent() [1/2]

MouseEvent ( )
inline

◆ MouseEvent() [2/2]

MouseEvent ( WindowInstance * instance)
inline

Member Function Documentation

◆ operator==()

bool operator== ( const MouseEvent & other) const
inline

Member Data Documentation

◆ click_type

◆ distance_scrolled

Vector<2, fltp04> distance_scrolled = Constant<Vector<2, fltp04>>::Invalid

◆ event_location

Vector<2, fltp04> event_location = Constant<Vector<2, fltp04>>::Invalid

◆ event_type

◆ key_modifier

uint01 key_modifier = 0

◆ number_of_clicks

uint01 number_of_clicks = 0

◆ prev_location

Vector<2, fltp04> prev_location = Constant<Vector<2, fltp04>>::Invalid

◆ window_instance

WindowInstance* window_instance

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