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

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

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


/**
 * 

Describes a device from which mouse, touch or tablet events originate

*

Java wrapper for Qt class QPointingDevice

*/ public class QPointingDevice extends io.qt.gui.QInputDevice { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPointingDevice.class); /** *

Java wrapper for Qt enum QPointingDevice::GrabTransition

*/ public enum GrabTransition implements io.qt.QtEnumerator { GrabPassive(1), UngrabPassive(2), CancelGrabPassive(3), OverrideGrabPassive(4), GrabExclusive(16), UngrabExclusive(32), CancelGrabExclusive(48); private GrabTransition(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static GrabTransition resolve(int value) { switch (value) { case 1: return GrabPassive; case 2: return UngrabPassive; case 3: return CancelGrabPassive; case 4: return OverrideGrabPassive; case 16: return GrabExclusive; case 32: return UngrabExclusive; case 48: return CancelGrabExclusive; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPointingDevice::PointerType

* * @see PointerTypes */ public enum PointerType implements io.qt.QtFlagEnumerator { Unknown(0), Generic(1), Finger(2), Pen(4), Eraser(8), Cursor(16), AllPointerTypes(32767); private PointerType(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public PointerTypes asFlags() { return new PointerTypes(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public PointerTypes combined(PointerType e) { return new PointerTypes(this, e); } /** * Creates a new {@link PointerTypes} from the entries. * @param values entries * @return new flag */ public static PointerTypes flags(PointerType ... values) { return new PointerTypes(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static PointerType resolve(int value) { switch (value) { case 0: return Unknown; case 1: return Generic; case 2: return Finger; case 4: return Pen; case 8: return Eraser; case 16: return Cursor; case 32767: return AllPointerTypes; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link PointerType} */ public static final class PointerTypes extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0xa9b29eb9ef71f87cL; /** * Creates a new PointerTypes where the flags in args are set. * @param args enum entries */ public PointerTypes(PointerType ... args){ super(args); } /** * Creates a new PointerTypes with given value. * @param value */ public PointerTypes(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new PointerTypes */ @Override public final PointerTypes combined(PointerType e){ return new PointerTypes(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final PointerTypes setFlag(PointerType e){ super.setFlag(e); return this; } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final PointerTypes setFlag(PointerType e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this PointerTypes. * @return array of enum entries */ @Override public final PointerType[] flags(){ return super.flags(PointerType.values()); } /** * {@inheritDoc} */ @Override public final PointerTypes clone(){ return new PointerTypes(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(PointerTypes other){ return Integer.compare(value(), other.value()); } } public final Signal4 grabChanged = new Signal4<>(); /** *

Overloaded constructor for {@link #QPointingDevice(io.qt.core.QObject)} * with parent = null.

*/ public QPointingDevice() { this((io.qt.core.QObject)null); } /** *

See QPointingDevice::QPointingDevice(QObject*)

*/ public QPointingDevice(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QPointingDevice instance, io.qt.core.QObject parent); /** *

Overloaded constructor for {@link #QPointingDevice(java.lang.String, long, io.qt.gui.QInputDevice.DeviceType, io.qt.gui.QPointingDevice.PointerType, io.qt.gui.QInputDevice.Capabilities, int, int, java.lang.String, io.qt.gui.QPointingDeviceUniqueId, io.qt.core.QObject)} * with parent = null.

*/ public QPointingDevice(java.lang.String name, long systemId, io.qt.gui.QInputDevice.DeviceType devType, io.qt.gui.QPointingDevice.PointerType pType, io.qt.gui.QInputDevice.Capabilities caps, int maxPoints, int buttonCount, java.lang.String seatName, io.qt.gui.QPointingDeviceUniqueId uniqueId) { this(name, systemId, devType, pType, caps, maxPoints, buttonCount, seatName, uniqueId, (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QPointingDevice(java.lang.String, long, io.qt.gui.QInputDevice.DeviceType, io.qt.gui.QPointingDevice.PointerType, io.qt.gui.QInputDevice.Capabilities, int, int, java.lang.String, io.qt.gui.QPointingDeviceUniqueId, io.qt.core.QObject)}

*

with:

    *
  • uniqueId = new io.qt.gui.QPointingDeviceUniqueId()
  • *
  • parent = null
  • *
*/ public QPointingDevice(java.lang.String name, long systemId, io.qt.gui.QInputDevice.DeviceType devType, io.qt.gui.QPointingDevice.PointerType pType, io.qt.gui.QInputDevice.Capabilities caps, int maxPoints, int buttonCount, java.lang.String seatName) { this(name, systemId, devType, pType, caps, maxPoints, buttonCount, seatName, new io.qt.gui.QPointingDeviceUniqueId(), (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QPointingDevice(java.lang.String, long, io.qt.gui.QInputDevice.DeviceType, io.qt.gui.QPointingDevice.PointerType, io.qt.gui.QInputDevice.Capabilities, int, int, java.lang.String, io.qt.gui.QPointingDeviceUniqueId, io.qt.core.QObject)}

*

with:

    *
  • seatName = ""
  • *
  • uniqueId = new io.qt.gui.QPointingDeviceUniqueId()
  • *
  • parent = null
  • *
*/ public QPointingDevice(java.lang.String name, long systemId, io.qt.gui.QInputDevice.DeviceType devType, io.qt.gui.QPointingDevice.PointerType pType, io.qt.gui.QInputDevice.Capabilities caps, int maxPoints, int buttonCount) { this(name, systemId, devType, pType, caps, maxPoints, buttonCount, "", new io.qt.gui.QPointingDeviceUniqueId(), (io.qt.core.QObject)null); } /** *

See QPointingDevice::QPointingDevice(QString,qint64,QInputDevice::DeviceType,QPointingDevice::PointerType,Capabilities,int,int,QString,QPointingDeviceUniqueId,QObject*)

*/ public QPointingDevice(java.lang.String name, long systemId, io.qt.gui.QInputDevice.DeviceType devType, io.qt.gui.QPointingDevice.PointerType pType, io.qt.gui.QInputDevice.Capabilities caps, int maxPoints, int buttonCount, java.lang.String seatName, io.qt.gui.QPointingDeviceUniqueId uniqueId, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, name, systemId, devType, pType, caps, maxPoints, buttonCount, seatName, uniqueId, parent); } private native static void initialize_native(QPointingDevice instance, java.lang.String name, long systemId, io.qt.gui.QInputDevice.DeviceType devType, io.qt.gui.QPointingDevice.PointerType pType, io.qt.gui.QInputDevice.Capabilities caps, int maxPoints, int buttonCount, java.lang.String seatName, io.qt.gui.QPointingDeviceUniqueId uniqueId, io.qt.core.QObject parent); /** *

See QPointingDevice::buttonCount()const

*/ @io.qt.QtPropertyReader(name="buttonCount") @io.qt.QtPropertyConstant @io.qt.QtUninvokable public final int buttonCount(){ return buttonCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int buttonCount_native_constfct(long __this__nativeId); /** *

See QPointingDevice::maximumPoints()const

*/ @io.qt.QtPropertyReader(name="maximumPoints") @io.qt.QtPropertyConstant @io.qt.QtUninvokable public final int maximumPoints(){ return maximumPoints_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int maximumPoints_native_constfct(long __this__nativeId); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.gui.QPointingDevice other){ return operator_equal_native_cref_QPointingDevice_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QPointingDevice_constfct(long __this__nativeId, long other); /** *

See QPointingDevice::pointerType()const

*/ @io.qt.QtPropertyReader(name="pointerType") @io.qt.QtPropertyConstant @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 QPointingDevice::uniqueId()const

*/ @io.qt.QtPropertyReader(name="uniqueId") @io.qt.QtPropertyConstant @io.qt.QtUninvokable public final io.qt.gui.QPointingDeviceUniqueId uniqueId(){ return uniqueId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QPointingDeviceUniqueId uniqueId_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #primaryPointingDevice(java.lang.String)} * with seatName = "".

*/ public static io.qt.gui.QPointingDevice primaryPointingDevice() { return primaryPointingDevice(""); } /** *

See QPointingDevice::primaryPointingDevice(QString)

*/ public native static io.qt.gui.QPointingDevice primaryPointingDevice(java.lang.String seatName); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QPointingDevice(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QPointingDevice(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QPointingDevice instance, QDeclarativeConstructor constructor); @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QPointingDevice) { return operator_equal((io.qt.gui.QPointingDevice) other); } return false; } @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