struct Core::TouchInfo

Overview

Touch Info. More…

#include <coremultitouch.h>

struct TouchInfo
{
    // fields

    int type;
    TouchID id;
    Point where;
    PointF whereF;
    int64 time;

    // construction

    TouchInfo(
        int type = kTouchBegin,
        TouchID id = 0,
        PointRef where = Point(),
        int64 time = 0
    );

    TouchInfo(int type, TouchID id, PointFRef whereF, int64 time = 0);

    // methods

    bool operator == (const TouchInfo& other) const;
    void setPosition(PointRef p);
    void setPosition(PointFRef p);
};

// direct descendants

class TouchInfo;

Detailed Documentation

Touch Info.

Fields

int type

See also:

TouchEventType

int64 time

milliseconds (1000 equals one second)