Lugdunum  0.1.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ndk_helper::DragDetector Class Reference

#include <gestureDetector.hpp>

Inheritance diagram for ndk_helper::DragDetector:
[legend]
Collaboration diagram for ndk_helper::DragDetector:
[legend]

Public Member Functions

 DragDetector ()
 
virtual ~DragDetector ()
 
virtual GESTURE_STATE Detect (const AInputEvent *event)
 
bool GetPointer (lug::Math::Vec2f &v)
 
- Public Member Functions inherited from ndk_helper::GestureDetector
 GestureDetector ()
 
virtual ~GestureDetector ()
 
virtual void SetConfiguration (AConfiguration *config)
 

Private Member Functions

int32_t FindIndex (const AInputEvent *event, int32_t id)
 

Private Attributes

const AInputEvent * event_
 
std::vector< int32_t > vec_pointers_
 

Additional Inherited Members

- Protected Attributes inherited from ndk_helper::GestureDetector
float dp_factor_
 

Detailed Description

Definition at line 120 of file gestureDetector.hpp.

Constructor & Destructor Documentation

◆ DragDetector()

ndk_helper::DragDetector::DragDetector ( )
inline

Definition at line 127 of file gestureDetector.hpp.

◆ ~DragDetector()

virtual ndk_helper::DragDetector::~DragDetector ( )
inlinevirtual

Definition at line 128 of file gestureDetector.hpp.

Member Function Documentation

◆ FindIndex()

int32_t ndk_helper::DragDetector::FindIndex ( const AInputEvent *  event,
int32_t  id 
)
private

Definition at line 203 of file gestureDetector.cpp.

◆ Detect()

GESTURE_STATE ndk_helper::DragDetector::Detect ( const AInputEvent *  event)
virtual

Implements ndk_helper::GestureDetector.

Definition at line 211 of file gestureDetector.cpp.

◆ GetPointer()

bool ndk_helper::DragDetector::GetPointer ( lug::Math::Vec2f &  v)

Definition at line 270 of file gestureDetector.cpp.

Member Data Documentation

◆ event_

const AInputEvent* ndk_helper::DragDetector::event_
private

Definition at line 123 of file gestureDetector.hpp.

◆ vec_pointers_

std::vector<int32_t> ndk_helper::DragDetector::vec_pointers_
private

Definition at line 124 of file gestureDetector.hpp.


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