QNativeInterface::QCocoaGLContext Struct
macOS における NSOpenGLContext へのネイティブインターフェース。詳細...
| ヘッダー: | #include <QOpenGLContext> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 以下のように: | Qt 6.0以降 |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QCocoaGLContext はNative Interfaces の一部です。
パブリック関数
| QCocoaGLContext() | |
| QCocoaGLContext(const QNativeInterface::QCocoaGLContext &) | |
| QCocoaGLContext(QNativeInterface::QCocoaGLContext &&) | |
| virtual NSOpenGLContext * | nativeContext() const = 0 |
| QNativeInterface::QCocoaGLContext & | operator=(QNativeInterface::QCocoaGLContext &&) |
| QNativeInterface::QCocoaGLContext & | operator=(const QNativeInterface::QCocoaGLContext &) |
静的パブリックメンバー
| QOpenGLContext * | fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr) |
詳細な説明
QOpenGLContext::nativeInterface() を通じてアクセスします。
メンバ関数のドキュメント
[constexpr noexcept default] QCocoaGLContext::QCocoaGLContext()
QCocoaGLContext のインスタンスをデフォルトコンストラクタで生成します。
[delete] QCocoaGLContext::QCocoaGLContext(const QNativeInterface::QCocoaGLContext &)
QCocoaGLContext のインスタンスをコピーして生成します。この関数は削除されています。
[delete] QCocoaGLContext::QCocoaGLContext(QNativeInterface::QCocoaGLContext &&)
QCocoaGLContext のインスタンスをMoveコンストラクタで生成します。この関数は削除されています。
[static] QOpenGLContext *QCocoaGLContext::fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)
NSOpenGLContext を取得します。
取得された NSOpenGLContextcontext は保持されます。作成されたQOpenGLContext shareContext の所有権は呼び出し元に譲渡されます。
[pure virtual] NSOpenGLContext *QCocoaGLContext::nativeContext() const
基になる NSOpenGLContext を返します。
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(QNativeInterface::QCocoaGLContext &&)
other をこのQCocoaGLContext インスタンスにムーブ代入します。この関数は削除されます。
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(const QNativeInterface::QCocoaGLContext &)
other をこのQCocoaGLContext インスタンスにコピー代入します。この関数は削除されます。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.