Kanzi 4.0.0-beta2
kanzi::x11::DefaultX11EGLGraphicsOutput Class Reference

Default X11 EGL graphics output. More...

#include <kanzi/core.ui/platform/graphics_output/x11_egl/default_x11_egl_graphics_output.hpp>

Inheritance diagram for kanzi::x11::DefaultX11EGLGraphicsOutput:
[legend]

Public Member Functions

bool bringToFront () noexcept override
 WindowedGraphicsOutput::bringToFront() implementation.
 
 DefaultX11EGLGraphicsOutput (const DefaultX11EGLGraphicsOutputProperties &properties)
 Constructor.
 
void gatherEvents (EventQueue &queue) override
 EventSource::gatherEvents() implementation.
 
KZ_NO_DISCARD optional< NativeEventHandlegetNativeEventHandle () const noexcept override
 WakeupSignalSource::getNativeEventHandle() implementation.
 
KZ_NO_DISCARD optional< NativeWindowHandlegetNativeWindowHandle () const noexcept override
 WindowedGraphicsOutput::getNativeWindowHandle() implementation.
 
KZ_NO_DISCARD Matrix4x4 getTargetTransformation () const noexcept override
 GLGraphicsOutput::getTargetTransformation() implementation.
 
KZ_NO_DISCARD optional< unsigned intgetWindowHeight () const noexcept override
 WindowedGraphicsOutput::getWindowHeight() implementation.
 
KZ_NO_DISCARD optional< intgetWindowPositionX () const noexcept override
 WindowedGraphicsOutput::getWindowPositionX() implementation.
 
KZ_NO_DISCARD optional< intgetWindowPositionY () const noexcept override
 WindowedGraphicsOutput::getWindowPositionY() implementation.
 
KZ_NO_DISCARD optional< string > getWindowTitle () const noexcept override
 WindowedGraphicsOutput::getWindowTitle() implementation.
 
KZ_NO_DISCARD optional< unsigned intgetWindowWidth () const noexcept override
 WindowedGraphicsOutput::getWindowWidth() implementation.
 
bool hideWindow () noexcept override
 WindowedGraphicsOutput::hideWindow() implementation.
 
void logWindowPosition () noexcept
 Prints the active window position to the log.
 
void logWindowSize () noexcept
 Prints the active window size to the log.
 
bool makeFullscreen () noexcept override
 WindowedGraphicsOutput::makeFullscreen() implementation.
 
bool makeMaximized () noexcept override
 WindowedGraphicsOutput::makeMaximized() implementation.
 
bool makeMinimized () noexcept override
 WindowedGraphicsOutput::makeMinimized() implementation.
 
bool makeRegular () noexcept override
 WindowedGraphicsOutput::makeRegular() implementation.
 
bool moveWindow (int positionX, int positionY) noexcept override
 WindowedGraphicsOutput::moveWindow() implementation.
 
bool resize (unsigned int width, unsigned int height) noexcept override
 WindowedGraphicsOutput::resize() implementation.
 
bool resizeWindow (unsigned int width, unsigned int height) noexcept override
 WindowedGraphicsOutput::resizeWindow() implementation.
 
bool setWindowTitle (string_view title) noexcept override
 WindowedGraphicsOutput::setWindowTitle() implementation.
 
bool showWindow () noexcept override
 WindowedGraphicsOutput::showWindow() implementation.
 
void syncEvents () noexcept
 Flushes and waits until the X server finishes processing all requests.
 
bool toggleFullScreen (bool doFullScreen) noexcept
 Toggles the fullscreen window mode.
 
bool toggleMaximized (bool doMaximized) noexcept
 Toggles the maximized window mode.
 
 ~DefaultX11EGLGraphicsOutput ()
 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::WakeupSignalSource
WakeupSignalSourceoperator= (const WakeupSignalSource &)=default
 Copy assignment operator.
 
WakeupSignalSourceoperator= (WakeupSignalSource &&) noexcept=default
 Move assignment operator.
 
 WakeupSignalSource ()=default
 Constructor.
 
 WakeupSignalSource (const WakeupSignalSource &)=default
 Copy constructor.
 
 WakeupSignalSource (WakeupSignalSource &&) noexcept=default
 Move constructor.
 
virtual ~WakeupSignalSource ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::FramebufferGraphicsOutput
 FramebufferGraphicsOutput ()
 Constructor.
 
KZ_NO_DISCARD const FramebuffergetFramebuffer () const noexcept
 Returns the framebuffer for the Graphics Output.
 
KZ_NO_DISCARD FramebuffergetFramebuffer () noexcept
 Returns the framebuffer for the Graphics Output.
 
virtual ~FramebufferGraphicsOutput ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::WindowedGraphicsOutput
virtual ~WindowedGraphicsOutput ()=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 a 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

Default X11 EGL graphics output.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

◆ DefaultX11EGLGraphicsOutput()

kanzi::x11::DefaultX11EGLGraphicsOutput::DefaultX11EGLGraphicsOutput ( const DefaultX11EGLGraphicsOutputProperties & properties)
explicit

Constructor.

Parameters
propertiesProperties to request for the graphics output.

◆ ~DefaultX11EGLGraphicsOutput()

kanzi::x11::DefaultX11EGLGraphicsOutput::~DefaultX11EGLGraphicsOutput ( )

Destructor.

Member Function Documentation

◆ logWindowPosition()

void kanzi::x11::DefaultX11EGLGraphicsOutput::logWindowPosition ( )
noexcept

Prints the active window position to the log.

◆ logWindowSize()

void kanzi::x11::DefaultX11EGLGraphicsOutput::logWindowSize ( )
noexcept

Prints the active window size to the log.

◆ toggleFullScreen()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::toggleFullScreen ( bool doFullScreen)
noexcept

Toggles the fullscreen window mode.

Parameters
doFullScreenTo change to fullscreen window, true. To turn off the fullscreen mode, false.
Returns
On success, true, otherwise false.

◆ toggleMaximized()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::toggleMaximized ( bool doMaximized)
noexcept

Toggles the maximized window mode.

Parameters
doMaximizedTo maximize the window, true. To restore the window to its normal size, false.
Returns
On success, true, otherwise false.

◆ syncEvents()

void kanzi::x11::DefaultX11EGLGraphicsOutput::syncEvents ( )
noexcept

Flushes and waits until the X server finishes processing all requests.

◆ gatherEvents()

void kanzi::x11::DefaultX11EGLGraphicsOutput::gatherEvents ( EventQueue & queue)
overridevirtual

EventSource::gatherEvents() implementation.

Implements kanzi::EventSource.

◆ getNativeEventHandle()

KZ_NO_DISCARD optional< NativeEventHandle > kanzi::x11::DefaultX11EGLGraphicsOutput::getNativeEventHandle ( ) const
overridevirtualnoexcept

◆ getTargetTransformation()

KZ_NO_DISCARD Matrix4x4 kanzi::x11::DefaultX11EGLGraphicsOutput::getTargetTransformation ( ) const
overridevirtualnoexcept

GLGraphicsOutput::getTargetTransformation() implementation.

Implements kanzi::FramebufferGraphicsOutput.

◆ resize()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::resize ( unsigned int width,
unsigned int height )
overridevirtualnoexcept

◆ setWindowTitle()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::setWindowTitle ( string_view title)
overridevirtualnoexcept

◆ getWindowTitle()

KZ_NO_DISCARD optional< string > kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowTitle ( ) const
overridevirtualnoexcept

◆ resizeWindow()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::resizeWindow ( unsigned int width,
unsigned int height )
overridevirtualnoexcept

◆ getWindowWidth()

KZ_NO_DISCARD optional< unsigned int > kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowWidth ( ) const
overridevirtualnoexcept

◆ getWindowHeight()

KZ_NO_DISCARD optional< unsigned int > kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowHeight ( ) const
overridevirtualnoexcept

◆ moveWindow()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::moveWindow ( int positionX,
int positionY )
overridevirtualnoexcept

◆ getWindowPositionX()

KZ_NO_DISCARD optional< int > kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowPositionX ( ) const
overridevirtualnoexcept

◆ getWindowPositionY()

KZ_NO_DISCARD optional< int > kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowPositionY ( ) const
overridevirtualnoexcept

◆ makeFullscreen()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeFullscreen ( )
overridevirtualnoexcept

◆ makeRegular()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeRegular ( )
overridevirtualnoexcept

◆ makeMaximized()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeMaximized ( )
overridevirtualnoexcept

◆ makeMinimized()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeMinimized ( )
overridevirtualnoexcept

◆ showWindow()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::showWindow ( )
overridevirtualnoexcept

◆ hideWindow()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::hideWindow ( )
overridevirtualnoexcept

◆ bringToFront()

bool kanzi::x11::DefaultX11EGLGraphicsOutput::bringToFront ( )
overridevirtualnoexcept

◆ getNativeWindowHandle()

KZ_NO_DISCARD optional< NativeWindowHandle > kanzi::x11::DefaultX11EGLGraphicsOutput::getNativeWindowHandle ( ) const
overridevirtualnoexcept

◆ setTargetTransformation()

void kanzi::x11::DefaultX11EGLGraphicsOutput::setTargetTransformation ( Matrix4x4 targetTransformation)
inlineprotectednoexcept

Sets the target transformation.

Parameters
targetTransformationThe target transformation matrix.

◆ updateCachedValues()

void kanzi::x11::DefaultX11EGLGraphicsOutput::updateCachedValues ( unsigned int width,
unsigned int height )
protectednoexcept

Updates all cached values from a given layout size.

Parameters
widthThe width of the layout area in pixels.
heightThe height of the layout area in pixels.

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