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

Represents an event. More...

#include <Event.hpp>

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

Public Types

enum  Type : uint32_t {
  Type::Close, Type::Destroy, Type::Resize, Type::KeyPressed,
  Type::KeyReleased, Type::CharEntered, Type::ButtonPressed, Type::ButtonReleased,
  Type::MouseMoved, Type::MouseWheel, Type::MouseLeave, Type::MouseEnter,
  Type::GamePadChange, Type::TouchScreenChange
}
 

Public Attributes

Type type
 The type of the event. More...
 
union {
   KeyEvent   key
 A KeyEvent. More...
 
   CharEvent   character
 A CharEvent. More...
 
   MouseEvent   mouse
 A MouseEvent. More...
 
   GamePadEvent   gamePad
 
   TouchScreenEvent   touchScreen
 
}; 
 

Detailed Description

Represents an event.

Definition at line 89 of file Event.hpp.

Member Enumeration Documentation

◆ Type

enum lug::Window::Event::Type : uint32_t
strong

Type of event

Enumerator
Close 

Window close event.

Destroy 

Window destroy event.

Resize 

Window resize event.

KeyPressed 

KeyPressed event.

KeyReleased 

KeyReleased event.

CharEntered 

CharEntered event.

ButtonPressed 

ButtonPressed event.

ButtonReleased 

ButtonReleased event.

MouseMoved 

MouseMoved event.

MouseWheel 

MouseWheelRotated event.

MouseLeave 

Mouse left window event.

MouseEnter 

Mouse entered window event.

GamePadChange 
TouchScreenChange 

Definition at line 93 of file Event.hpp.

Member Data Documentation

◆ type

Type lug::Window::Event::type

The type of the event.

Definition at line 110 of file Event.hpp.

◆ key

KeyEvent lug::Window::Event::key

A KeyEvent.

Definition at line 116 of file Event.hpp.

◆ character

CharEvent lug::Window::Event::character

A CharEvent.

Definition at line 117 of file Event.hpp.

◆ mouse

MouseEvent lug::Window::Event::mouse

A MouseEvent.

Definition at line 118 of file Event.hpp.

◆ gamePad

GamePadEvent lug::Window::Event::gamePad

Definition at line 119 of file Event.hpp.

◆ touchScreen

TouchScreenEvent lug::Window::Event::touchScreen

Definition at line 120 of file Event.hpp.

◆ @30

union { ... }

Value of the event


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