io.qt.sensors.QMagnetometer 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.*;
/**
* Convenience wrapper around QSensor
* Java wrapper for Qt class QMagnetometer
*/
public class QMagnetometer extends io.qt.sensors.QSensor
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMagnetometer.class);
/**
* See QMagnetometer:: returnGeoValuesChanged(bool)
*/
@QtPropertyNotify(name="returnGeoValues")
public final @NonNull Signal1 returnGeoValuesChanged = new Signal1<>();
/**
* See QMagnetometer:: QMagnetometer(QObject*)
*/
public QMagnetometer(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QMagnetometer instance, io.qt.core.QObject parent);
/**
*
*/
@QtUninvokable
public final io.qt.sensors.@Nullable QMagnetometerReading reading(){
return reading_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.sensors.QMagnetometerReading reading_native_constfct(long __this__nativeId);
/**
* See QMagnetometer:: returnGeoValues()const
*/
@QtPropertyReader(name="returnGeoValues")
@QtUninvokable
public final boolean returnGeoValues(){
return returnGeoValues_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean returnGeoValues_native_constfct(long __this__nativeId);
/**
* See QMagnetometer:: setReturnGeoValues(bool)
*/
@QtPropertyWriter(name="returnGeoValues")
@QtUninvokable
public final void setReturnGeoValues(boolean returnGeoValues){
setReturnGeoValues_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), returnGeoValues);
}
@QtUninvokable
private native void setReturnGeoValues_native_bool(long __this__nativeId, boolean returnGeoValues);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMagnetometer(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QMagnetometer(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QMagnetometer instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QMagnetometer(io.qt.core.QObject)}
* with parent = null
.
*/
public QMagnetometer() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #returnGeoValues()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getReturnGeoValues() {
return returnGeoValues();
}
}