io.qt.sensors.QTapReading Maven / Gradle / Ivy
Show all versions of qtjambi-sensors Show documentation
package io.qt.sensors;
import io.qt.*;
/**
* Java wrapper for Qt class QTapReading
*/
public class QTapReading extends io.qt.sensors.QSensorReading
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTapReading.class);
/**
* Java wrapper for Qt enum QTapReading::TapDirection
*/
public enum TapDirection implements QtEnumerator {
/**
* Representing QTapReading:: Undefined
*/
Undefined(0),
/**
* Representing QTapReading:: X
*/
X(1),
/**
* Representing QTapReading:: Y
*/
Y(2),
/**
* Representing QTapReading:: Z
*/
Z(4),
/**
* Representing QTapReading:: X_Pos
*/
X_Pos(17),
/**
* Representing QTapReading:: Y_Pos
*/
Y_Pos(34),
/**
* Representing QTapReading:: Z_Pos
*/
Z_Pos(68),
/**
* Representing QTapReading:: X_Neg
*/
X_Neg(257),
/**
* Representing QTapReading:: Y_Neg
*/
Y_Neg(514),
/**
* Representing QTapReading:: Z_Neg
*/
Z_Neg(1028),
/**
* Representing QTapReading:: X_Both
*/
X_Both(273),
/**
* Representing QTapReading:: Y_Both
*/
Y_Both(546),
/**
* Representing QTapReading:: Z_Both
*/
Z_Both(1092);
static {
QtJambi_LibraryUtilities.initialize();
}
private TapDirection(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 TapDirection resolve(int value) {
switch (value) {
case 0: return Undefined;
case 1: return X;
case 2: return Y;
case 4: return Z;
case 17: return X_Pos;
case 34: return Y_Pos;
case 68: return Z_Pos;
case 257: return X_Neg;
case 514: return Y_Neg;
case 1028: return Z_Neg;
case 273: return X_Both;
case 546: return Y_Both;
case 1092: return Z_Both;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QTapReading:: QTapReading(QObject*)
*/
public QTapReading(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QTapReading instance, io.qt.core.QObject parent);
/**
* See QTapReading:: isDoubleTap()const
*/
@QtPropertyReader(name="doubleTap")
@QtUninvokable
public final boolean isDoubleTap(){
return isDoubleTap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDoubleTap_native_constfct(long __this__nativeId);
/**
* See QTapReading:: setDoubleTap(bool)
*/
@QtUninvokable
public final void setDoubleTap(boolean doubleTap){
setDoubleTap_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), doubleTap);
}
@QtUninvokable
private native void setDoubleTap_native_bool(long __this__nativeId, boolean doubleTap);
/**
* See QTapReading:: setTapDirection(QTapReading::TapDirection)
*/
@QtUninvokable
public final void setTapDirection(io.qt.sensors.QTapReading.@NonNull TapDirection tapDirection){
setTapDirection_native_QTapReading_TapDirection(QtJambi_LibraryUtilities.internal.nativeId(this), tapDirection.value());
}
@QtUninvokable
private native void setTapDirection_native_QTapReading_TapDirection(long __this__nativeId, int tapDirection);
/**
* See QTapReading:: tapDirection()const
*/
@QtPropertyReader(name="tapDirection")
@QtUninvokable
public final io.qt.sensors.QTapReading.@NonNull TapDirection tapDirection(){
return io.qt.sensors.QTapReading.TapDirection.resolve(tapDirection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int tapDirection_native_constfct(long __this__nativeId);
/**
* See QSensorReading:: copyValuesFrom(QSensorReading*)
*/
@QtUninvokable
@Override
protected void copyValuesFrom(io.qt.sensors.@Nullable QSensorReading other){
copyValuesFrom_native_QSensorReading_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void copyValuesFrom_native_QSensorReading_ptr(long __this__nativeId, long other);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTapReading(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QTapReading(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QTapReading instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QTapReading(io.qt.core.QObject)}
* with parent = null
.
*/
public QTapReading() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isDoubleTap()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDoubleTap() {
return isDoubleTap();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #tapDirection()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.sensors.QTapReading.@NonNull TapDirection getTapDirection() {
return tapDirection();
}
}