Class representing a QNX EGL window.
More...
#include <kanzi/platform/platform/windowing_ng/qnx_egl/qnx_egl_window.hpp>
|
| bool | createBuffers (int bufferCount) noexcept |
| | Creates buffers for this window.
|
| |
| KZ_NO_DISCARD optional< void * > | getNativeSurfaceHandle () const noexcept |
| | Gets associated native EGL surface handle.
|
| |
| KZ_NO_DISCARD optional< QnxWindow::NativeHandleType > | getNativeWindowHandle () const noexcept |
| | Gets the associated window handle.
|
| |
| KZ_NO_DISCARD optional< windowing::Size > | getSize () const noexcept |
| | Tries to get the size for this window.
|
| |
| bool | makeCurrent (const EGLDisplay &eglDisplay, const EGLContext &eglContext) noexcept |
| | Binds a window surface to a context and the current thread.
|
| |
| | QnxEGLWindow (const QnxContext &qnxContext, const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, SurfaceColorSpace surfaceColorSpace, optional< windowing::Size > windowSize, int bufferCount, int usageFlags, optional< int > pipelineID, optional< int > selfLayout) |
| | Constructor.
|
| |
| | QnxEGLWindow (const QnxContext &qnxContext, optional< windowing::Size > windowSize, int bufferCount, int usageFlags, optional< int > pipelineID, optional< int > selfLayout) |
| | Constructor.
|
| |
| bool | setPosition (windowing::Position windowPosition) noexcept |
| | Sets position for this window.
|
| |
| bool | setPropertyDisplay (const QnxDisplay &qnxDisplay) noexcept |
| | Sets the display for this window.
|
| |
| bool | setSize (windowing::Size windowSize) noexcept |
| | Sets size for this window.
|
| |
| bool | setTitle (string_view windowTitle) noexcept |
| | Sets a window title.
|
| |
| bool | setUsageFlags (int usageFlags) noexcept |
| | Sets usage flags for this window.
|
| |
| bool | setZOrder (int zorder) noexcept |
| | Sets z-order for this window.
|
| |
| bool | show () noexcept |
| | Shows this window.
|
| |
| bool | swapBuffers (const EGLDisplay &eglDisplay) const |
| | Posts rendering results.
|
| |
Class representing a QNX EGL window.
◆ QnxEGLWindow() [1/2]
Constructor.
- Parameters
-
| qnxContext | QNX context. |
| windowSize | Window size. |
| bufferCount | Amount of buffers to create for a window. |
| usageFlags | Usage flag bit mask to use for a window. |
| pipelineID | QNX Screen pipeline ID. |
| selfLayout | QNX window self layout option. |
- Since
- Kanzi 4.0.0 Added windowSize and pipelineID parameters.
-
Kanzi 4.0.0 Added selfLayout property for the window.
◆ QnxEGLWindow() [2/2]
Constructor.
- Parameters
-
| qnxContext | QNX context. |
| eglDisplay | EGL display. |
| eglConfig | EGL config. |
| surfaceColorSpace | Color space to use for the surface. |
| windowSize | Window size. |
| bufferCount | Amount of buffers to create for a window. |
| usageFlags | Usage flag bit mask to use for a window. |
| pipelineID | QNX Screen pipeline ID. |
| selfLayout | QNX window self layout option. |
- Since
- Kanzi 4.0.0 Added surfaceColorSpace, windowSize and pipelineID parameters.
-
Kanzi 4.0.0 Added selfLayout property for the window.
◆ makeCurrent()
Binds a window surface to a context and the current thread.
- Parameters
-
| eglDisplay | EGL display connection of the EGL context. |
| eglContext | EGL context to bind to. |
- Returns
- True on success, false on failure.
◆ swapBuffers()
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
- Parameters
-
| eglDisplay | EGL display connection. |
- See also
- swapInterval().
- Returns
- True on success, false on failure.
- Postcondition
- egl::getError() returns EGL_SUCCESS.
◆ show()
| bool kanzi::qnx::QnxEGLWindow::show |
( |
| ) |
|
|
inlinenoexcept |
Shows this window.
- Returns
- True on success, false on failure.
◆ getSize()
Tries to get the size for this window.
- Return values
-
| nullopt | Getting the size failed. |
- Returns
- Window size in pixels.
- Since
- Kanzi 4.0.0 renamed from tryGetSize.
◆ setSize()
Sets size for this window.
- Parameters
-
| windowSize | Window size to set in pixels. |
- Returns
- True on success, false on failure.
◆ setPosition()
Sets position for this window.
Child window and embedded window positions are relative to their parent window positions.
- Parameters
-
| windowPosition | Window position to set in pixels. |
- Returns
- True on success, false on failure.
◆ setUsageFlags()
| bool kanzi::qnx::QnxEGLWindow::setUsageFlags |
( |
int | usageFlags | ) |
|
|
inlinenoexcept |
Sets usage flags for this window.
- Parameters
-
| usageFlags | Usage flag bit mask to use. |
- Returns
- True on success, false on failure.
◆ setZOrder()
| bool kanzi::qnx::QnxEGLWindow::setZOrder |
( |
int | zorder | ) |
|
|
inlinenoexcept |
Sets z-order for this window.
- Parameters
-
- Returns
- True on success, false on failure.
◆ setTitle()
| bool kanzi::qnx::QnxEGLWindow::setTitle |
( |
string_view | windowTitle | ) |
|
|
inlinenoexcept |
Sets a window title.
- Parameters
-
| windowTitle | Window title to set. |
- Returns
- True on success, false on failure.
◆ createBuffers()
| bool kanzi::qnx::QnxEGLWindow::createBuffers |
( |
int | bufferCount | ) |
|
|
inlinenoexcept |
Creates buffers for this window.
- Parameters
-
| bufferCount | Amount of buffers to create. |
- Returns
- True on success, false on failure.
◆ setPropertyDisplay()
Sets the display for this window.
- Parameters
-
| qnxDisplay | Display to set. |
- Returns
- True on success, false on failure.
- Since
- Kanzi 4.0.0 renamed from trySetPropertyDisplay.
◆ getNativeWindowHandle()
Gets the associated window handle.
- Return values
-
| nullopt | Error has occured. |
- Returns
- Native window handle.
- Since
- Kanzi 4.0.0
◆ getNativeSurfaceHandle()
| KZ_NO_DISCARD optional< void * > kanzi::qnx::QnxEGLWindow::getNativeSurfaceHandle |
( |
| ) |
const |
|
noexcept |
Gets associated native EGL surface handle.
- Return values
-
| nullopt | Error has occured. |
- Returns
- The handle of associated surface object.
- Since
- Kanzi 4.0.0
The documentation for this class was generated from the following file: