io.qt.sensors.QIRProximityReading 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.*;
/**
* Java wrapper for Qt class QIRProximityReading
*/
public class QIRProximityReading 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(QIRProximityReading.class);
/**
* See QIRProximityReading:: QIRProximityReading(QObject*)
*/
public QIRProximityReading(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QIRProximityReading instance, io.qt.core.QObject parent);
/**
* See QIRProximityReading:: reflectance()const
*/
@QtPropertyReader(name="reflectance")
@QtUninvokable
public final double reflectance(){
return reflectance_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double reflectance_native_constfct(long __this__nativeId);
/**
* See QIRProximityReading:: setReflectance(qreal)
*/
@QtUninvokable
public final void setReflectance(double reflectance){
setReflectance_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), reflectance);
}
@QtUninvokable
private native void setReflectance_native_qreal(long __this__nativeId, double reflectance);
/**
* 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 QIRProximityReading(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QIRProximityReading(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QIRProximityReading instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QIRProximityReading(io.qt.core.QObject)}
* with parent = null
.
*/
public QIRProximityReading() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #reflectance()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getReflectance() {
return reflectance();
}
}