Class representing a Qnx EGL window.
More...
#include <kanzi/core.ui/platform/windowing_ng/qnx_egl/qnx_egl_window.hpp>
Class representing a Qnx EGL window.
kanzi::qnx::QnxEGLWindow::QnxEGLWindow |
( |
const QnxContext & |
qnxContext, |
|
|
int |
bufferCount, |
|
|
int |
usageFlags |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
qnxContext | Qnx context. |
bufferCount | Amount of buffers to create for a window. |
usageFlags | Usage flag bit mask to use for a window. |
kanzi::qnx::QnxEGLWindow::QnxEGLWindow |
( |
const QnxContext & |
qnxContext, |
|
|
const EGLDisplay & |
eglDisplay, |
|
|
const EGLConfig & |
eglConfig, |
|
|
int |
bufferCount, |
|
|
int |
usageFlags |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
qnxContext | Qnx context. |
eglDisplay | EGL display. |
eglConfig | EGL config. |
bufferCount | Amount of buffers to create for a window. |
usageFlags | Usage flag bit mask to use for a window. |
bool kanzi::qnx::QnxEGLWindow::makeCurrent |
( |
const EGLDisplay & |
eglDisplay, |
|
|
const EGLContext & |
eglContext |
|
) |
| |
|
inlinenoexcept |
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.
bool kanzi::qnx::QnxEGLWindow::swapBuffers |
( |
const EGLDisplay & |
eglDisplay | ) |
const |
|
inline |
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.
bool kanzi::qnx::QnxEGLWindow::show |
( |
| ) |
|
|
inlinenoexcept |
Shows this window.
- Returns
- True on success, false on failure.
Tries to get the size for this window.
- Return values
-
nullopt | Getting the size failed. |
- Returns
- Window size in pixels.
Sets size for this window.
- Parameters
-
windowSize | Window size to set in pixels. |
- Returns
- True on success, false on failure.
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.
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.
bool kanzi::qnx::QnxEGLWindow::setZOrder |
( |
int |
zorder | ) |
|
|
inlinenoexcept |
Sets z-order for this window.
- Parameters
-
- Returns
- True on success, false on failure.
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.
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.
bool kanzi::qnx::QnxEGLWindow::setPropertyDisplay |
( |
const QnxDisplay & |
qnxDisplay | ) |
|
|
inlinenoexcept |
Sets the display for this window.
- Parameters
-
qnxDisplay | Display to set. |
- Returns
- True on success, false on failure.
The documentation for this class was generated from the following file: