io.qt.gui.QTouchEvent Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Contains parameters that describe a touch event
* Java wrapper for Qt class QTouchEvent
*/
public class QTouchEvent extends io.qt.gui.QPointerEvent
{
@QtPropertyMember(enabled=false)
private Object __rcTarget = null;
/**
* See QTouchEvent:: QTouchEvent(QEvent::Type, const QPointingDevice*, Qt::KeyboardModifiers, QEventPoint::States, QList<QEventPoint>)
*/
public QTouchEvent(io.qt.core.QEvent.@NonNull Type eventType, io.qt.gui.@Nullable QPointingDevice device, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.gui.QEventPoint.@NonNull States touchPointStates, java.util.@NonNull Collection extends io.qt.gui.@NonNull QEventPoint> touchPoints){
super((QPrivateConstructor)null);
initialize_native(this, eventType, device, modifiers, touchPointStates, 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, io.qt.gui.QEventPoint.States touchPointStates, java.util.Collection extends io.qt.gui.QEventPoint> touchPoints);
/**
* See QTouchEvent:: QTouchEvent(QEvent::Type, const QPointingDevice*, Qt::KeyboardModifiers, QList<QEventPoint>)
*/
public QTouchEvent(io.qt.core.QEvent.@NonNull Type eventType, io.qt.gui.@Nullable QPointingDevice device, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, java.util.@NonNull Collection extends io.qt.gui.@NonNull QEventPoint> 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 extends io.qt.gui.QEventPoint> touchPoints);
/**
* See QTouchEvent:: QTouchEvent(QTouchEvent)
*/
protected QTouchEvent(io.qt.gui.@StrictNonNull 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);
/**
* See QTouchEvent:: operator=(QTouchEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QTouchEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QTouchEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QTouchEvent(long __this__nativeId, long other);
/**
* See QTouchEvent:: target()const
*/
@QtUninvokable
public final io.qt.core.@Nullable QObject target(){
return target_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QObject target_native_constfct(long __this__nativeId);
/**
* See QTouchEvent:: touchPointStates()const
*/
@QtUninvokable
public final io.qt.gui.QEventPoint.@NonNull States touchPointStates(){
return new io.qt.gui.QEventPoint.States(touchPointStates_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int touchPointStates_native_constfct(long __this__nativeId);
/**
* See QTouchEvent:: touchPoints()const
*
* @deprecated Use {@link io.qt.gui.QPointerEvent#points()} instead
*/
@Deprecated
@QtUninvokable
public final io.qt.core.@NonNull QList touchPoints(){
return touchPoints_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native io.qt.core.QList touchPoints_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QTouchEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTouchEvent clone_native_constfct(long __this__nativeId);
/**
* See QPointerEvent:: isBeginEvent()const
*/
@QtUninvokable
@Override
public boolean isBeginEvent(){
return isBeginEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isBeginEvent_native_constfct(long __this__nativeId);
/**
* See QPointerEvent:: isEndEvent()const
*/
@QtUninvokable
@Override
public boolean isEndEvent(){
return isEndEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEndEvent_native_constfct(long __this__nativeId);
/**
* See QPointerEvent:: isUpdateEvent()const
*/
@QtUninvokable
@Override
public boolean isUpdateEvent(){
return isUpdateEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isUpdateEvent_native_constfct(long __this__nativeId);
/**
* See QTouchEvent:: m_target
*/
@QtUninvokable
protected final void setTarget(io.qt.core.@Nullable QObject target){
setTarget_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(target));
__rcTarget = target;
}
@QtUninvokable
private native void setTarget_native_QObject_ptr(long __this__nativeId, long target);
/**
* See QTouchEvent:: m_touchPointStates
*/
@QtUninvokable
protected final void setTouchPointStates(io.qt.gui.QEventPoint.@NonNull States touchPointStates){
setTouchPointStates_native_cref_QEventPoint_States(QtJambi_LibraryUtilities.internal.nativeId(this), touchPointStates.value());
}
@QtUninvokable
private native void setTouchPointStates_native_cref_QEventPoint_States(long __this__nativeId, int touchPointStates);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTouchEvent(QPrivateConstructor p) { super(p); }
/**
* 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()
.
*/
public QTouchEvent(io.qt.core.QEvent.@NonNull Type eventType, io.qt.gui.@Nullable QPointingDevice device, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.gui.QEventPoint.@NonNull States touchPointStates) {
this(eventType, device, modifiers, touchPointStates, 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 touchPoints = java.util.Collections.emptyList()
.
*/
public QTouchEvent(io.qt.core.QEvent.@NonNull Type eventType, io.qt.gui.@Nullable QPointingDevice device, io.qt.core.Qt.@NonNull 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.@NonNull Type eventType, io.qt.gui.@Nullable 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.@NonNull Type eventType) {
this(eventType, (io.qt.gui.QPointingDevice)null, new io.qt.core.Qt.KeyboardModifiers(0), java.util.Collections.emptyList());
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QTouchEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QTouchEvent other) {
assign(other);
}
/**
* Overloaded function for {@link #setTouchPointStates(io.qt.gui.QEventPoint.States)}.
*/
@QtUninvokable
protected final void setTouchPointStates(io.qt.gui.QEventPoint.@NonNull State @NonNull... touchPointStates) {
setTouchPointStates(new io.qt.gui.QEventPoint.States(touchPointStates));
}
}