io.qt.sensors.QAccelerometerReading Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-sensors Show documentation
Show all versions of qtjambi-sensors Show documentation
Provides access to sensor hardware and motion gesture recognition.
package io.qt.sensors;
import io.qt.*;
/**
* Reports on linear acceleration along the X, Y and Z axes
* Java wrapper for Qt class QAccelerometerReading
*/
public class QAccelerometerReading 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(QAccelerometerReading.class);
/**
* See QAccelerometerReading:: QAccelerometerReading(QObject*)
*/
public QAccelerometerReading(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAccelerometerReading instance, io.qt.core.QObject parent);
/**
* See QAccelerometerReading:: setX(qreal)
*/
@QtUninvokable
public final void setX(double x){
setX_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), x);
}
@QtUninvokable
private native void setX_native_qreal(long __this__nativeId, double x);
/**
* See QAccelerometerReading:: setY(qreal)
*/
@QtUninvokable
public final void setY(double y){
setY_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), y);
}
@QtUninvokable
private native void setY_native_qreal(long __this__nativeId, double y);
/**
* See QAccelerometerReading:: setZ(qreal)
*/
@QtUninvokable
public final void setZ(double z){
setZ_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), z);
}
@QtUninvokable
private native void setZ_native_qreal(long __this__nativeId, double z);
/**
* See QAccelerometerReading:: x()const
*/
@QtPropertyReader(name="x")
@QtUninvokable
public final double x(){
return x_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double x_native_constfct(long __this__nativeId);
/**
* See QAccelerometerReading:: y()const
*/
@QtPropertyReader(name="y")
@QtUninvokable
public final double y(){
return y_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double y_native_constfct(long __this__nativeId);
/**
* See QAccelerometerReading:: z()const
*/
@QtPropertyReader(name="z")
@QtUninvokable
public final double z(){
return z_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double z_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 QAccelerometerReading(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QAccelerometerReading(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QAccelerometerReading instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QAccelerometerReading(io.qt.core.QObject)}
* with parent = null
.
*/
public QAccelerometerReading() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #x()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getX() {
return x();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #y()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getY() {
return y();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #z()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getZ() {
return z();
}
}