载入中...
搜索中...
未找到
eve::touch::Touch类 参考abstract

Active touch-point query interface (positions in window pixels). 更多...

#include <Touch.h>

类 eve::touch::Touch 继承关系图:
eve::Module eve::touch::sdl::Touch

类

struct  TouchInfo
 One active contact; id is unique only for the duration of the press. 更多...
 

Public 成员函数

 Module_REG (Touch)
 
virtual ~Touch ()
 Releases touch tracking state.
 
virtual const std::vector< TouchInfo > & getTouches () const =0
 Gets all currently active touches.
 
virtual const TouchInfo & getTouch (int64_t id) const =0
 Gets a specific touch, using its ID.
 
int getTouchCount () const
 Number of currently active touches.
 
double getTouchX (int index) const
 X position of the touch at dense index, or NaN if out of range.
 
double getTouchY (int index) const
 Y position of the touch at dense index, or NaN if out of range.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Active touch-point query interface (positions in window pixels).

在文件 Touch.h 第 15 行定义.

构造及析构函数说明

◆ ~Touch()

virtual eve::touch::Touch::~Touch ( )
inlinevirtual

Releases touch tracking state.

被 eve::touch::sdl::Touch 重载.

在文件 Touch.h 第 30 行定义.

成员函数说明

◆ getTouch()

virtual const TouchInfo & eve::touch::Touch::getTouch ( int64_t  id) const
pure virtual

Gets a specific touch, using its ID.

在 eve::touch::sdl::Touch 内被实现.

◆ getTouchCount()

int eve::touch::Touch::getTouchCount ( ) const
inline

Number of currently active touches.

在文件 Touch.h 第 43 行定义.

引用了 size.

◆ getTouches()

virtual const std::vector< TouchInfo > & eve::touch::Touch::getTouches ( ) const
pure virtual

Gets all currently active touches.

在 eve::touch::sdl::Touch 内被实现.

被这些函数引用 getTouchX() , 以及 getTouchY().

◆ getTouchX()

double eve::touch::Touch::getTouchX ( int  index) const

X position of the touch at dense index, or NaN if out of range.

在文件 Touch.cpp 第 9 行定义.

引用了 getTouches() , 以及 index.

◆ getTouchY()

double eve::touch::Touch::getTouchY ( int  index) const

Y position of the touch at dense index, or NaN if out of range.

在文件 Touch.cpp 第 16 行定义.

引用了 getTouches() , 以及 index.

◆ Module_REG()

eve::touch::Touch::Module_REG ( Touch  )

该类的文档由以下文件生成: