io.qt.gui.nativeinterface.QEGLContext Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.nativeinterface;
import io.qt.*;
/**
* Native interface to an EGL context
* Java wrapper for Qt class QNativeInterface::QEGLContext
*/
public interface QEGLContext extends QtObjectInterface
{
/**
* @hidden
* Implementor class for interface {@link io.qt.gui.nativeinterface.QEGLContext}
*/
public static abstract class Impl extends QtObject
implements io.qt.gui.nativeinterface.QEGLContext
{
static {
QtJambi_LibraryUtilities.initialize();
}
@NativeAccess
private static final class ConcreteWrapper extends QEGLContext.Impl {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public @NonNull QNativePointer display(){
return display_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static QNativePointer display_native_constfct(long __this__nativeId);
@Override
@QtUninvokable
public void invalidateContext(){
invalidateContext_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static void invalidateContext_native(long __this__nativeId);
@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::QEGLContext:: display()const
*/
@QtUninvokable
public abstract @NonNull QNativePointer display();
/**
* Marks the context as invalid
* See QNativeInterface::QEGLContext:: invalidateContext()
*/
@QtUninvokable
public abstract void invalidateContext();
/**
* See QNativeInterface::QEGLContext:: nativeContext()const
*/
@QtUninvokable
public abstract @NonNull QNativePointer nativeContext();
/**
* Adopts an EGLContext context
* See QNativeInterface::QEGLContext:: fromNative(EGLContext, EGLDisplay, QOpenGLContext*)
*/
private static io.qt.gui.@Nullable QOpenGLContext fromNative(@NonNull QNativePointer context, @NonNull QNativePointer display, io.qt.gui.@Nullable QOpenGLContext shareContext){
return fromNative_native_EGLContext_EGLDisplay_QOpenGLContext_ptr(context, display, QtJambi_LibraryUtilities.internal.checkedNativeId(shareContext));
}
private native static io.qt.gui.QOpenGLContext fromNative_native_EGLContext_EGLDisplay_QOpenGLContext_ptr(QNativePointer context, QNativePointer display, long shareContext);
/**
* 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 display) {
return fromNative(context, display, (io.qt.gui.QOpenGLContext)null);
}
}
/**
* See QNativeInterface::QEGLContext:: display()const
*/
@QtUninvokable
public @NonNull QNativePointer display();
/**
* Marks the context as invalid
* See QNativeInterface::QEGLContext:: invalidateContext()
*/
@QtUninvokable
public void invalidateContext();
/**
* See QNativeInterface::QEGLContext:: nativeContext()const
*/
@QtUninvokable
public @NonNull QNativePointer nativeContext();
/**
* Adopts an EGLContext context
* See QNativeInterface::QEGLContext:: fromNative(EGLContext, EGLDisplay, QOpenGLContext*)
*/
public static io.qt.gui.@Nullable QOpenGLContext fromNative(@NonNull QNativePointer context, @NonNull QNativePointer display, io.qt.gui.@Nullable QOpenGLContext shareContext){
return Impl.fromNative(context, display, shareContext);
}
/**
* 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 display) {
return fromNative(context, display, (io.qt.gui.QOpenGLContext)null);
}
}