io.qt.gui.rhi.QRhiGles2NativeHandles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui.rhi;
import io.qt.*;
/**
* Holds the OpenGL context used by the QRhi
* Java wrapper for Qt class QRhiGles2NativeHandles
*/
public class QRhiGles2NativeHandles extends io.qt.gui.rhi.QRhiNativeHandles
{
@QtPropertyMember(enabled=false)
private Object __rccontext = null;
/**
* See QRhiGles2NativeHandles:: QRhiGles2NativeHandles()
*/
public QRhiGles2NativeHandles(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiGles2NativeHandles instance);
/**
* See QRhiGles2NativeHandles:: context
*/
@QtUninvokable
public final void setContext(io.qt.gui.@Nullable QOpenGLContext context){
setContext_native_QOpenGLContext_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(context));
__rccontext = context;
}
@QtUninvokable
private native void setContext_native_QOpenGLContext_ptr(long __this__nativeId, long context);
/**
* See QRhiGles2NativeHandles:: context
*/
@QtUninvokable
public final io.qt.gui.@Nullable QOpenGLContext context(){
return context_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QOpenGLContext context_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiGles2NativeHandles(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #context()} instead.
*/
@QtUninvokable
public final io.qt.gui.@Nullable QOpenGLContext getContext() {
return context();
}
}