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

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

The newest version!
package io.qt.gui;


/**
 * 

Information about a point in a QPointerEvent

*

Java wrapper for Qt class QEventPoint

*/ public class QEventPoint extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QEventPoint.class); /** *

Java wrapper for Qt enum QEventPoint::State

* * @see States */ public enum State implements io.qt.QtByteFlagEnumerator { Unknown((byte)0), Stationary((byte)4), Pressed((byte)1), Updated((byte)2), Released((byte)8); private State(byte value) { this.value = value; } /** * {@inheritDoc} */ public byte value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public States asFlags() { return new States(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public States combined(State e) { return new States(this, e); } /** * Creates a new {@link States} from the entries. * @param values entries * @return new flag */ public static States flags(State ... values) { return new States(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static State resolve(byte value) { switch (value) { case 0: return Unknown; case 4: return Stationary; case 1: return Pressed; case 2: return Updated; case 8: return Released; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final byte value; } /** * QFlags type for enum {@link State} */ public static final class States extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0x6fa3645dae1a9029L; /** * Creates a new States where the flags in args are set. * @param args enum entries */ public States(State ... args){ super(args); } /** * Creates a new States with given value. * @param value */ public States(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new States */ @Override public final States combined(State e){ return new States(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final States setFlag(State 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 States setFlag(State e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this States. * @return array of enum entries */ @Override public final State[] flags(){ return super.flags(State.values()); } /** * {@inheritDoc} */ @Override public final States clone(){ return new States(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(States other){ return Integer.compare(value(), other.value()); } } /** *

See QEventPoint::QEventPoint(QEventPoint)

*/ public QEventPoint(io.qt.gui.QEventPoint other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QEventPoint instance, io.qt.gui.QEventPoint other); /** *

Overloaded constructor for {@link #QEventPoint(int, io.qt.gui.QPointingDevice)} * with device = null.

*/ public QEventPoint(int id) { this(id, (io.qt.gui.QPointingDevice)null); } /** *

Overloaded constructor for {@link #QEventPoint(int, io.qt.gui.QPointingDevice)}

*

with:

    *
  • id = -1
  • *
  • device = null
  • *
*/ public QEventPoint() { this((int)-1, (io.qt.gui.QPointingDevice)null); } public QEventPoint(int id, io.qt.gui.QPointingDevice device){ super((QPrivateConstructor)null); initialize_native(this, id, device); } private native static void initialize_native(QEventPoint instance, int id, io.qt.gui.QPointingDevice device); /** *

See QEventPoint::QEventPoint(int,QEventPoint::State,QPointF,QPointF)

*/ public QEventPoint(int pointId, io.qt.gui.QEventPoint.State state, io.qt.core.QPointF scenePosition, io.qt.core.QPointF globalPosition){ super((QPrivateConstructor)null); initialize_native(this, pointId, state, scenePosition, globalPosition); } private native static void initialize_native(QEventPoint instance, int pointId, io.qt.gui.QEventPoint.State state, io.qt.core.QPointF scenePosition, io.qt.core.QPointF globalPosition); /** *

See QEventPoint::device()const

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

See QEventPoint::ellipseDiameters()const

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

See QEventPoint::globalGrabPosition()const

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

See QEventPoint::globalLastPosition()const

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

See QEventPoint::globalPosition()const

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

See QEventPoint::globalPressPosition()const

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

See QEventPoint::grabPosition()const

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

See QEventPoint::id()const

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

See QEventPoint::isAccepted()const

*/ @io.qt.QtPropertyReader(name="accepted") @io.qt.QtUninvokable public final boolean isAccepted(){ return isAccepted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isAccepted_native_constfct(long __this__nativeId); /** *

See QEventPoint::lastPosition()const

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

See QEventPoint::lastTimestamp()const

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

See QEventPoint::normalizedPosition()const

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

See QEventPoint::operator=(QEventPoint)

*/ @io.qt.QtUninvokable public final void set(io.qt.gui.QEventPoint other){ set_native_cref_QEventPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void set_native_cref_QEventPoint(long __this__nativeId, long other); /** *

See QEventPoint::operator==(QEventPoint)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.gui.QEventPoint other){ return operator_equal_native_cref_QEventPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QEventPoint_constfct(long __this__nativeId, long other); /** *

See QEventPoint::position()const

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

See QEventPoint::pressPosition()const

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

See QEventPoint::pressTimestamp()const

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

See QEventPoint::pressure()const

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

See QEventPoint::rotation()const

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

See QEventPoint::sceneGrabPosition()const

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

See QEventPoint::sceneLastPosition()const

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

See QEventPoint::scenePosition()const

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

See QEventPoint::scenePressPosition()const

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

Overloaded function for {@link #setAccepted(boolean)} * with accepted = true.

*/ @io.qt.QtUninvokable public final void setAccepted() { setAccepted((boolean)true); } /** *

See QEventPoint::setAccepted(bool)

*/ @io.qt.QtPropertyWriter(name="accepted") @io.qt.QtUninvokable public final 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); /** *

See QEventPoint::state()const

*/ @io.qt.QtPropertyReader(name="state") @io.qt.QtPropertyConstant @io.qt.QtUninvokable public final io.qt.gui.QEventPoint.State state(){ return io.qt.gui.QEventPoint.State.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native byte state_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final void swap(io.qt.gui.QEventPoint other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QEventPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QEventPoint(long __this__nativeId, long other); /** *

See QEventPoint::timeHeld()const

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

See QEventPoint::timestamp()const

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

See QEventPoint::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); /** *

See QEventPoint::velocity()const

*/ @io.qt.QtPropertyReader(name="velocity") @io.qt.QtPropertyConstant @io.qt.QtUninvokable public final io.qt.gui.QVector2D velocity(){ return velocity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QVector2D velocity_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QEventPoint(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QEventPoint) { return operator_equal((io.qt.gui.QEventPoint) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @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); @Override public QEventPoint clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QEventPoint clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy