struct CCL::TouchEvent

Overview

#include <guievent.h>

struct TouchEvent: public CCL::PointerEvent
{
    // enums

    enum
    {
        kNoTouchId = 0,
    };

    enum EventType;

    // fields

    ITouchCollection& touches;
    TouchID touchID;

    // construction

    TouchEvent (
        ITouchCollection& touches,
        int eventType = kBegin,
        const KeyState& keys = KeyState (),
        InputDevice inputDevice = kPointerInput
    );

    // methods

    bool isHoverEvent () const;
};

Inherited Members

public:
    // enums

    enum EventClass;
    enum InputDevice;

    // structs

    struct PenInfo;

    // fields

    int eventClass;
    int eventType;
    double eventTime;
    KeyState keys;
    InputDevice inputDevice;
    PenInfo penInfo;

    // methods

    template  <class Event>
    const Event* as () const;

    const PointerEvent* as () const;

Detailed Documentation

Fields

TouchID touchID

(optional) id of the touch that has begun or changed