KLayout Manual: Main Index » Class Index » API reference - Class QTouchEvent

API reference - Class QTouchEvent

Notation used in Ruby API documentation

Description: Binding of QTouchEvent

Class hierarchy: QTouchEvent » QInputEvent » QEvent

Public constructors

new QTouchEventnew(const QEvent_Type eventType)Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)
new QTouchEventnew(const QEvent_Type eventType,
const QTouchEvent_DeviceType deviceType)
Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)
new QTouchEventnew(const QEvent_Type eventType,
const QTouchEvent_DeviceType deviceType,
int modifiers)
Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)
new QTouchEventnew(const QEvent_Type eventType,
const QTouchEvent_DeviceType deviceType,
int modifiers,
int touchPointStates)
Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)
new QTouchEventnew(const QEvent_Type eventType,
const QTouchEvent_DeviceType deviceType,
int modifiers,
int touchPointStates,
QTouchEvent_TouchPoint[] touchPoints)
Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)

Public methods

[const]voidassign(const QTouchEvent other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QTouchEvent_DeviceTypedeviceTypeMethod QTouchEvent::DeviceType QTouchEvent::deviceType()
voiddeviceType=(const QTouchEvent_DeviceType adeviceType)Method void QTouchEvent::setDeviceType(QTouchEvent::DeviceType adeviceType)
[const]QTouchEventdupCreates a copy of self
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
voidsetDeviceType(const QTouchEvent_DeviceType adeviceType)Method void QTouchEvent::setDeviceType(QTouchEvent::DeviceType adeviceType)
voidsetTouchPointStates(int aTouchPointStates)Method void QTouchEvent::setTouchPointStates(QFlags<enum Qt::TouchPointState> aTouchPointStates)
voidsetTouchPoints(QTouchEvent_TouchPoint[] atouchPoints)Method void QTouchEvent::setTouchPoints(const QList<class QTouchEvent::TouchPoint> &atouchPoints)
voidsetWidget(QWidget ptr awidget)Method void QTouchEvent::setWidget(QWidget *awidget)
[const]inttouchPointStatesMethod QFlags<enum Qt::TouchPointState> QTouchEvent::touchPointStates()
voidtouchPointStates=(int aTouchPointStates)Method void QTouchEvent::setTouchPointStates(QFlags<enum Qt::TouchPointState> aTouchPointStates)
[const]QTouchEvent_TouchPoint[]touchPointsMethod const QList<class QTouchEvent::TouchPoint> & QTouchEvent::touchPoints()
voidtouchPoints=(QTouchEvent_TouchPoint[] atouchPoints)Method void QTouchEvent::setTouchPoints(const QList<class QTouchEvent::TouchPoint> &atouchPoints)
[const]QWidget ptrwidgetMethod QWidget * QTouchEvent::widget()
voidwidget=(QWidget ptr awidget)Method void QTouchEvent::setWidget(QWidget *awidget)

Public static methods and constants

QTouchEvent_DeviceTypeTouchPadEnum constant enum QTouchEvent::TouchPad
QTouchEvent_DeviceTypeTouchScreenEnum constant enum QTouchEvent::TouchScreen

Detailed description

[static] QTouchEvent_DeviceType TouchPad

Description: Enum constant enum QTouchEvent::TouchPad

[static] QTouchEvent_DeviceType TouchScreen

Description: Enum constant enum QTouchEvent::TouchScreen

[const] void assign(const QTouchEvent other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QTouchEvent_DeviceType deviceType

Description: Method QTouchEvent::DeviceType QTouchEvent::deviceType()

void deviceType=(const QTouchEvent_DeviceType adeviceType)

Description: Method void QTouchEvent::setDeviceType(QTouchEvent::DeviceType adeviceType)

[const] QTouchEvent dup

Description: Creates a copy of self

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[static] new QTouchEvent new(const QEvent_Type eventType)

Description: Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)

This method creates an object of class QTouchEvent.

[static] new QTouchEvent new(const QEvent_Type eventType,const QTouchEvent_DeviceType deviceType)

Description: Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)

This method creates an object of class QTouchEvent.

[static] new QTouchEvent new(const QEvent_Type eventType,const QTouchEvent_DeviceType deviceType,int modifiers)

Description: Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)

This method creates an object of class QTouchEvent.

[static] new QTouchEvent new(const QEvent_Type eventType,const QTouchEvent_DeviceType deviceType,int modifiers,int touchPointStates)

Description: Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)

This method creates an object of class QTouchEvent.

[static] new QTouchEvent new(const QEvent_Type eventType,const QTouchEvent_DeviceType deviceType,int modifiers,int touchPointStates,QTouchEvent_TouchPoint[] touchPoints)

Description: Constructor QTouchEvent::QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, QFlags<enum Qt::KeyboardModifier> modifiers, QFlags<enum Qt::TouchPointState> touchPointStates, const QList<class QTouchEvent::TouchPoint> &touchPoints)

This method creates an object of class QTouchEvent.

void setDeviceType(const QTouchEvent_DeviceType adeviceType)

Description: Method void QTouchEvent::setDeviceType(QTouchEvent::DeviceType adeviceType)

void setTouchPointStates(int aTouchPointStates)

Description: Method void QTouchEvent::setTouchPointStates(QFlags<enum Qt::TouchPointState> aTouchPointStates)

void setTouchPoints(QTouchEvent_TouchPoint[] atouchPoints)

Description: Method void QTouchEvent::setTouchPoints(const QList<class QTouchEvent::TouchPoint> &atouchPoints)

void setWidget(QWidget ptr awidget)

Description: Method void QTouchEvent::setWidget(QWidget *awidget)

[const] int touchPointStates

Description: Method QFlags<enum Qt::TouchPointState> QTouchEvent::touchPointStates()

void touchPointStates=(int aTouchPointStates)

Description: Method void QTouchEvent::setTouchPointStates(QFlags<enum Qt::TouchPointState> aTouchPointStates)

[const] QTouchEvent_TouchPoint[] touchPoints

Description: Method const QList<class QTouchEvent::TouchPoint> & QTouchEvent::touchPoints()

void touchPoints=(QTouchEvent_TouchPoint[] atouchPoints)

Description: Method void QTouchEvent::setTouchPoints(const QList<class QTouchEvent::TouchPoint> &atouchPoints)

[const] QWidget ptr widget

Description: Method QWidget * QTouchEvent::widget()

void widget=(QWidget ptr awidget)

Description: Method void QTouchEvent::setWidget(QWidget *awidget)