Kanzi  3.9.9
Kanzi Engine C++ API
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. More...
 
KZ_NO_DISCARD optional< void * > createImage (int target, void *data, int *attributes) noexcept override
 GLGraphicsOutput::createImage() implementation. More...
 
 DefaultX11EGLGraphicsOutput (const DefaultX11EGLGraphicsOutputProperties &properties)
 Constructor. More...
 
bool destroyImage (void *image) noexcept override
 GLGraphicsOutput::destroyImage() implementation. More...
 
void gatherEvents (EventQueue &queue) override
 EventSource::gatherEvents() implementation. More...
 
KZ_NO_DISCARD optional< SurfaceColorSpacegetColorSpace () const noexcept override
 GLGraphicsOutput::getColorSpace() implementation. More...
 
KZ_NO_DISCARD optional< GraphicsContextAPIgetGraphicsContextAPI () const noexcept override
 GLGraphicsOutput::getGraphicsContextAPI() implementation. More...
 
KZ_NO_DISCARD optional< void * > getNativeContextHandle () const noexcept override
 GLGraphicsOutput::getNativeContextHandle() implementation. More...
 
KZ_NO_DISCARD optional< void * > getNativeDisplayHandle () const noexcept override
 GLGraphicsOutput::getNativeDisplayHandle() implementation. More...
 
optional< NativeEventHandlegetNativeEventHandle () const noexcept override
 EventSource::getNativeEventHandle() implementation. More...
 
KZ_NO_DISCARD optional< void * > getNativeSurfaceHandle () const noexcept override
 GLGraphicsOutput::getNativeSurfaceHandle() implementation. More...
 
KZ_NO_DISCARD optional< NativeWindowHandle > getNativeWindowHandle () const noexcept override
 WindowedGraphicsOutput::getNativeWindowHandle() implementation. More...
 
KZ_NO_DISCARD GLProcPointer getProcAddress (string_view functionName) override
 GLGraphicsOutput::getProcAddress() implementation. More...
 
KZ_NO_DISCARD optional< SurfaceClientAPIgetSurfaceClientAPI () const noexcept override
 GLGraphicsOutput::getSurfaceClientAPI() implementation. More...
 
KZ_NO_DISCARD Matrix4x4 getTargetTransformation () const noexcept override
 GLGraphicsOutput::getTargetTransformation() implementation. More...
 
KZ_NO_DISCARD optional< unsigned int > getWindowHeight () const noexcept override
 WindowedGraphicsOutput::getWindowHeight() implementation. More...
 
KZ_NO_DISCARD optional< int > getWindowPositionX () const noexcept override
 WindowedGraphicsOutput::getWindowPositionX() implementation. More...
 
KZ_NO_DISCARD optional< int > getWindowPositionY () const noexcept override
 WindowedGraphicsOutput::getWindowPositionY() implementation. More...
 
KZ_NO_DISCARD optional< string > getWindowTitle () const noexcept override
 WindowedGraphicsOutput::getWindowTitle() implementation. More...
 
KZ_NO_DISCARD optional< unsigned int > getWindowWidth () const noexcept override
 WindowedGraphicsOutput::getWindowWidth() implementation. More...
 
bool hideWindow () noexcept override
 WindowedGraphicsOutput::hideWindow() implementation. More...
 
void logWindowPosition () noexcept
 Prints the active window position to the log. More...
 
void logWindowSize () noexcept
 Prints the active window size to the log. More...
 
bool makeCurrent () override
 GLGraphicsOutput::makeCurrent() implementation. More...
 
bool makeFullscreen () noexcept override
 WindowedGraphicsOutput::makeFullscreen() implementation. More...
 
bool makeMaximized () noexcept override
 WindowedGraphicsOutput::makeMaximized() implementation. More...
 
bool makeMinimized () noexcept override
 WindowedGraphicsOutput::makeMinimized() implementation. More...
 
bool makeRegular () noexcept override
 WindowedGraphicsOutput::makeRegular() implementation. More...
 
bool moveWindow (int positionX, int positionY) noexcept override
 WindowedGraphicsOutput::moveWindow() implementation. More...
 
bool releaseCurrent () override
 GLGraphicsOutput::releaseCurrent() implementation. More...
 
bool resize (unsigned int width, unsigned int height) noexcept override
 WindowedGraphicsOutput::resize() implementation. More...
 
bool resizeWindow (unsigned int width, unsigned int height) noexcept override
 WindowedGraphicsOutput::resizeWindow() implementation. More...
 
bool setWindowTitle (string_view title) noexcept override
 WindowedGraphicsOutput::setWindowTitle() implementation. More...
 
