All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QTouchEvent Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.gui;


/**
 * 

Contains parameters that describe a touch event

*

Java wrapper for Qt class QTouchEvent

*/ public class QTouchEvent extends io.qt.gui.QPointerEvent { @io.qt.QtPropertyMember(enabled=false) private Object __rcTarget = null; /** *

Overloaded constructor for {@link #QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, io.qt.gui.QEventPoint.States, java.util.Collection)} * with touchPoints = java.util.Collections.emptyList().

* * @deprecated Use another constructor */ @Deprecated public QTouchEvent(io.qt.core.QEvent.Type eventType, io.qt.gui.QPointingDevice device, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QEventPoint.States touchPointStates) { this(eventType, device, modifiers, touchPointStates, java.util.Collections.emptyList()); } /** * @deprecated Use another constructor */ @Deprecated public QTouchEvent(io.qt.core.QEvent.Type eventType, io.qt.gui.QPointingDevice device, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QEventPoint.States touchPointStates, java.util.Collection touchPoints){ super((QPrivateConstructor)null); initialize_native(this, eventType, device, modifiers, touchPointStates, touchPoints); } @Deprecated private native static void initialize_native(QTouchEvent instance, io.qt.core.QEvent.Type eventType, io.qt.gui.QPointingDevice device, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QEventPoint.States touchPointStates, java.util.Collection touchPoints); /** *

Overloaded constructor for {@link #QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, java.util.Collection)} * with touchPoints = java.util.Collections.emptyList().

*/ public QTouchEvent(io.qt.core.QEvent.Type eventType, io.qt.gui.QPointingDevice device, io.qt.core.Qt.KeyboardModifiers modifiers) { this(eventType, device, modifiers, java.util.Collections.emptyList()); } /** *

Overloaded constructor for {@link #QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, java.util.Collection)}

*

with:

    *
  • modifiers = new io.qt.core.Qt.KeyboardModifiers(0)
  • *
  • touchPoints = java.util.Collections.emptyList()
  • *
*/ public QTouchEvent(io.qt.core.QEvent.Type eventType, io.qt.gui.QPointingDevice device) { this(eventType, device, new io.qt.core.Qt.KeyboardModifiers(0), java.util.Collections.emptyList()); } /** *

Overloaded constructor for {@link #QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, java.util.Collection)}

*

with:

    *
  • device = null
  • *
  • modifiers = new io.qt.core.Qt.KeyboardModifiers(0)
  • *
  • touchPoints = java.util.Collections.emptyList()
  • *
*/ public QTouchEvent(io.qt.core.QEvent.Type eventType) { this(eventType, (io.qt.gui.QPointingDevice)null, new io.qt.core.Qt.KeyboardModifiers(0), java.util.Collections.emptyList()); } public QTouchEvent(io.qt.core.QEvent.Type eventType, io.qt.gui.QPointingDevice device, io.qt.core.Qt.KeyboardModifiers modifiers, java.util.Collection touchPoints){ super((QPrivateConstructor)null); initialize_native(this, eventType, device, modifiers, touchPoints); } private native static void initialize_native(QTouchEvent instance, io.qt.core.QEvent.Type eventType, io.qt.gui.QPointingDevice device, io.qt.core.Qt.KeyboardModifiers modifiers, java.util.Collection touchPoints); protected QTouchEvent(io.qt.gui.QTouchEvent arg__1){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); initialize_native(this, arg__1); } private native static void initialize_native(QTouchEvent instance, io.qt.gui.QTouchEvent arg__1); @io.qt.QtUninvokable protected final void set(io.qt.gui.QTouchEvent other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); set_native_cref_QTouchEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void set_native_cref_QTouchEvent(long __this__nativeId, long other); /** *

See QTouchEvent::target()const

*/ @io.qt.QtUninvokable public final io.qt.core.QObject target(){ return target_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QObject target_native_constfct(long __this__nativeId); /** *

See QTouchEvent::touchPointStates()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QEventPoint.States touchPointStates(){ return new io.qt.gui.QEventPoint.States(touchPointStates_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int touchPointStates_native_constfct(long __this__nativeId); /** * @deprecated Use {@link io.qt.gui.QPointerEvent#points()} instead */ @Deprecated @io.qt.QtUninvokable public final io.qt.core.QList touchPoints(){ return touchPoints_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @Deprecated @io.qt.QtUninvokable private native io.qt.core.QList touchPoints_native_constfct(long __this__nativeId); /** *

See QEvent::clone()const

*/ @io.qt.QtUninvokable public io.qt.gui.QTouchEvent clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QTouchEvent clone_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public boolean isBeginEvent(){ return isBeginEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isBeginEvent_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public boolean isEndEvent(){ return isEndEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isEndEvent_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public boolean isUpdateEvent(){ return isUpdateEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isUpdateEvent_native_constfct(long __this__nativeId); @io.qt.QtUninvokable protected final void setTarget(io.qt.core.QObject target){ setTarget_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(target)); __rcTarget = target; } @io.qt.QtUninvokable private native void setTarget_native_QObject_ptr(long __this__nativeId, long target); /** *

Overloaded function for {@link #setTouchPointStates(io.qt.gui.QEventPoint.States)}.

*/ @io.qt.QtUninvokable protected final void setTouchPointStates(io.qt.gui.QEventPoint.State ... touchPointStates){ setTouchPointStates(new io.qt.gui.QEventPoint.States(touchPointStates)); } @io.qt.QtUninvokable protected final void setTouchPointStates(io.qt.gui.QEventPoint.States touchPointStates){ setTouchPointStates_native_cref_QFlags_QEventPoint_State_(QtJambi_LibraryUtilities.internal.nativeId(this), touchPointStates.value()); } @io.qt.QtUninvokable private native void setTouchPointStates_native_cref_QFlags_QEventPoint_State_(long __this__nativeId, int touchPointStates); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QTouchEvent(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy