Kanzi 4.1.0
kanzi::qnx::QnxStreamEGLGraphicsOutput Class Reference

Class representing a EGL graphics output that renders into a QNX stream. More...

#include <kanzi/platform/platform/graphics_output/qnx_stream_egl/qnx_stream_egl_graphics_output.hpp>

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

Public Member Functions

bool flushContext () noexcept
 Flushes any pending QNX Screen requests to the compositor.
 
KZ_NO_DISCARD uintptr_t getNativeFramebufferHandle (platform::APIBackend backend) const noexcept override
 FramebufferGraphicsOutput::getNativeFramebufferHandle() implementation.
 
KZ_NO_DISCARD QnxContext::NativeHandleType getQnxScreenContext () const noexcept
 Gets underlying QNX Screen context handle.
 
Matrix4x4 getTargetTransformation () const noexcept override
 FramebufferGraphicsOutput::getTargetTransformation() implementation.
 
void logWindowPosition () const noexcept
 Prints the active window position to log.
 
void logWindowSize () const noexcept
 Prints the active window size to log.
 
QnxStreamEGLGraphicsOutputoperator= (const QnxStreamEGLGraphicsOutput &)=delete
 Copy assignment operator.
 
QnxStreamEGLGraphicsOutputoperator= (QnxStreamEGLGraphicsOutput &&) noexcept=delete
 Move assignment operator.
 
 QnxStreamEGLGraphicsOutput (const QnxStreamEGLGraphicsOutput &)=delete
 Copy constructor.
 
 QnxStreamEGLGraphicsOutput (const QnxStreamEGLGraphicsOutputProperties &properties)
 Constructor.
 
 QnxStreamEGLGraphicsOutput (QnxStreamEGLGraphicsOutput &&) noexcept=delete
 Move constructor.
 
 ~QnxStreamEGLGraphicsOutput () noexcept
 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::FramebufferGraphicsOutput
 FramebufferGraphicsOutput () noexcept
 Constructor.
 
template<typename FramebufferT , typename = enable_if_t<is_base_of_v<FramebufferBase, FramebufferT>>>
KZ_NO_DISCARD FramebufferTgetFramebuffer () const noexcept
 Returns the framebuffer for the graphics output.
 
template<typename FramebufferT , typename >
FramebufferTgetFramebuffer () const noexcept
 
void invalidate () noexcept
 Invalidates underlying framebuffer.
 
void setFramebuffer (unique_ptr< FramebufferBase > framebuffer) noexcept
 Sets framebuffer for the graphics output.
 
virtual ~FramebufferGraphicsOutput ()=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.
 

Detailed Description

Class representing a EGL graphics output that renders into a QNX stream.

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ QnxStreamEGLGraphicsOutput() [1/3]

kanzi::qnx::QnxStreamEGLGraphicsOutput::QnxStreamEGLGraphicsOutput ( const QnxStreamEGLGraphicsOutputProperties & properties)
explicit

Constructor.

Parameters
propertiesSpecifies properties to request for the graphics output.

◆ ~QnxStreamEGLGraphicsOutput()

kanzi::qnx::QnxStreamEGLGraphicsOutput::~QnxStreamEGLGraphicsOutput ( )
noexcept

Destructor.

◆ QnxStreamEGLGraphicsOutput() [2/3]

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

Copy constructor.

◆ QnxStreamEGLGraphicsOutput() [3/3]

kanzi::qnx::QnxStreamEGLGraphicsOutput::QnxStreamEGLGraphicsOutput ( QnxStreamEGLGraphicsOutput && )
deletenoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

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

Copy assignment operator.

◆ operator=() [2/2]

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

Move assignment operator.

◆ logWindowPosition()

void kanzi::qnx::QnxStreamEGLGraphicsOutput::logWindowPosition ( ) const
noexcept

Prints the active window position to log.

◆ logWindowSize()

void kanzi::qnx::QnxStreamEGLGraphicsOutput::logWindowSize ( ) const
noexcept

Prints the active window size to log.

◆ flushContext()

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

Flushes any pending QNX Screen requests to the compositor.

Returns
True on success, false on failure.

◆ getQnxScreenContext()

KZ_NO_DISCARD QnxContext::NativeHandleType kanzi::qnx::QnxStreamEGLGraphicsOutput::getQnxScreenContext ( ) const
noexcept

Gets underlying QNX Screen context handle.

Returns
QNX Screen context handle.

◆ getNativeFramebufferHandle()

KZ_NO_DISCARD uintptr_t kanzi::qnx::QnxStreamEGLGraphicsOutput::getNativeFramebufferHandle ( platform::APIBackend backend) const
overridevirtualnoexcept

◆ getTargetTransformation()

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

◆ setTargetTransformation()

void kanzi::qnx::QnxStreamEGLGraphicsOutput::setTargetTransformation ( Matrix4x4 targetTransformation)
protectednoexcept

Sets the target transformation.

Parameters
targetTransformationThe target transformation matrix.

◆ updateCachedValues()

void kanzi::qnx::QnxStreamEGLGraphicsOutput::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: