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.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

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.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPinchGesture.class); /** *

Java wrapper for Qt enum QPinchGesture::ChangeFlag

* * @see ChangeFlags */ public enum ChangeFlag implements QtFlagEnumerator { /** *

Representing QPinchGesture::ScaleFactorChanged

*/ ScaleFactorChanged(1), /** *

Representing QPinchGesture::RotationAngleChanged

*/ RotationAngleChanged(2), /** *

Representing QPinchGesture::CenterPointChanged

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

See QPinchGesture::QPinchGesture(QObject*)

*/ public QPinchGesture(io.qt.core.@Nullable 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

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

See QPinchGesture::changeFlags()const

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

See QPinchGesture::lastCenterPoint()const

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

See QPinchGesture::lastRotationAngle()const

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

See QPinchGesture::lastScaleFactor()const

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

See QPinchGesture::rotationAngle()const

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

See QPinchGesture::scaleFactor()const

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

See QPinchGesture::setCenterPoint(QPointF)

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

See QPinchGesture::setChangeFlags(QPinchGesture::ChangeFlags)

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

See QPinchGesture::setLastCenterPoint(QPointF)

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

See QPinchGesture::setLastRotationAngle(qreal)

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

See QPinchGesture::setLastScaleFactor(qreal)

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

See QPinchGesture::setRotationAngle(qreal)

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

See QPinchGesture::setScaleFactor(qreal)

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

See QPinchGesture::setStartCenterPoint(QPointF)

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

See QPinchGesture::setTotalChangeFlags(QPinchGesture::ChangeFlags)

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

See QPinchGesture::setTotalRotationAngle(qreal)

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

See QPinchGesture::setTotalScaleFactor(qreal)

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

See QPinchGesture::startCenterPoint()const

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

See QPinchGesture::totalChangeFlags()const

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

See QPinchGesture::totalRotationAngle()const

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

See QPinchGesture::totalScaleFactor()const

*/ @QtPropertyReader(name="totalScaleFactor") @QtUninvokable public final double totalScaleFactor(){ return totalScaleFactor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double totalScaleFactor_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPinchGesture(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QPinchGesture(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QPinchGesture instance, QDeclarativeConstructor constructor); /** *

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

*/ public QPinchGesture() { this((io.qt.core.QObject)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #centerPoint()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QPointF getCenterPoint() { return centerPoint(); } /** * @hidden *

Kotlin property getter. In Java use {@link #changeFlags()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QPinchGesture.@NonNull ChangeFlags getChangeFlags() { return changeFlags(); } /** * @hidden *

Kotlin property getter. In Java use {@link #lastCenterPoint()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QPointF getLastCenterPoint() { return lastCenterPoint(); } /** * @hidden *

Kotlin property getter. In Java use {@link #lastRotationAngle()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getLastRotationAngle() { return lastRotationAngle(); } /** * @hidden *

Kotlin property getter. In Java use {@link #lastScaleFactor()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getLastScaleFactor() { return lastScaleFactor(); } /** * @hidden *

Kotlin property getter. In Java use {@link #rotationAngle()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getRotationAngle() { return rotationAngle(); } /** * @hidden *

Kotlin property getter. In Java use {@link #scaleFactor()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getScaleFactor() { return scaleFactor(); } /** *

Overloaded function for {@link #setCenterPoint(io.qt.core.QPointF)}.

*/ @QtUninvokable public final void setCenterPoint(io.qt.core.@NonNull QPoint value) { setCenterPoint(new io.qt.core.QPointF(value)); } /** *

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

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

Overloaded function for {@link #setLastCenterPoint(io.qt.core.QPointF)}.

*/ @QtUninvokable public final void setLastCenterPoint(io.qt.core.@NonNull QPoint value) { setLastCenterPoint(new io.qt.core.QPointF(value)); } /** *

Overloaded function for {@link #setStartCenterPoint(io.qt.core.QPointF)}.

*/ @QtUninvokable public final void setStartCenterPoint(io.qt.core.@NonNull QPoint value) { setStartCenterPoint(new io.qt.core.QPointF(value)); } /** *

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

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

Kotlin property getter. In Java use {@link #startCenterPoint()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QPointF getStartCenterPoint() { return startCenterPoint(); } /** * @hidden *

Kotlin property getter. In Java use {@link #totalChangeFlags()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QPinchGesture.@NonNull ChangeFlags getTotalChangeFlags() { return totalChangeFlags(); } /** * @hidden *

Kotlin property getter. In Java use {@link #totalRotationAngle()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getTotalRotationAngle() { return totalRotationAngle(); } /** * @hidden *

Kotlin property getter. In Java use {@link #totalScaleFactor()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getTotalScaleFactor() { return totalScaleFactor(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy