io.qt.gui.nativeinterface.QGLXContext Maven / Gradle / Ivy
package io.qt.gui.nativeinterface;
/**
* Native interface to a GLX context
* Java wrapper for Qt class QNativeInterface::QGLXContext
*/
public interface QGLXContext extends io.qt.QtObjectInterface
{
/**
* Implementor class for interface {@link io.qt.gui.nativeinterface.QGLXContext}
*/
public static abstract class Impl extends io.qt.QtObject
implements io.qt.gui.nativeinterface.QGLXContext
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.NativeAccess
private static final class ConcreteWrapper extends QGLXContext.Impl {
@io.qt.NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public io.qt.QNativePointer nativeContext(){
throw new io.qt.QNoImplementationException();
}
private native static io.qt.QNativePointer nativeContext_native_constfct(long __this__nativeId);
}
/**
* See QNativeInterface::QGLXContext::nativeContext()const
*/
@io.qt.QtUninvokable
public abstract io.qt.QNativePointer nativeContext();
/**
* Overloaded function for {@link #fromNative(io.qt.QNativePointer, io.qt.gui.QOpenGLContext)}
* with shareContext = null
.
*/
private static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer configBasedContext) {
return fromNative(configBasedContext, (io.qt.gui.QOpenGLContext)null);
}
/**
* Adopts a GLXContext configBasedContext created from an FBConfig
* See QNativeInterface::QGLXContext::fromNative(GLXContext,QOpenGLContext*)
*/
private static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer configBasedContext, io.qt.gui.QOpenGLContext shareContext){
return fromNative_native_GLXContext_QOpenGLContext_ptr(configBasedContext, QtJambi_LibraryUtilities.internal.checkedNativeId(shareContext));
}
private native static io.qt.gui.QOpenGLContext fromNative_native_GLXContext_QOpenGLContext_ptr(io.qt.QNativePointer configBasedContext, long shareContext);
/**
* Overloaded function for {@link #fromNative(io.qt.QNativePointer, io.qt.QNativePointer, io.qt.gui.QOpenGLContext)}
* with shareContext = null
.
*/
private static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer visualBasedContext, io.qt.QNativePointer visualInfo) {
return fromNative(visualBasedContext, visualInfo, (io.qt.gui.QOpenGLContext)null);
}
/**
* Adopts a GLXContext created from an X visual
* See QNativeInterface::QGLXContext::fromNative(GLXContext,void*,QOpenGLContext*)
*/
private static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer visualBasedContext, io.qt.QNativePointer visualInfo, io.qt.gui.QOpenGLContext shareContext){
return fromNative_native_GLXContext_void_ptr_QOpenGLContext_ptr(visualBasedContext, visualInfo, QtJambi_LibraryUtilities.internal.checkedNativeId(shareContext));
}
private native static io.qt.gui.QOpenGLContext fromNative_native_GLXContext_void_ptr_QOpenGLContext_ptr(io.qt.QNativePointer visualBasedContext, io.qt.QNativePointer visualInfo, long shareContext);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected Impl(QPrivateConstructor p) { super(p); }
}
/**
* See QNativeInterface::QGLXContext::nativeContext()const
*/
@io.qt.QtUninvokable
public io.qt.QNativePointer nativeContext();
/**
* Overloaded function for {@link #fromNative(io.qt.QNativePointer, io.qt.gui.QOpenGLContext)}
* with shareContext = null
.
*/
public static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer configBasedContext) {
return fromNative(configBasedContext, (io.qt.gui.QOpenGLContext)null);
}
/**
* Adopts a GLXContext configBasedContext created from an FBConfig
* See QNativeInterface::QGLXContext::fromNative(GLXContext,QOpenGLContext*)
*/
public static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer configBasedContext, io.qt.gui.QOpenGLContext shareContext){
return Impl.fromNative(configBasedContext, shareContext);
}
/**
* Overloaded function for {@link #fromNative(io.qt.QNativePointer, io.qt.QNativePointer, io.qt.gui.QOpenGLContext)}
* with shareContext = null
.
*/
public static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer visualBasedContext, io.qt.QNativePointer visualInfo) {
return fromNative(visualBasedContext, visualInfo, (io.qt.gui.QOpenGLContext)null);
}
/**
* Adopts a GLXContext created from an X visual
* See QNativeInterface::QGLXContext::fromNative(GLXContext,void*,QOpenGLContext*)
*/
public static io.qt.gui.QOpenGLContext fromNative(io.qt.QNativePointer visualBasedContext, io.qt.QNativePointer visualInfo, io.qt.gui.QOpenGLContext shareContext){
return Impl.fromNative(visualBasedContext, visualInfo, shareContext);
}
}