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

io.qt.widgets.QPinchGesture Maven / Gradle / Ivy

There is a newer version: 6.8.2
Show newest version
package io.qt.widgets;


/**
 * 

Describes a pinch gesture made by the user

*

Java wrapper for Qt class QPinchGesture

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

Java wrapper for Qt enum QPinchGesture::ChangeFlag

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

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

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

See QPinchGesture::centerPoint()const

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

See QPinchGesture::changeFlags()const

*/ @io.qt.QtPropertyReader(name="changeFlags") @io.qt.QtUninvokable public final io.qt.widgets.QPinchGesture.ChangeFlags changeFlags(){ return new io.qt.widgets.QPinchGesture.ChangeFlags(changeFlags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int changeFlags_native_constfct(long __this__nativeId); /** *

See QPinchGesture::lastCenterPoint()const

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

See QPinchGesture::lastRotationAngle()const

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

See QPinchGesture::lastScaleFactor()const

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

See QPinchGesture::rotationAngle()const

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

See QPinchGesture::scaleFactor()const

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

See QPinchGesture::setCenterPoint(QPointF)

*/ @io.qt.QtPropertyWriter(name="centerPoint") @io.qt.QtUninvokable public final void setCenterPoint(io.qt.core.QPointF value){ setCenterPoint_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value)); } @io.qt.QtUninvokable private native void setCenterPoint_native_cref_QPointF(long __this__nativeId, long value); /** *

Overloaded function for {@link #setChangeFlags(io.qt.widgets.QPinchGesture.ChangeFlags)}.

*/ @io.qt.QtUninvokable public final void setChangeFlags(io.qt.widgets.QPinchGesture.ChangeFlag ... value){ setChangeFlags(new io.qt.widgets.QPinchGesture.ChangeFlags(value)); } /** *

See QPinchGesture::setChangeFlags(ChangeFlags)

*/ @io.qt.QtPropertyWriter(name="changeFlags") @io.qt.QtUninvokable public final void setChangeFlags(io.qt.widgets.QPinchGesture.ChangeFlags value){ setChangeFlags_native_QFlags_QPinchGesture_ChangeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), value.value()); } @io.qt.QtUninvokable private native void setChangeFlags_native_QFlags_QPinchGesture_ChangeFlag_(long __this__nativeId, int value); /** *

See QPinchGesture::setLastCenterPoint(QPointF)

*/ @io.qt.QtPropertyWriter(name="lastCenterPoint") @io.qt.QtUninvokable public final void setLastCenterPoint(io.qt.core.QPointF value){ setLastCenterPoint_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value)); } @io.qt.QtUninvokable private native void setLastCenterPoint_native_cref_QPointF(long __this__nativeId, long value); /** *

See QPinchGesture::setLastRotationAngle(qreal)

*/ @io.qt.QtPropertyWriter(name="lastRotationAngle") @io.qt.QtUninvokable public final void setLastRotationAngle(double value){ setLastRotationAngle_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @io.qt.QtUninvokable private native void setLastRotationAngle_native_qtjambireal(long __this__nativeId, double value); /** *

See QPinchGesture::setLastScaleFactor(qreal)

*/ @io.qt.QtPropertyWriter(name="lastScaleFactor") @io.qt.QtUninvokable public final void setLastScaleFactor(double value){ setLastScaleFactor_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @io.qt.QtUninvokable private native void setLastScaleFactor_native_qtjambireal(long __this__nativeId, double value); /** *

See QPinchGesture::setRotationAngle(qreal)

*/ @io.qt.QtPropertyWriter(name="rotationAngle") @io.qt.QtUninvokable public final void setRotationAngle(double value){ setRotationAngle_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @io.qt.QtUninvokable private native void setRotationAngle_native_qtjambireal(long __this__nativeId, double value); /** *

See QPinchGesture::setScaleFactor(qreal)

*/ @io.qt.QtPropertyWriter(name="scaleFactor") @io.qt.QtUninvokable public final void setScaleFactor(double value){ setScaleFactor_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @io.qt.QtUninvokable private native void setScaleFactor_native_qtjambireal(long __this__nativeId, double value); /** *

See QPinchGesture::setStartCenterPoint(QPointF)

*/ @io.qt.QtPropertyWriter(name="startCenterPoint") @io.qt.QtUninvokable public final void setStartCenterPoint(io.qt.core.QPointF value){ setStartCenterPoint_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value)); } @io.qt.QtUninvokable private native void setStartCenterPoint_native_cref_QPointF(long __this__nativeId, long value); /** *

Overloaded function for {@link #setTotalChangeFlags(io.qt.widgets.QPinchGesture.ChangeFlags)}.

*/ @io.qt.QtUninvokable public final void setTotalChangeFlags(io.qt.widgets.QPinchGesture.ChangeFlag ... value){ setTotalChangeFlags(new io.qt.widgets.QPinchGesture.ChangeFlags(value)); } /** *

See QPinchGesture::setTotalChangeFlags(ChangeFlags)

*/ @io.qt.QtPropertyWriter(name="totalChangeFlags") @io.qt.QtUninvokable public final void setTotalChangeFlags(io.qt.widgets.QPinchGesture.ChangeFlags value){ setTotalChangeFlags_native_QFlags_QPinchGesture_ChangeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), value.value()); } @io.qt.QtUninvokable private native void setTotalChangeFlags_native_QFlags_QPinchGesture_ChangeFlag_(long __this__nativeId, int value); /** *

See QPinchGesture::setTotalRotationAngle(qreal)

*/ @io.qt.QtPropertyWriter(name="totalRotationAngle") @io.qt.QtUninvokable public final void setTotalRotationAngle(double value){ setTotalRotationAngle_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @io.qt.QtUninvokable private native void setTotalRotationAngle_native_qtjambireal(long __this__nativeId, double value); /** *

See QPinchGesture::setTotalScaleFactor(qreal)

*/ @io.qt.QtPropertyWriter(name="totalScaleFactor") @io.qt.QtUninvokable public final void setTotalScaleFactor(double value){ setTotalScaleFactor_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @io.qt.QtUninvokable private native void setTotalScaleFactor_native_qtjambireal(long __this__nativeId, double value); /** *

See QPinchGesture::startCenterPoint()const

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

See QPinchGesture::totalChangeFlags()const

*/ @io.qt.QtPropertyReader(name="totalChangeFlags") @io.qt.QtUninvokable public final io.qt.widgets.QPinchGesture.ChangeFlags totalChangeFlags(){ return new io.qt.widgets.QPinchGesture.ChangeFlags(totalChangeFlags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int totalChangeFlags_native_constfct(long __this__nativeId); /** *

See QPinchGesture::totalRotationAngle()const

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

See QPinchGesture::totalScaleFactor()const

*/ @io.qt.QtPropertyReader(name="totalScaleFactor") @io.qt.QtUninvokable public final double totalScaleFactor(){ return totalScaleFactor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double totalScaleFactor_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QPinchGesture(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 QPinchGesture(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QPinchGesture instance, QDeclarativeConstructor constructor); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy