io.qt.gui.nativeinterface.QWGLContext Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.nativeinterface;
import io.qt.*;
/**
* Native interface to a WGL context on Windows
* Java wrapper for Qt class QNativeInterface::QWGLContext
*/
public interface QWGLContext extends QtObjectInterface
{
/**
* @hidden
* Implementor class for interface {@link io.qt.gui.nativeinterface.QWGLContext}
*/
public static abstract class Impl extends QtObject
implements io.qt.gui.nativeinterface.QWGLContext
{
static {
QtJambi_LibraryUtilities.initialize();
}
@NativeAccess
private static final class ConcreteWrapper extends QWGLContext.Impl {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public @NonNull QNativePointer nativeContext(){
return nativeContext_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static QNativePointer nativeContext_native_constfct(long __this__nativeId);
}
/**
* See QNativeInterface::QWGLContext:: nativeContext()const
*/
@QtUninvokable
public abstract @NonNull QNativePointer nativeContext();
/**
* Adopts an WGL context handle
* See QNativeInterface::QWGLContext:: fromNative(HGLRC, HWND, QOpenGLContext*)
*/
private static io.qt.gui.@Nullable QOpenGLContext fromNative(@NonNull QNativePointer context, @NonNull QNativePointer window, io.qt.gui.@Nullable QOpenGLContext shareContext){
return fromNative_native_HGLRC_HWND_QOpenGLContext_ptr(context, window, QtJambi_LibraryUtilities.internal.checkedNativeId(shareContext));
}
private native static io.qt.gui.QOpenGLContext fromNative_native_HGLRC_HWND_QOpenGLContext_ptr(QNativePointer context, QNativePointer window, long shareContext);
/**
* See QNativeInterface::QWGLContext:: openGLModuleHandle()
*/
private native static @Nullable QNativePointer openGLModuleHandle();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected Impl(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #fromNative(QNativePointer, QNativePointer, io.qt.gui.QOpenGLContext)}
* with shareContext = null
.
*/
private static io.qt.gui.@Nullable QOpenGLContext fromNative(@NonNull QNativePointer context, @NonNull QNativePointer window) {
return fromNative(context, window, (io.qt.gui.QOpenGLContext)null);
}
}
/**
* See QNativeInterface::QWGLContext:: nativeContext()const
*/
@QtUninvokable
public @NonNull QNativePointer nativeContext();
/**
* Adopts an WGL context handle
* See QNativeInterface::QWGLContext:: fromNative(HGLRC, HWND, QOpenGLContext*)
*/
public static io.qt.gui.@Nullable QOpenGLContext fromNative(@NonNull QNativePointer context, @NonNull QNativePointer window, io.qt.gui.@Nullable QOpenGLContext shareContext){
return Impl.fromNative(context, window, shareContext);
}
/**
* See QNativeInterface::QWGLContext:: openGLModuleHandle()
*/
public static @Nullable QNativePointer openGLModuleHandle(){
return Impl.openGLModuleHandle();
}
/**
* Overloaded function for {@link #fromNative(QNativePointer, QNativePointer, io.qt.gui.QOpenGLContext)}
* with shareContext = null
.
*/
public static io.qt.gui.@Nullable QOpenGLContext fromNative(@NonNull QNativePointer context, @NonNull QNativePointer window) {
return fromNative(context, window, (io.qt.gui.QOpenGLContext)null);
}
}