Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.qt.gui.QPointerEvent Maven / Gradle / Ivy
package io.qt.gui;
/**
* A base class for pointer events
* Java wrapper for Qt class QPointerEvent
*/
public class QPointerEvent extends io.qt.gui.QInputEvent
{
@io.qt.QtPropertyMember(enabled=false)
private java.util.Collection __rcPassiveGrabber;
@io.qt.QtPropertyMember(enabled=false)
private Object __rcExclusiveGrabber = null;
/**
* Overloaded constructor for {@link #QPointerEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, java.util.Collection)}
* with points = java.util.Collections.emptyList()
.
*/
public QPointerEvent(io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.core.Qt.KeyboardModifiers modifiers) {
this(type, dev, modifiers, java.util.Collections.emptyList());
}
/**
* Overloaded constructor for {@link #QPointerEvent(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)
* points = java.util.Collections.emptyList()
*
*/
public QPointerEvent(io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev) {
this(type, dev, new io.qt.core.Qt.KeyboardModifiers(0), java.util.Collections.emptyList());
}
public QPointerEvent(io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.core.Qt.KeyboardModifiers modifiers, java.util.Collection points){
super((QPrivateConstructor)null);
initialize_native(this, type, dev, modifiers, points);
}
private native static void initialize_native(QPointerEvent instance, io.qt.core.QEvent.Type type, io.qt.gui.QPointingDevice dev, io.qt.core.Qt.KeyboardModifiers modifiers, java.util.Collection points);
protected QPointerEvent(io.qt.gui.QPointerEvent 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(QPointerEvent instance, io.qt.gui.QPointerEvent arg__1);
/**
* See QPointerEvent::addPassiveGrabber(QEventPoint,QObject*)
*/
@io.qt.QtUninvokable
public final boolean addPassiveGrabber(io.qt.gui.QEventPoint point, io.qt.core.QObject grabber){
boolean __qt_return_value = addPassiveGrabber_native_cref_QEventPoint_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point), QtJambi_LibraryUtilities.internal.checkedNativeId(grabber));
if (grabber != null) {
if(__rcPassiveGrabber==null)
__rcPassiveGrabber = QtJambi_LibraryUtilities.internal.newRCList();
__rcPassiveGrabber.add(grabber);
}
return __qt_return_value;
}
@io.qt.QtUninvokable
private native boolean addPassiveGrabber_native_cref_QEventPoint_QObject_ptr(long __this__nativeId, long point, long grabber);
/**
* See QPointerEvent::allPointsAccepted()const
*/
@io.qt.QtUninvokable
public final boolean allPointsAccepted(){
return allPointsAccepted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean allPointsAccepted_native_constfct(long __this__nativeId);
/**
* See QPointerEvent::allPointsGrabbed()const
*/
@io.qt.QtUninvokable
public final boolean allPointsGrabbed(){
return allPointsGrabbed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean allPointsGrabbed_native_constfct(long __this__nativeId);
/**
* See QPointerEvent::clearPassiveGrabbers(QEventPoint)
*/
@io.qt.QtUninvokable
public final void clearPassiveGrabbers(io.qt.gui.QEventPoint point){
clearPassiveGrabbers_native_cref_QEventPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native void clearPassiveGrabbers_native_cref_QEventPoint(long __this__nativeId, long point);
/**
* See QPointerEvent::exclusiveGrabber(QEventPoint)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QObject exclusiveGrabber(io.qt.gui.QEventPoint point){
return exclusiveGrabber_native_cref_QEventPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native io.qt.core.QObject exclusiveGrabber_native_cref_QEventPoint_constfct(long __this__nativeId, long point);
@io.qt.QtUninvokable
protected final void set(io.qt.gui.QPointerEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
set_native_cref_QPointerEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QPointerEvent(long __this__nativeId, long other);
/**
* See QPointerEvent::passiveGrabbers(QEventPoint)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList passiveGrabbers(io.qt.gui.QEventPoint point){
return passiveGrabbers_native_cref_QEventPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native io.qt.core.QList passiveGrabbers_native_cref_QEventPoint_constfct(long __this__nativeId, long point);
/**
* See QPointerEvent::point(qsizetype)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QEventPoint point(long i){
return point_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), i);
}
@io.qt.QtUninvokable
private native io.qt.gui.QEventPoint point_native_qsizetype(long __this__nativeId, long i);
/**
* See QPointerEvent::pointById(int)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QEventPoint pointById(int id){
return pointById_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), id);
}
@io.qt.QtUninvokable
private native io.qt.gui.QEventPoint pointById_native_int(long __this__nativeId, int id);
/**
* See QPointerEvent::pointCount()const
*/
@io.qt.QtUninvokable
public final long pointCount(){
return pointCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long pointCount_native_constfct(long __this__nativeId);
/**
* See QPointerEvent::pointerType()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPointingDevice.PointerType pointerType(){
return io.qt.gui.QPointingDevice.PointerType.resolve(pointerType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int pointerType_native_constfct(long __this__nativeId);
/**
* See QPointerEvent::pointingDevice()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPointingDevice pointingDevice(){
return pointingDevice_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPointingDevice pointingDevice_native_constfct(long __this__nativeId);
/**
* See QPointerEvent::points()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList points(){
return points_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList points_native_constfct(long __this__nativeId);
/**
* See QPointerEvent::removePassiveGrabber(QEventPoint,QObject*)
*/
@io.qt.QtUninvokable
public final boolean removePassiveGrabber(io.qt.gui.QEventPoint point, io.qt.core.QObject grabber){
boolean __qt_return_value = removePassiveGrabber_native_cref_QEventPoint_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point), QtJambi_LibraryUtilities.internal.checkedNativeId(grabber));
if (grabber != null) {
while (__rcPassiveGrabber != null && __rcPassiveGrabber.remove(grabber)) ;
}
return __qt_return_value;
}
@io.qt.QtUninvokable
private native boolean removePassiveGrabber_native_cref_QEventPoint_QObject_ptr(long __this__nativeId, long point, long grabber);
/**
* See QPointerEvent::setExclusiveGrabber(QEventPoint,QObject*)
*/
@io.qt.QtUninvokable
public final void setExclusiveGrabber(io.qt.gui.QEventPoint point, io.qt.core.QObject exclusiveGrabber){
setExclusiveGrabber_native_cref_QEventPoint_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point), QtJambi_LibraryUtilities.internal.checkedNativeId(exclusiveGrabber));
__rcExclusiveGrabber = exclusiveGrabber;
}
@io.qt.QtUninvokable
private native void setExclusiveGrabber_native_cref_QEventPoint_QObject_ptr(long __this__nativeId, long point, long exclusiveGrabber);
/**
* See QEvent::clone()const
*/
@io.qt.QtUninvokable
public io.qt.gui.QPointerEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPointerEvent 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);
/**
* See QEvent::setAccepted(bool)
*/
@io.qt.QtUninvokable
public void setAccepted(boolean accepted){
setAccepted_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), accepted);
}
@io.qt.QtUninvokable
private native void setAccepted_native_bool(long __this__nativeId, boolean accepted);
@io.qt.QtUninvokable
public void setTimestamp(long timestamp){
setTimestamp_native_unsigned_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), timestamp);
}
@io.qt.QtUninvokable
private native void setTimestamp_native_unsigned_long_long(long __this__nativeId, long timestamp);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QPointerEvent(QPrivateConstructor p) { super(p); }
@io.qt.QtUninvokable
public final native void setPoint(long i, QEventPoint point);
@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);
}