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

#include <Event.hpp>

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

Public Types

enum  GestureState : int32_t {
  GestureState::None = 0, GestureState::Start = 1, GestureState::Move = 2, GestureState::End = 4,
  GestureState::Action = Start | End
}
 

Public Attributes

lug::Math::Vec2f coordinates [2]
 The Touch coordinate. More...
 
GestureState state
 
bool drag
 
bool pinch
 True if a pinch event occured, False otherwise. More...
 
bool doubleTap
 True if a double tap event occured, False otherwise. More...
 

Detailed Description

Definition at line 58 of file Event.hpp.

Member Enumeration Documentation

◆ GestureState

Type of TouchScreen event state Use same enum type as ndk_helper::GESTURE_STATE because we cast it to TouchScreenEvent::GestureState

Enumerator
None 
Start 
Move 
End 
Action 

Definition at line 65 of file Event.hpp.

Member Data Documentation

◆ coordinates

lug::Math::Vec2f lug::Window::TouchScreenEvent::coordinates[2]

The Touch coordinate.

Definition at line 59 of file Event.hpp.

◆ state

GestureState lug::Window::TouchScreenEvent::state

Definition at line 73 of file Event.hpp.

◆ drag

bool lug::Window::TouchScreenEvent::drag

Definition at line 74 of file Event.hpp.

◆ pinch

bool lug::Window::TouchScreenEvent::pinch

True if a pinch event occured, False otherwise.

Definition at line 75 of file Event.hpp.

◆ doubleTap

bool lug::Window::TouchScreenEvent::doubleTap

True if a double tap event occured, False otherwise.

Definition at line 76 of file Event.hpp.


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