Kanzi 4.0.0
kanzi::ohos::DefaultOhosEGLGraphicsOutput Class Reference

Class representing a default OpenHarmony OS 4.1 EGL graphics output. More...

#include <kanzi/platform/platform/graphics_output/ohos_egl/default_ohos_egl_graphics_output.hpp>

Inheritance diagram for kanzi::ohos::DefaultOhosEGLGraphicsOutput:
[legend]

Public Member Functions

 DefaultOhosEGLGraphicsOutput (const DefaultOhosEGLGraphicsOutput &)=delete
 Copy constructor.
 
 DefaultOhosEGLGraphicsOutput (const DefaultOhosEGLGraphicsOutputProperties &properties)
 Constructor.
 
 DefaultOhosEGLGraphicsOutput (DefaultOhosEGLGraphicsOutput &&)=delete
 Move constructor.
 
KZ_NO_DISCARD uintptr_t getNativeFramebufferHandle (platform::APIBackend backend) const noexcept override
 FramebufferGraphicsOutput::getNativeFramebufferHandle() implementation.
 
KZ_NO_DISCARD Matrix4x4 getTargetTransformation () const noexcept override
 FramebufferGraphicsOutput::getTargetTransformation() implementation.
 
DefaultOhosEGLGraphicsOutputoperator= (const DefaultOhosEGLGraphicsOutput &)=delete
 Copy assignment.
 
DefaultOhosEGLGraphicsOutputoperator= (DefaultOhosEGLGraphicsOutput &&)=delete
 Move assignment.
 
 ~DefaultOhosEGLGraphicsOutput ()
 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 matrix.
 
void updateCachedValues (unsigned int width, unsigned int height) noexcept
 Updates all cached values from the 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 default OpenHarmony OS 4.1 EGL graphics output.

This class is meant to be contructed after the surface creation callback has been received from the system.

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ DefaultOhosEGLGraphicsOutput() [1/3]

kanzi::ohos::DefaultOhosEGLGraphicsOutput::DefaultOhosEGLGraphicsOutput ( const DefaultOhosEGLGraphicsOutputProperties & properties)
explicit

Constructor.

The windowHandle member variable of the properties struct must be set before calling this constructor.

Parameters
propertiesProperties to request for the graphics output.

◆ ~DefaultOhosEGLGraphicsOutput()

kanzi::ohos::DefaultOhosEGLGraphicsOutput::~DefaultOhosEGLGraphicsOutput ( )

Destructor.

◆ DefaultOhosEGLGraphicsOutput() [2/3]

kanzi::ohos::DefaultOhosEGLGraphicsOutput::DefaultOhosEGLGraphicsOutput ( const DefaultOhosEGLGraphicsOutput & )
delete

Copy constructor.

◆ DefaultOhosEGLGraphicsOutput() [3/3]

kanzi::ohos::DefaultOhosEGLGraphicsOutput::DefaultOhosEGLGraphicsOutput ( DefaultOhosEGLGraphicsOutput && )
delete

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

DefaultOhosEGLGraphicsOutput & kanzi::ohos::DefaultOhosEGLGraphicsOutput::operator= ( const DefaultOhosEGLGraphicsOutput & )
delete

Copy assignment.

◆ operator=() [2/2]

DefaultOhosEGLGraphicsOutput & kanzi::ohos::DefaultOhosEGLGraphicsOutput::operator= ( DefaultOhosEGLGraphicsOutput && )
delete

Move assignment.

◆ getTargetTransformation()

KZ_NO_DISCARD Matrix4x4 kanzi::ohos::DefaultOhosEGLGraphicsOutput::getTargetTransformation ( ) const
overridevirtualnoexcept

◆ getNativeFramebufferHandle()

KZ_NO_DISCARD uintptr_t kanzi::ohos::DefaultOhosEGLGraphicsOutput::getNativeFramebufferHandle ( platform::APIBackend backend) const
overridevirtualnoexcept

◆ setTargetTransformation()

void kanzi::ohos::DefaultOhosEGLGraphicsOutput::setTargetTransformation ( Matrix4x4 targetTransformation)
inlineprotectednoexcept

Sets the target transformation matrix.

Parameters
targetTransformationThe target transformation matrix.

◆ updateCachedValues()

void kanzi::ohos::DefaultOhosEGLGraphicsOutput::updateCachedValues ( unsigned int width,
unsigned int height )
protectednoexcept

Updates all cached values from the 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: