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

io.qt.sensors.QOrientationReading Maven / Gradle / Ivy

There is a newer version: 6.7.2
Show newest version
package io.qt.sensors;

import io.qt.*;


/**
 * 

Represents one reading from the orientation sensor

*

Java wrapper for Qt class QOrientationReading

*/ public class QOrientationReading 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(QOrientationReading.class); /** *

Java wrapper for Qt enum QOrientationReading::Orientation

*/ public enum Orientation implements QtEnumerator { /** *

Representing QOrientationReading::Undefined

*/ Undefined(0), /** *

Representing QOrientationReading::TopUp

*/ TopUp(1), /** *

Representing QOrientationReading::TopDown

*/ TopDown(2), /** *

Representing QOrientationReading::LeftUp

*/ LeftUp(3), /** *

Representing QOrientationReading::RightUp

*/ RightUp(4), /** *

Representing QOrientationReading::FaceUp

*/ FaceUp(5), /** *

Representing QOrientationReading::FaceDown

*/ FaceDown(6); static { QtJambi_LibraryUtilities.initialize(); } private Orientation(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 Orientation resolve(int value) { switch (value) { case 0: return Undefined; case 1: return TopUp; case 2: return TopDown; case 3: return LeftUp; case 4: return RightUp; case 5: return FaceUp; case 6: return FaceDown; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QOrientationReading::QOrientationReading(QObject*)

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

See QOrientationReading::orientation()const

*/ @QtPropertyReader(name="orientation") @QtUninvokable public final io.qt.sensors.QOrientationReading.@NonNull Orientation orientation(){ return io.qt.sensors.QOrientationReading.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int orientation_native_constfct(long __this__nativeId); /** *

See QOrientationReading::setOrientation(QOrientationReading::Orientation)

*/ @QtUninvokable public final void setOrientation(io.qt.sensors.QOrientationReading.@NonNull Orientation orientation){ setOrientation_native_QOrientationReading_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value()); } @QtUninvokable private native void setOrientation_native_QOrientationReading_Orientation(long __this__nativeId, int orientation); /** *

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 QOrientationReading(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QOrientationReading(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QOrientationReading instance, QDeclarativeConstructor constructor); /** *

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.sensors.QOrientationReading.@NonNull Orientation getOrientation() { return orientation(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy