io.qt.qt3d.render.QWaitFence Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* FrameGraphNode used to wait for a fence in the graphics command stream to become signaled
* Java wrapper for Qt class Qt3DRender::QWaitFence
*/
public class QWaitFence extends io.qt.qt3d.render.QFrameGraphNode
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWaitFence.class);
/**
* Java wrapper for Qt enum Qt3DRender::QWaitFence::HandleType
*/
public enum HandleType implements QtEnumerator {
/**
* Representing Qt3DRender:: QWaitFence:: NoHandle
*/
NoHandle(0),
/**
* Representing Qt3DRender:: QWaitFence:: OpenGLFenceId
*/
OpenGLFenceId(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private HandleType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull HandleType resolve(int value) {
switch (value) {
case 0: return NoHandle;
case 1: return OpenGLFenceId;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DRender::QWaitFence:: handleChanged(QVariant)
*/
@QtPropertyNotify(name="handle")
public final @NonNull Signal1 handleChanged = new Signal1<>();
/**
* See Qt3DRender::QWaitFence:: handleTypeChanged(Qt3DRender::QWaitFence::HandleType)
*/
@QtPropertyNotify(name="handleType")
public final @NonNull Signal1 handleTypeChanged = new Signal1<>();
/**
* See Qt3DRender::QWaitFence:: timeoutChanged(quint64)
*/
@QtPropertyNotify(name="timeout")
public final @NonNull Signal1 timeoutChanged = new Signal1<>();
/**
* See Qt3DRender::QWaitFence:: waitOnCPUChanged(bool)
*/
@QtPropertyNotify(name="waitOnCPU")
public final @NonNull Signal1 waitOnCPUChanged = new Signal1<>();
/**
* See Qt3DRender::QWaitFence:: QWaitFence(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QWaitFence(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QWaitFence instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QWaitFence:: handle()const
* @return
*/
@QtPropertyReader(name="handle")
@QtUninvokable
public final java.lang.Object handle(){
return handle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object handle_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QWaitFence:: handleType()const
* @return
*/
@QtPropertyReader(name="handleType")
@QtUninvokable
public final io.qt.qt3d.render.QWaitFence.@NonNull HandleType handleType(){
return io.qt.qt3d.render.QWaitFence.HandleType.resolve(handleType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int handleType_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QWaitFence:: setHandle(QVariant)
* @param handle
*/
@QtPropertyWriter(name="handle")
@QtUninvokable
public final void setHandle(java.lang.Object handle){
setHandle_native_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), handle);
}
@QtUninvokable
private native void setHandle_native_QVariant(long __this__nativeId, java.lang.Object handle);
/**
* See Qt3DRender::QWaitFence:: setHandleType(Qt3DRender::QWaitFence::HandleType)
* @param type
*/
@QtPropertyWriter(name="handleType")
@QtUninvokable
public final void setHandleType(io.qt.qt3d.render.QWaitFence.@NonNull HandleType type){
setHandleType_native_Qt3DRender_QWaitFence_HandleType(QtJambi_LibraryUtilities.internal.nativeId(this), type.value());
}
@QtUninvokable
private native void setHandleType_native_Qt3DRender_QWaitFence_HandleType(long __this__nativeId, int type);
/**
* See Qt3DRender::QWaitFence:: setTimeout(quint64)
* @param timeout
*/
@QtPropertyWriter(name="timeout")
@QtUninvokable
public final void setTimeout(long timeout){
setTimeout_native_quint64(QtJambi_LibraryUtilities.internal.nativeId(this), timeout);
}
@QtUninvokable
private native void setTimeout_native_quint64(long __this__nativeId, long timeout);
/**
* See Qt3DRender::QWaitFence:: setWaitOnCPU(bool)
* @param waitOnCPU
*/
@QtPropertyWriter(name="waitOnCPU")
@QtUninvokable
public final void setWaitOnCPU(boolean waitOnCPU){
setWaitOnCPU_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), waitOnCPU);
}
@QtUninvokable
private native void setWaitOnCPU_native_bool(long __this__nativeId, boolean waitOnCPU);
/**
* See Qt3DRender::QWaitFence:: timeout()const
* @return
*/
@QtPropertyReader(name="timeout")
@QtUninvokable
public final long timeout(){
return timeout_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long timeout_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QWaitFence:: waitOnCPU()const
* @return
*/
@QtPropertyReader(name="waitOnCPU")
@QtUninvokable
public final boolean waitOnCPU(){
return waitOnCPU_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean waitOnCPU_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QWaitFence(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QWaitFence(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QWaitFence instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QWaitFence(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QWaitFence() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #handle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.Object getHandle() {
return handle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #handleType()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QWaitFence.@NonNull HandleType getHandleType() {
return handleType();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #timeout()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final long getTimeout() {
return timeout();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #waitOnCPU()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getWaitOnCPU() {
return waitOnCPU();
}
}