Class representing a default QNX EGL graphics output. More...
#include <kanzi/core.ui/platform/graphics_output/qnx_egl/default_qnx_egl_graphics_output.hpp>
Public Member Functions | |
bool | bringToFront () noexcept override |
Schedules raising the window above other windows. More... | |
KZ_NO_DISCARD optional< void * > | createImage (int target, void *data, int *attributes) noexcept override |
Function for creating native image object, which can be shared between client APIs. More... | |
DefaultQnxEGLGraphicsOutput (const DefaultQnxEGLGraphicsOutputProperties &properties) | |
Constructor. More... | |
bool | destroyImage (void *image) noexcept override |
Destroys an EGL image. More... | |
bool | flushContext () noexcept |
Flush any pending Qnx screen requests to the compositor. More... | |
void | gatherEvents (EventQueue &queue) override |
Amends the given event queue with events received so far. More... | |
optional< SurfaceColorSpace > | getColorSpace () const noexcept override |
Gets the color space used by the associated graphics context. More... | |
optional< GraphicsContextAPI > | getGraphicsContextAPI () const noexcept override |
Gets the API used by the associated graphics context. More... | |
KZ_NO_DISCARD optional< void * > | getNativeContextHandle () const noexcept override |
Gets associated native GL context handle. More... | |
KZ_NO_DISCARD optional< void * > | getNativeDisplayHandle () const noexcept override |
Gets associated native GL display handle. More... | |
optional< NativeEventHandle > | getNativeEventHandle () const noexcept override |
Returns a waitable event handle for this event source, if available. More... | |
KZ_NO_DISCARD optional< void * > | getNativeSurfaceHandle () const noexcept override |
Gets associated native GL surface handle. More... | |
optional< NativeWindowHandle > | getNativeWindowHandle () const noexcept override |
Gets the associated window handle. More... | |
KZ_NO_DISCARD GLProcPointer | getProcAddress (string_view functionName) override |
Retrieves pointer to GL function. More... | |
optional< SurfaceClientAPI > | getSurfaceClientAPI () const noexcept override |
Gets the type of the associated graphics surface. More... | |
Matrix4x4 | getTargetTransformation () const noexcept override |
Returns the target transformation. More... | |
optional< unsigned int > | getWindowHeight () const noexcept override |
Returns the active window height. More... | |
optional< int > | getWindowPositionX () const noexcept override |
Returns the window x position. More... | |
optional< int > | getWindowPositionY () const noexcept override |
Returns the window y position. More... | |
optional< string > | getWindowTitle () const noexcept override |
Gets title for the active window. More... | |
optional< unsigned int > | getWindowWidth () const noexcept override |
Returns the active window width. More... | |
bool | hideWindow () noexcept override |
Schedules making the window invisible. More... | |
void | logWindowPosition () const noexcept |
Prints the active window position to log. More... | |
void | logWindowSize () const noexcept |
Prints the active window size to log. More... | |
bool | makeCurrent () noexcept override |
Make the current EGL thread active. More... | |
bool | makeFullscreen () noexcept override |
Schedules making the window fullscreen. More... | |
bool | makeMaximized () noexcept override |
Schedules maximizing the window. More... | |
bool | makeMinimized () noexcept override |
Schedules minimizing the window. More... | |
bool | makeRegular () noexcept override |
Schedules making the window regular. More... | |
bool | makeWindowOpaque () noexcept |
Makes the active window fully opaque. More... | |
bool | moveWindow (int positionX, int positionY) noexcept override |
Schedules a window move. More... | |
bool | releaseCurrent () noexcept override |
Make the current EGL thread inactive. More... | |
bool | resize (unsigned int width, unsigned int height) noexcept override |
Schedules a resize of the target layout area. More... | |
bool | resizeWindow (unsigned int width, unsigned int height) noexcept override |
Schedules a resize of the active window. More... | |
bool | setWindowTitle (string_view title) noexcept override |
Sets a title for the active window. More... | |
bool | setWindowZOrder (int zorder) noexcept |
Sets the z ordering for the active window related to all other windows currently visible. More... | |
bool | showWindow () noexcept override |
Schedules making the window visible. More... | |
bool | swapBuffers () override |
Posts rendering results. More... | |
bool | swapInterval (int interval) override |
Sets minimum number of displayed video frames before a buffer swap. More... | |
~DefaultQnxEGLGraphicsOutput () | |
Destructor. More... | |
Public Member Functions inherited from kanzi::GraphicsOutput | |
KZ_NO_DISCARD Vector2 | getDpi () const noexcept |
Returns the resolution of the target coordinate system in dots per inch. More... | |
KZ_NO_DISCARD unsigned int | getHeight () const noexcept |
Returns the height of layout area in the target coordinate system. More... | |
KZ_NO_DISCARD unsigned int | getWidth () const noexcept |
Returns the width of layout area in the target coordinate system. More... | |
virtual | ~GraphicsOutput ()=default |
Destructor. More... | |
Public Member Functions inherited from kanzi::EventSource | |
virtual | ~EventSource ()=default |
Destructor. More... | |
Public Member Functions inherited from kanzi::GLGraphicsOutput | |
virtual | ~GLGraphicsOutput ()=default |
Destructor. More... | |
Public Member Functions inherited from kanzi::WindowedGraphicsOutput | |
virtual | ~WindowedGraphicsOutput ()=default |
Destructor. More... | |
Protected Member Functions | |
void | setTargetTransformation (Matrix4x4 targetTransformation) noexcept |
Sets the target transformation. More... | |
void | updateCachedValues (unsigned int width, unsigned int height) noexcept |
Updates all cached values from given layout size. More... | |
Protected Member Functions inherited from kanzi::GraphicsOutput | |
void | updateDpi (Vector2 dpi) |
Updates the target layout area resolution. More... | |
void | updateSize (unsigned int width, unsigned int height) |
Updates the target layout area size. More... | |
Additional Inherited Members | |
Public Types inherited from kanzi::GLGraphicsOutput | |
using | GLProcPointer) = void(*)( |
Pointer to GL function. More... | |
Class representing a default QNX EGL graphics output.
|
explicit |
Constructor.
properties | Specifies properties to request for the graphics output. |
kanzi::qnx::DefaultQnxEGLGraphicsOutput::~DefaultQnxEGLGraphicsOutput | ( | ) |
Destructor.
|
noexcept |
Prints the active window position to log.
|
noexcept |
Prints the active window size to log.
|
noexcept |
Sets the z ordering for the active window related to all other windows currently visible.
zorder | Z ordering. |
|
noexcept |
Makes the active window fully opaque.
|
noexcept |
Flush any pending Qnx screen requests to the compositor.
|
overridevirtual |
Amends the given event queue with events received so far.
queue | Event queue to be amended. Do not clear nor assume to be empty. |
Implements kanzi::EventSource.
|
overridevirtualnoexcept |
Returns a waitable event handle for this event source, if available.
nullopt | Getting the event handle failed. |
Implements kanzi::EventSource.
|
overridevirtual |
Retrieves pointer to GL function.
functionName | Name of the function. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Make the current EGL thread active.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Make the current EGL thread inactive.
Implements kanzi::GLGraphicsOutput.
|
overridevirtual |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
Implements kanzi::GLGraphicsOutput.
|
overridevirtual |
Sets minimum number of displayed video frames before a buffer swap.
interval | Minimum number of video frames to wait before buffer swap. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Returns the target transformation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Gets the API used by the associated graphics context.
nullopt | Getting the graphics context failed. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Gets the type of the associated graphics surface.
nullopt | Getting the graphics surface failed. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Gets the color space used by the associated graphics context.
nullopt | Getting the color space failed. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Gets associated native GL display handle.
nullopt | Getting GL display failed. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Gets associated native GL context handle.
nullopt | Getting GL context failed. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Gets associated native GL surface handle.
nullopt | Getting GL surface failed. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Function for creating native image object, which can be shared between client APIs.
The returned image must be destroyed using destroyImage().
target | Context-specific target specifier. |
data | Data to use as image contents. |
attributes | Context-specific attributes list. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Destroys an EGL image.
image | EGL image to destroy. |
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
Schedules a resize of the target layout area.
width | New target layout area width in pixels. |
height | New target layout area height in pixels. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Sets a title for the active window.
title | Window title to set. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Gets title for the active window.
nullopt | Getting the title failed. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules a resize of the active window.
width | New window width in implementation defined units. |
height | New window height in implementation defined units. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Returns the active window width.
nullopt | Getting the width failed. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Returns the active window height.
nullopt | Getting the height failed. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules a window move.
positionX | New window x position in implementation defined units. |
positionY | New window y position in implementation defined units. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Returns the window x position.
nullopt | Getting the x position failed. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Returns the window y position.
nullopt | Getting the y position failed. |
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules making the window fullscreen.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules making the window regular.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules maximizing the window.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules minimizing the window.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules making the window visible.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules making the window invisible.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Schedules raising the window above other windows.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
Gets the associated window handle.
nullopt | Getting associated window handle failed. |
Implements kanzi::WindowedGraphicsOutput.
|
inlineprotectednoexcept |
Sets the target transformation.
targetTransformation | The target transformation matrix. |
|
protectednoexcept |
Updates all cached values from given layout size.
width | Layout area width in pixels. |
height | Layout area height in pixels. |