bool showWindow () noexcept override
 WindowedGraphicsOutput::showWindow() implementation. More...
 
bool swapBuffers () override
 GLGraphicsOutput::swapBuffers() implementation. More...
 
bool swapInterval (int interval) override
 GLGraphicsOutput::swapInterval() implementation. More...
 
void syncEvents () noexcept
 Flushes and waits until the X server finishes processing all requests. More...
 
bool toggleFullScreen (bool doFullScreen) noexcept
 Toggles the fullscreen window mode. More...
 
bool toggleMaximized (bool doMaximized) noexcept
 Toggles the maximized window mode. More...
 
 ~DefaultX11EGLGraphicsOutput ()
 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 a 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...
 

Detailed Description

Default X11 EGL graphics output.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

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

Constructor.

Parameters
propertiesProperties to request for the graphics output.
kanzi::x11::DefaultX11EGLGraphicsOutput::~DefaultX11EGLGraphicsOutput ( )

Destructor.

Member Function Documentation

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

Prints the active window position to the log.

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

Prints the active window size to the log.

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.
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.
void kanzi::x11::DefaultX11EGLGraphicsOutput::syncEvents ( )
noexcept

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

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

EventSource::gatherEvents() implementation.

Implements kanzi::EventSource.

optional<NativeEventHandle> kanzi::x11::DefaultX11EGLGraphicsOutput::getNativeEventHandle ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD GLProcPointer kanzi::x11::DefaultX11EGLGraphicsOutput::getProcAddress ( string_view  functionName)
overridevirtual
bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeCurrent ( )
overridevirtual
bool kanzi::x11::DefaultX11EGLGraphicsOutput::releaseCurrent ( )
overridevirtual
bool kanzi::x11::DefaultX11EGLGraphicsOutput::swapBuffers ( )
overridevirtual
bool kanzi::x11::DefaultX11EGLGraphicsOutput::swapInterval ( int  interval)
overridevirtual
KZ_NO_DISCARD optional<void*> kanzi::x11::DefaultX11EGLGraphicsOutput::getNativeDisplayHandle ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD optional<void*> kanzi::x11::DefaultX11EGLGraphicsOutput::getNativeContextHandle ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD optional<void*> kanzi::x11::DefaultX11EGLGraphicsOutput::getNativeSurfaceHandle ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD optional<void*> kanzi::x11::DefaultX11EGLGraphicsOutput::createImage ( int  target,
void *  data,
int *  attributes 
)
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::destroyImage ( void *  image)
overridevirtualnoexcept
KZ_NO_DISCARD optional<GraphicsContextAPI> kanzi::x11::DefaultX11EGLGraphicsOutput::getGraphicsContextAPI ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD optional<SurfaceClientAPI> kanzi::x11::DefaultX11EGLGraphicsOutput::getSurfaceClientAPI ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD optional<SurfaceColorSpace> kanzi::x11::DefaultX11EGLGraphicsOutput::getColorSpace ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD Matrix4x4 kanzi::x11::DefaultX11EGLGraphicsOutput::getTargetTransformation ( ) const
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::resize ( unsigned int  width,
unsigned int  height 
)
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::setWindowTitle ( string_view  title)
overridevirtualnoexcept
KZ_NO_DISCARD optional<string> kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowTitle ( ) const
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::resizeWindow ( unsigned int  width,
unsigned int  height 
)
overridevirtualnoexcept
KZ_NO_DISCARD optional<unsigned int> kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowWidth ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD optional<unsigned int> kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowHeight ( ) const
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::moveWindow ( int  positionX,
int  positionY 
)
overridevirtualnoexcept
KZ_NO_DISCARD optional<int> kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowPositionX ( ) const
overridevirtualnoexcept
KZ_NO_DISCARD optional<int> kanzi::x11::DefaultX11EGLGraphicsOutput::getWindowPositionY ( ) const
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeFullscreen ( )
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeRegular ( )
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeMaximized ( )
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::makeMinimized ( )
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::showWindow ( )
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::hideWindow ( )
overridevirtualnoexcept
bool kanzi::x11::DefaultX11EGLGraphicsOutput::bringToFront ( )
overridevirtualnoexcept
KZ_NO_DISCARD optional<NativeWindowHandle> kanzi::x11::DefaultX11EGLGraphicsOutput::getNativeWindowHandle ( ) const
overridevirtualnoexcept
void kanzi::x11::DefaultX11EGLGraphicsOutput::setTargetTransformation ( Matrix4x4  targetTransformation)
inlineprotectednoexcept

Sets the target transformation.

Parameters
targetTransformationThe target transformation matrix.
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: