C

SafeRenderer::QSafeTouch Class

class SafeRenderer::QSafeTouch

The QSafeTouch class contains parameters that describe a touch event. More...

Header: #include <QSafeTouch>
Since: QtSafeRenderer 2.0
Inherits: SafeRenderer::QSafeEvent

Public Functions

QSafeTouch()
QSafeTouch(const SafeRenderer::QSafeEvent &baseEvent)
SafeRenderer::qint32 getX() const
SafeRenderer::qint32 getY() const
bool pressed() const
void setPressed(const bool valueArg)
void setX(const SafeRenderer::qint32 valueArg)
void setY(const SafeRenderer::qint32 valueArg)

Detailed Description

QSafeTouch is used to send the touch information to the safe renderer process. The event contains information about the x and y coordinates and the pressed state.

Member Function Documentation

QSafeTouch::QSafeTouch()

Constructs a QSafeTouch object.

eventType is set to EventTouch.

[explicit] QSafeTouch::QSafeTouch(const SafeRenderer::QSafeEvent &baseEvent)

Constructs a QSafeEvent instance, copying data from another instance baseEvent.

SafeRenderer::qint32 QSafeTouch::getX() const

Returns the x-coordinate value.

SafeRenderer::qint32 QSafeTouch::getY() const

Returns the y-coordinate value.

bool QSafeTouch::pressed() const

Returns true if the pressed is set, false if it is released.

See also setPressed().

void QSafeTouch::setPressed(const bool valueArg)

Sets the pressed value.

valueArg is the pressed value. True equals to pressed and false released.

See also pressed().

void QSafeTouch::setX(const SafeRenderer::qint32 valueArg)

Sets the x-coordinate.

valueArg is the x-coordinate value.

void QSafeTouch::setY(const SafeRenderer::qint32 valueArg)

Sets the y-coordinate.

valueArg is the y-coordinate value.

Available under certain Qt licenses.
Find out more.