|
| | TouchEvent (int64_t nTimeUsec, const shared_ptr< Accessor > &refAccessor, const shared_ptr< TouchCapability > &refTouchCapability, TOUCH_INPUT_TYPE eType, double fX, double fY, int64_t nFingerId) noexcept |
| | Constructor. More...
|
| |
| TOUCH_INPUT_TYPE | getType () const noexcept |
| | The touch event type. More...
|
| |
| int64_t | getFingerId () const noexcept |
| | The finger id performing the touch. More...
|
| |
| shared_ptr< TouchCapability > | getTouchCapability () const noexcept |
| | The touch capability that generated the event. More...
|
| |
| shared_ptr< Capability > | getCapability () const noexcept override |
| | Returns the capability that generated this event. More...
|
| |
| double | getX () const noexcept |
| | The main X coordinate. More...
|
| |
| double | getY () const noexcept |
| | The main Y coordinate. More...
|
| |
| bool | getIsModified () const noexcept |
| | Whether the event coordinates were modified. More...
|
| |
| XY_GRAB_INPUT_TYPE | getXYGrabType () const noexcept |
| | Get the grab type of the event. More...
|
| |
| int64_t | getXYGrabId () const noexcept |
| | Identifies what is grabbed. More...
|
| |
| virtual void | translateXY (double fDX, double fDY) noexcept |
| | Translates the xy coordinates. More...
|
| |
| virtual void | scaleXY (double fSX, double fSY) noexcept |
| | Scales the xy coordinates. More...
|
| |
| virtual | ~Event () noexcept=default |
| |
| int64_t | getTimeUsec () const noexcept |
| | Returns the time this event originated. More...
|
| |
| int32_t | getCapabilityId () const noexcept |
| | Returns the id of the capability that generated this event. More...
|
| |
| const shared_ptr< Accessor > & | getAccessor () const noexcept |
| | Returns the accessor that helped generate this event. More...
|
| |
| virtual bool | getAsKey (HARDWARE_KEY &eKey, AS_KEY_INPUT_TYPE &eType, bool &bMoreThanOne) const noexcept |
| | Tells whether the event can simulate hardware keys. More...
|
| |
| virtual std::vector< std::pair< HARDWARE_KEY, AS_KEY_INPUT_TYPE > > | getAsKeys () const noexcept |
| | All the keys this event simulates. More...
|
| |
| const Class & | getEventClass () const noexcept |
| | Get the registered class of the event instance. More...
|
| |
|
| void | setTypeAndFinger (TOUCH_INPUT_TYPE eType, int64_t nFingerId) noexcept |
| | Sets touch and grab fields. More...
|
| |
| void | setTouchCapability (const shared_ptr< TouchCapability > &refTouchCapability) noexcept |
| | Sets the capability. More...
|
| |
| | XYEvent (const Class &oClass, int64_t nTimeUsec, int32_t nCapabilityId, const shared_ptr< Accessor > &refAccessor, double fX, double fY) noexcept |
| | Constructor without grab info. More...
|
| |
| | XYEvent (const Class &oClass, int64_t nTimeUsec, int32_t nCapabilityId, const shared_ptr< Accessor > &refAccessor, double fX, double fY, XY_GRAB_INPUT_TYPE eXYGrabType, int64_t nGrabId) noexcept |
| | Constructor. More...
|
| |
| void | setX (double fX) noexcept |
| | Sets X. More...
|
| |
| void | setY (double fY) noexcept |
| | Sets Y. More...
|
| |
| void | setIsModified (bool bIsModified) noexcept |
| | Sets the modified flag. More...
|
| |
| void | setXYGrab (XY_GRAB_INPUT_TYPE eXYGrabType, int64_t nGrabId) noexcept |
| | Sets the grab type and id. More...
|
| |
| | Event (const Class &oClass, int64_t nTimeUsec, int32_t nCapabilityId, const shared_ptr< Accessor > &refAccessor) noexcept |
| | Constructor to be called from subclasses. More...
|
| |
| | Event (const Class &oClass, int64_t nTimeUsec, int32_t nCapabilityId) noexcept |
| | Constructor to be called from subclasses (with empty accessor). More...
|
| |
| void | setTimeUsec (int64_t nTimeUsec) noexcept |
| | Set the event time. More...
|
| |
| void | setCapabilityId (int32_t nCapabilityId) noexcept |
| | Set the capability id. More...
|
| |
| void | setAccessor (const shared_ptr< Accessor > &refAccessor) noexcept |
| | Set the accessor. More...
|
| |
Event generated when the state of a touch is changed.
Note that the reference to the capability that generated this event is weak.