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

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

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

import io.qt.*;


/**
 * 

Represents a gesture, containing properties that describe the corresponding user input

*

Java wrapper for Qt class QGesture

*/ public class QGesture extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGesture.class); /** *

Java wrapper for Qt enum QGesture::GestureCancelPolicy

*/ @QtUnlistedEnum public enum GestureCancelPolicy implements QtEnumerator { /** *

Representing QGesture::CancelNone

*/ CancelNone(0), /** *

Representing QGesture::CancelAllInContext

*/ CancelAllInContext(1); static { QtJambi_LibraryUtilities.initialize(); } private GestureCancelPolicy(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 @NonNull GestureCancelPolicy resolve(int value) { switch (value) { case 0: return CancelNone; case 1: return CancelAllInContext; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QGesture::QGesture(QObject*)

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

See QGesture::gestureCancelPolicy()const

*/ @QtPropertyReader(name="gestureCancelPolicy") @QtUninvokable public final io.qt.widgets.QGesture.@NonNull GestureCancelPolicy gestureCancelPolicy(){ return io.qt.widgets.QGesture.GestureCancelPolicy.resolve(gestureCancelPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int gestureCancelPolicy_native_constfct(long __this__nativeId); /** *

See QGesture::gestureType()const

*/ @QtPropertyReader(name="gestureType") @QtUninvokable public final io.qt.core.Qt.@NonNull GestureType gestureType(){ return io.qt.core.Qt.GestureType.resolve(gestureType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int gestureType_native_constfct(long __this__nativeId); /** *

See QGesture::hasHotSpot()const

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

See QGesture::hotSpot()const

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

See QGesture::setGestureCancelPolicy(QGesture::GestureCancelPolicy)

*/ @QtPropertyWriter(name="gestureCancelPolicy") @QtUninvokable public final void setGestureCancelPolicy(io.qt.widgets.QGesture.@NonNull GestureCancelPolicy policy){ setGestureCancelPolicy_native_QGesture_GestureCancelPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value()); } @QtUninvokable private native void setGestureCancelPolicy_native_QGesture_GestureCancelPolicy(long __this__nativeId, int policy); /** *

See QGesture::setHotSpot(QPointF)

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

See QGesture::state()const

*/ @QtPropertyReader(name="state") @QtUninvokable public final io.qt.core.Qt.@NonNull GestureState state(){ return io.qt.core.Qt.GestureState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int state_native_constfct(long __this__nativeId); /** *

See QGesture::unsetHotSpot()

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

See operator<<(QDebug,const QGesture*)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QGesture.@NonNull GestureCancelPolicy getGestureCancelPolicy() { return gestureCancelPolicy(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull GestureType getGestureType() { return gestureType(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getHasHotSpot() { return hasHotSpot(); } /** * @hidden *

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

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

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull GestureState getState() { return state(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy