Kanzi 3.9.10
kanzi::qnx::QnxEGLPBufferGraphicsOutput Class Reference

Class representing a QNX EGL pixel buffer graphics output. More...

#include <kanzi/core.ui/platform/graphics_output/qnx_egl_pbuffer/qnx_egl_pbuffer_graphics_output.hpp>

Inheritance diagram for kanzi::qnx::QnxEGLPBufferGraphicsOutput:
[legend]

Public Member Functions

KZ_NO_DISCARD optional< void * > createImage (int target, void *data, int *attributes) noexcept override
 GLGraphicsOutput::createImage() implementation.
 
shared_ptr< QnxEGLWindowcreateWindow (unsigned int bufferCount, int usageFlags) noexcept
 Creates a QNX EGL window.
 
bool destroyImage (void *image) noexcept override
 GLGraphicsOutput::destroyImage() implementation.
 
bool flushContext () noexcept
 Flushes any pending QNX Screen requests to the compositor.
 
void gatherEvents (EventQueue &queue) override
 EventSource::gatherEvents() implementation.
 
optional< SurfaceColorSpacegetColorSpace () const noexcept override
 GLGraphicsOutput::getColorSpace() implementation.
 
optional< GraphicsContextAPIgetGraphicsContextAPI () const noexcept override
 GLGraphicsOutput::getGraphicsContextAPI() implementation.
 
KZ_NO_DISCARD optional< void * > getNativeContextHandle () const noexcept override
 GLGraphicsOutput::getNativeContextHandle() implementation.
 
KZ_NO_DISCARD optional< void * > getNativeDisplayHandle () const noexcept override
 GLGraphicsOutput::getNativeDisplayHandle() implementation.
 
optional< NativeEventHandlegetNativeEventHandle () const noexcept override
 EventSource::getNativeEventHandle() implementation.
 
KZ_NO_DISCARD optional< void * > getNativeSurfaceHandle () const noexcept override
 GLGraphicsOutput::getNativeSurfaceHandle() implementation.
 
KZ_NO_DISCARD GLProcPointer getProcAddress (string_view functionName) override
 GLGraphicsOutput::getProcAddress() implementation.
 
optional< SurfaceClientAPIgetSurfaceClientAPI () const noexcept override
 GLGraphicsOutput::getSurfaceClientAPI() implementation.
 
Matrix4x4 getTargetTransformation () const noexcept override
 GLGraphicsOutput::getGraphicsContextAPI() implementation.
 
bool makeCurrent () noexcept override
 GLGraphicsOutput::makeCurrent() implementation.
 
bool makeCurrent (QnxEGLWindow &qnxEGLWindow) noexcept
 Make the current EGL thread active.
 
QnxEGLPBufferGraphicsOutputoperator= (const QnxEGLPBufferGraphicsOutput &)=delete
 Copy assignment operator.
 
QnxEGLPBufferGraphicsOutputoperator= (QnxEGLPBufferGraphicsOutput &&) noexcept=delete
 Move assignment operator.
 
 QnxEGLPBufferGraphicsOutput (const QnxEGLPBufferGraphicsOutput &)=delete
 Copy constructor.
 
 QnxEGLPBufferGraphicsOutput (const QnxEGLPBufferGraphicsOutputProperties &properties)
 Constructor.
 
 QnxEGLPBufferGraphicsOutput (QnxEGLPBufferGraphicsOutput &&) noexcept=delete
 Move constructor.
 
bool releaseCurrent () noexcept override
 GLGraphicsOutput::releaseCurrent() implementation.
 
bool swapBuffers () override
 GLGraphicsOutput::swapBuffers() implementation.
 
bool swapBuffers (QnxEGLWindow &qnxEGLWindow) noexcept
 Posts rendering results.
 
bool swapInterval (int interval) override
 GLGraphicsOutput::swapInterval() implementation.
 
KZ_NO_DISCARD optional< vector< QnxDisplay > > tryGetQnxDisplays () const noexcept
 Tries to get the displays associated with the context.
 
KZ_NO_DISCARD int tryGetQnxEGLScreenUsageFlags () const noexcept
 Tries to get QNX Screen EGL usage flags compatible with the current EGL configuration.
 
 ~QnxEGLPBufferGraphicsOutput ()
 Destructor.
 
- 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.
 
KZ_NO_DISCARD unsigned int getHeight () const noexcept
 Returns the height of layout area in the target coordinate system.
 
KZ_NO_DISCARD unsigned int getWidth () const noexcept
 Returns the width of layout area in the target coordinate system.
 
virtual ~GraphicsOutput ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::EventSource
virtual ~EventSource ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::GLGraphicsOutput
virtual ~GLGraphicsOutput ()=default
 Destructor.
 

Protected Member Functions

void setTargetTransformation (Matrix4x4 targetTransformation) noexcept
 Sets the target transformation.
 
void updateCachedValues (unsigned int width, unsigned int height) noexcept
 Updates all cached values from given layout size.
 
- Protected Member Functions inherited from kanzi::GraphicsOutput
void updateDpi (Vector2 dpi)
 Updates the target layout area resolution.
 
void updateSize (unsigned int width, unsigned int height)
 Updates the target layout area size.
 

Additional Inherited Members

- Public Types inherited from kanzi::GLGraphicsOutput
using GLProcPointer
 Pointer to GL function.
 

Detailed Description

Class representing a QNX EGL pixel buffer graphics output.

Constructor & Destructor Documentation

◆ QnxEGLPBufferGraphicsOutput() [1/3]

kanzi::qnx::QnxEGLPBufferGraphicsOutput::QnxEGLPBufferGraphicsOutput ( const QnxEGLPBufferGraphicsOutputProperties & properties)
explicit

Constructor.

Parameters
propertiesSpecifies properties to request for the graphics output.

◆ ~QnxEGLPBufferGraphicsOutput()

kanzi::qnx::QnxEGLPBufferGraphicsOutput::~QnxEGLPBufferGraphicsOutput ( )

Destructor.

◆ QnxEGLPBufferGraphicsOutput() [2/3]

kanzi::qnx::QnxEGLPBufferGraphicsOutput::QnxEGLPBufferGraphicsOutput ( const QnxEGLPBufferGraphicsOutput & )
delete

Copy constructor.

◆ QnxEGLPBufferGraphicsOutput() [3/3]

kanzi::qnx::QnxEGLPBufferGraphicsOutput::QnxEGLPBufferGraphicsOutput ( QnxEGLPBufferGraphicsOutput && )
deletenoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

QnxEGLPBufferGraphicsOutput & kanzi::qnx::QnxEGLPBufferGraphicsOutput::operator= ( const QnxEGLPBufferGraphicsOutput & )
delete

Copy assignment operator.

◆ operator=() [2/2]

QnxEGLPBufferGraphicsOutput & kanzi::qnx::QnxEGLPBufferGraphicsOutput::operator= ( QnxEGLPBufferGraphicsOutput && )
deletenoexcept

Move assignment operator.

◆ flushContext()

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::flushContext ( )
noexcept

Flushes any pending QNX Screen requests to the compositor.

Returns
True on success, false on failure.

◆ gatherEvents()

void kanzi::qnx::QnxEGLPBufferGraphicsOutput::gatherEvents ( EventQueue & queue)
overridevirtual

EventSource::gatherEvents() implementation.

Implements kanzi::EventSource.

◆ getNativeEventHandle()

optional< NativeEventHandle > kanzi::qnx::QnxEGLPBufferGraphicsOutput::getNativeEventHandle ( ) const
overridevirtualnoexcept

◆ getProcAddress()

KZ_NO_DISCARD GLProcPointer kanzi::qnx::QnxEGLPBufferGraphicsOutput::getProcAddress ( string_view functionName)
overridevirtual

◆ makeCurrent() [1/2]

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::makeCurrent ( )
overridevirtualnoexcept

◆ releaseCurrent()

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::releaseCurrent ( )
overridevirtualnoexcept

◆ swapBuffers() [1/2]

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::swapBuffers ( )
overridevirtual

◆ swapInterval()

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::swapInterval ( int interval)
overridevirtual

◆ getTargetTransformation()

Matrix4x4 kanzi::qnx::QnxEGLPBufferGraphicsOutput::getTargetTransformation ( ) const
overridevirtualnoexcept

◆ getGraphicsContextAPI()

optional< GraphicsContextAPI > kanzi::qnx::QnxEGLPBufferGraphicsOutput::getGraphicsContextAPI ( ) const
overridevirtualnoexcept

◆ getSurfaceClientAPI()

optional< SurfaceClientAPI > kanzi::qnx::QnxEGLPBufferGraphicsOutput::getSurfaceClientAPI ( ) const
overridevirtualnoexcept

◆ getColorSpace()

optional< SurfaceColorSpace > kanzi::qnx::QnxEGLPBufferGraphicsOutput::getColorSpace ( ) const
overridevirtualnoexcept

◆ getNativeDisplayHandle()

KZ_NO_DISCARD optional< void * > kanzi::qnx::QnxEGLPBufferGraphicsOutput::getNativeDisplayHandle ( ) const
overridevirtualnoexcept

◆ getNativeContextHandle()

KZ_NO_DISCARD optional< void * > kanzi::qnx::QnxEGLPBufferGraphicsOutput::getNativeContextHandle ( ) const
overridevirtualnoexcept

◆ getNativeSurfaceHandle()

KZ_NO_DISCARD optional< void * > kanzi::qnx::QnxEGLPBufferGraphicsOutput::getNativeSurfaceHandle ( ) const
overridevirtualnoexcept

◆ createImage()

KZ_NO_DISCARD optional< void * > kanzi::qnx::QnxEGLPBufferGraphicsOutput::createImage ( int target,
void * data,
int * attributes )
overridevirtualnoexcept

◆ destroyImage()

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::destroyImage ( void * image)
overridevirtualnoexcept

◆ tryGetQnxEGLScreenUsageFlags()

KZ_NO_DISCARD int kanzi::qnx::QnxEGLPBufferGraphicsOutput::tryGetQnxEGLScreenUsageFlags ( ) const
noexcept

Tries to get QNX Screen EGL usage flags compatible with the current EGL configuration.

Use the Screen flags when allocating new buffers.

Return values
0Current EGL configuration has no compatible Screen EGL usage flags.
Returns
QNX Screen EGL usage flag bit mask.

◆ createWindow()

shared_ptr< QnxEGLWindow > kanzi::qnx::QnxEGLPBufferGraphicsOutput::createWindow ( unsigned int bufferCount,
int usageFlags )
noexcept

Creates a QNX EGL window.

Parameters
bufferCountNumber of buffers to attach to a window.
usageFlagsUsage flag bit mask to use for a window.
Returns
Returns created window.

◆ makeCurrent() [2/2]

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::makeCurrent ( QnxEGLWindow & qnxEGLWindow)
noexcept

Make the current EGL thread active.

Parameters
qnxEGLWindowQNX window to activate in the thread.
Returns
True on success, false on failure.

◆ swapBuffers() [2/2]

bool kanzi::qnx::QnxEGLPBufferGraphicsOutput::swapBuffers ( QnxEGLWindow & qnxEGLWindow)
noexcept

Posts rendering results.

Implicitly flushes the rendering pipeline and executes all received. rendering commands before posting.

Parameters
qnxEGLWindowQNX window to swap the buffers for.
Returns
True on success, false on failure.

◆ tryGetQnxDisplays()

KZ_NO_DISCARD optional< vector< QnxDisplay > > kanzi::qnx::QnxEGLPBufferGraphicsOutput::tryGetQnxDisplays ( ) const
noexcept

Tries to get the displays associated with the context.

Return values
nulloptTrying to get the displays has failed.
Returns
Displays.

◆ setTargetTransformation()

void kanzi::qnx::QnxEGLPBufferGraphicsOutput::setTargetTransformation ( Matrix4x4 targetTransformation)
inlineprotectednoexcept

Sets the target transformation.

Parameters
targetTransformationThe target transformation matrix.

◆ updateCachedValues()

void kanzi::qnx::QnxEGLPBufferGraphicsOutput::updateCachedValues ( unsigned int width,
unsigned int height )
protectednoexcept

Updates all cached values from given layout size.

Parameters
widthLayout area width in pixels.
heightLayout area height in pixels.

The documentation for this class was generated from the following file: