All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.nativeinterface.QCocoaGLContext Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui.nativeinterface;

import io.qt.*;


/**
 * 

Native interface to an NSOpenGLContext on macOS

*

Java wrapper for Qt class QNativeInterface::QCocoaGLContext

*/ public interface QCocoaGLContext extends QtObjectInterface { /** * @hidden *

Implementor class for interface {@link io.qt.gui.nativeinterface.QCocoaGLContext}

*/ public static abstract class Impl extends QtObject implements io.qt.gui.nativeinterface.QCocoaGLContext { static { QtJambi_LibraryUtilities.initialize(); } @NativeAccess private static final class ConcreteWrapper extends QCocoaGLContext.Impl { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public @Nullable QNativePointer nativeContext(){ return nativeContext_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static QNativePointer nativeContext_native_constfct(long __this__nativeId); } /** *

See QNativeInterface::QCocoaGLContext::nativeContext()const

*/ @QtUninvokable public abstract @Nullable QNativePointer nativeContext(); /** *

Adopts an NSOpenGLContext

*

See QNativeInterface::QCocoaGLContext::fromNative(NSOpenGLContext*,QOpenGLContext*)

*/ private static io.qt.gui.@Nullable QOpenGLContext fromNative(@Nullable QNativePointer context, io.qt.gui.@Nullable QOpenGLContext shareContext){ return fromNative_native_NSOpenGLContext_ptr_QOpenGLContext_ptr(context, QtJambi_LibraryUtilities.internal.checkedNativeId(shareContext)); } private native static io.qt.gui.QOpenGLContext fromNative_native_NSOpenGLContext_ptr_QOpenGLContext_ptr(QNativePointer context, 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, io.qt.gui.QOpenGLContext)} * with shareContext = null.

*/ private static io.qt.gui.@Nullable QOpenGLContext fromNative(@Nullable QNativePointer context) { return fromNative(context, (io.qt.gui.QOpenGLContext)null); } } /** *

See QNativeInterface::QCocoaGLContext::nativeContext()const

*/ @QtUninvokable public @Nullable QNativePointer nativeContext(); /** *

Adopts an NSOpenGLContext

*

See QNativeInterface::QCocoaGLContext::fromNative(NSOpenGLContext*,QOpenGLContext*)

*/ public static io.qt.gui.@Nullable QOpenGLContext fromNative(@Nullable QNativePointer context, io.qt.gui.@Nullable QOpenGLContext shareContext){ return Impl.fromNative(context, shareContext); } /** *

Overloaded function for {@link #fromNative(QNativePointer, io.qt.gui.QOpenGLContext)} * with shareContext = null.

*/ public static io.qt.gui.@Nullable QOpenGLContext fromNative(@Nullable QNativePointer context) { return fromNative(context, (io.qt.gui.QOpenGLContext)null); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy