io.qt.sensors.QLightSensor 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 QLightSensor
*/
public class QLightSensor 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(QLightSensor.class);
/**
* See QLightSensor:: fieldOfViewChanged(qreal)
*/
@QtPropertyNotify(name="fieldOfView")
public final @NonNull Signal1 fieldOfViewChanged = new Signal1<>();
/**
* See QLightSensor:: QLightSensor(QObject*)
*/
public QLightSensor(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QLightSensor instance, io.qt.core.QObject parent);
/**
* See QLightSensor:: fieldOfView()const
*/
@QtPropertyReader(name="fieldOfView")
@QtUninvokable
public final double fieldOfView(){
return fieldOfView_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double fieldOfView_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.sensors.@Nullable QLightReading reading(){
return reading_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.sensors.QLightReading reading_native_constfct(long __this__nativeId);
/**
* See QLightSensor:: setFieldOfView(qreal)
*/
@QtUninvokable
public final void setFieldOfView(double fieldOfView){
setFieldOfView_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), fieldOfView);
}
@QtUninvokable
private native void setFieldOfView_native_qreal(long __this__nativeId, double fieldOfView);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QLightSensor(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QLightSensor(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QLightSensor instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QLightSensor(io.qt.core.QObject)}
* with parent = null
.
*/
public QLightSensor() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #fieldOfView()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getFieldOfView() {
return fieldOfView();
}
}