io.qt.sensors.QHumidityReading 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.*;
/**
* Holds readings from the humidity sensor
* Java wrapper for Qt class QHumidityReading
*/
public class QHumidityReading 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(QHumidityReading.class);
/**
* See QHumidityReading:: QHumidityReading(QObject*)
*/
public QHumidityReading(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QHumidityReading instance, io.qt.core.QObject parent);
/**
* See QHumidityReading:: absoluteHumidity()const
*/
@QtPropertyReader(name="absoluteHumidity")
@QtUninvokable
public final double absoluteHumidity(){
return absoluteHumidity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double absoluteHumidity_native_constfct(long __this__nativeId);
/**
* See QHumidityReading:: relativeHumidity()const
*/
@QtPropertyReader(name="relativeHumidity")
@QtUninvokable
public final double relativeHumidity(){
return relativeHumidity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double relativeHumidity_native_constfct(long __this__nativeId);
/**
* See QHumidityReading:: setAbsoluteHumidity(qreal)
*/
@QtUninvokable
public final void setAbsoluteHumidity(double value){
setAbsoluteHumidity_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native void setAbsoluteHumidity_native_qreal(long __this__nativeId, double value);
/**
* See QHumidityReading:: setRelativeHumidity(qreal)
*/
@QtUninvokable
public final void setRelativeHumidity(double percent){
setRelativeHumidity_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), percent);
}
@QtUninvokable
private native void setRelativeHumidity_native_qreal(long __this__nativeId, double percent);
/**
* 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 QHumidityReading(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QHumidityReading(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QHumidityReading instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QHumidityReading(io.qt.core.QObject)}
* with parent = null
.
*/
public QHumidityReading() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #absoluteHumidity()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getAbsoluteHumidity() {
return absoluteHumidity();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #relativeHumidity()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getRelativeHumidity() {
return relativeHumidity();
}
}