LegacyGraphicsOutput class. More...
#include <kanzi/core.ui/platform/graphics_output/legacy/legacy_graphics_output.hpp>
Public Member Functions | |
bool | bringToFront () noexcept override |
WindowedGraphicsOutput::bringToFront() implementation. More... | |
optional< void * > | createImage (int target, void *data, int *attributes) noexcept override |
GLGraphicsOutput::createImage() implementation. More... | |
bool | destroyImage (void *image) noexcept override |
GLGraphicsOutput::destroyImage() implementation. More... | |
optional< SurfaceColorSpace > | getColorSpace () const noexcept override |
GLGraphicsOutput::getColorSpace() implementation. More... | |
struct KzsDesktop * | getDesktop () const |
Gets associated legacy desktop. More... | |
struct KzsDisplay * | getDisplay (size_t index) const |
Access associated legacy display by index. More... | |
optional< GraphicsContextAPI > | getGraphicsContextAPI () const noexcept override |
GLGraphicsOutput::getGraphicsContextAPI() implementation. More... | |
optional< void * > | getNativeContextHandle () const noexcept override |
GLGraphicsOutput::getNativeContextHandle() implementation. More... | |
optional< void * > | getNativeDisplayHandle () const noexcept override |
GLGraphicsOutput::getNativeDisplayHandle() implementation. More... | |
NativeInputHandle | getNativeInputHandle () |
Gets the associated native input handle. More... | |
optional< void * > | getNativeSurfaceHandle () const noexcept override |
GLGraphicsOutput::getNativeSurfaceHandle() implementation. More... | |
optional< NativeWindowHandle > | getNativeWindowHandle () const noexcept override |
WindowedGraphicsOutput::getNativeWindowHandle() implementation. More... | |
KZ_DEPRECATED KZ_NO_DISCARD KzsDisplayOrientationAngle | getOrientationAngle () const |
Gets legacy orientation angle. More... | |
GLGraphicsOutput::GLProcPointer | getProcAddress (string_view functionName) override |
GLGraphicsOutput::getProcAddress() implementation. More... | |
struct KzsSurface * | getSurface () const |
Gets associated legacy surface. More... | |
optional< SurfaceClientAPI > | getSurfaceClientAPI () const noexcept override |
GLGraphicsOutput::getSurfaceClientAPI() implementation. More... | |
Matrix4x4 | getTargetTransformation () const noexcept override |
GLGraphicsOutput::getTargetTransformation() implementation. More... | |
struct KzsWindow * | getWindow () const |
Gets associated legacy window. More... | |
optional< unsigned int > | getWindowHeight () const noexcept override |
WindowedGraphicsOutput::getWindowHeight() implementation. More... | |
optional< int > | getWindowPositionX () const noexcept override |
WindowedGraphicsOutput::getWindowPositionX() implementation. More... | |
optional< int > | getWindowPositionY () const noexcept override |
WindowedGraphicsOutput::getWindowPositionY() implementation. More... | |
optional< string > | getWindowTitle () const noexcept override |
WindowedGraphicsOutput::getWindowTitle() implementation. More... | |
optional< unsigned int > | getWindowWidth () const noexcept override |
WindowedGraphicsOutput::getWindowWidth() implementation. More... | |
void | handleEvents (EventQueue &eventQueue) |
Handles the window resize event. More... | |
bool | hideWindow () noexcept override |
WindowedGraphicsOutput::hideWindow() implementation. More... | |
LegacyGraphicsOutput (const struct KzsSurfaceProperties *surfaceProperties, const NativeWindowProperties *windowProperties) | |
Constructor. More... | |
LegacyGraphicsOutput (NativeWindowHandle handle, const struct KzsSurfaceProperties *surfaceProperties, const NativeWindowProperties *windowProperties) | |
Constructor. More... | |
void | logExtensions () const |
Logs the extensions of the graphics context. More... | |
void | logProperties () const |
Logs the properties of the graphics output. 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 | 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... | |
~LegacyGraphicsOutput () override | |
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::GLGraphicsOutput | |
virtual | ~GLGraphicsOutput ()=default |
Destructor. More... | |
Public Member Functions inherited from kanzi::WindowedGraphicsOutput | |
virtual | ~WindowedGraphicsOutput ()=default |
Destructor. More... | |
Protected Member Functions | |
virtual EventQueue::ProcessingResult | handleEvent (InputEvent *event) |
Handles a single event from a queue. More... | |
void | setTargetTransformation (Matrix4x4 targetTransformation) |
Sets the target transformation. More... | |
void | updateCachedValues (unsigned int width, unsigned int height) |
Updates all cached values from given layout size. More... | |
void | updateSurfaceSize (unsigned int width, unsigned int height) |
Resizes the surface to match given layout size. More... | |
void | updateTargetTransformation (unsigned int width, unsigned int height) |
Modifies the target transformation to match given layout size. More... | |
virtual void | windowResizedOverride (unsigned int width, unsigned int height) |
Called whenever window size has changed. 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... | |
Protected Attributes | |
struct KzsDesktop * | m_desktop |
Legacy desktop for application. More... | |
struct KzsSurface * | m_surface |
System-dependent surface implementation. More... | |
struct KzsWindow * | m_window |
System-dependent window implementation. More... | |
Additional Inherited Members | |
Public Types inherited from kanzi::GLGraphicsOutput | |
using | GLProcPointer = void(*)() |
Pointer to GL function. More... | |
LegacyGraphicsOutput class.
A graphics output implementation that provides basic GL rendering output.
|
explicit |
Constructor.
surfaceProperties | Specifies properties to request for the associated GL surface. |
windowProperties | Specifies properties to request for the associated window. |
|
explicit |
Constructor.
handle | Handle to an existing window. |
surfaceProperties | Specifies properties to request for the associated GL surface. |
windowProperties | Specifies properties to request for the window. |
|
override |
Destructor.
|
overridevirtual |
GLGraphicsOutput::getProcAddress() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtual |
GLGraphicsOutput::makeCurrent() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtual |
GLGraphicsOutput::swapBuffers() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtual |
GLGraphicsOutput::swapInterval() implementation.
Implements kanzi::GLGraphicsOutput.
|
inlineoverridevirtualnoexcept |
GLGraphicsOutput::getTargetTransformation() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::getNativeDisplayHandle() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::getNativeContextHandle() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::getNativeSurfaceHandle() implementation.
Returns nullopt.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::createImage() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::destroyImage() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::getGraphicsContextAPI() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::getSurfaceClientAPI() implementation.
Implements kanzi::GLGraphicsOutput.
|
overridevirtualnoexcept |
GLGraphicsOutput::getColorSpace() implementation.
Implements kanzi::GLGraphicsOutput.
KZ_DEPRECATED KZ_NO_DISCARD KzsDisplayOrientationAngle kanzi::LegacyGraphicsOutput::getOrientationAngle | ( | ) | const |
Gets legacy orientation angle.
New code should use GLGraphicsOutput::getTargetTransformation() instead.
void kanzi::LegacyGraphicsOutput::handleEvents | ( | EventQueue & | eventQueue | ) |
Handles the window resize event.
eventQueue | Queue holding the events to handle. |
void kanzi::LegacyGraphicsOutput::logProperties | ( | ) | const |
Logs the properties of the graphics output.
void kanzi::LegacyGraphicsOutput::logExtensions | ( | ) | const |
Logs the extensions of the graphics context.
NativeInputHandle kanzi::LegacyGraphicsOutput::getNativeInputHandle | ( | ) |
Gets the associated native input handle.
struct KzsDesktop* kanzi::LegacyGraphicsOutput::getDesktop | ( | ) | const |
Gets associated legacy desktop.
struct KzsWindow* kanzi::LegacyGraphicsOutput::getWindow | ( | ) | const |
Gets associated legacy window.
struct KzsSurface* kanzi::LegacyGraphicsOutput::getSurface | ( | ) | const |
Gets associated legacy surface.
struct KzsDisplay* kanzi::LegacyGraphicsOutput::getDisplay | ( | size_t | index | ) | const |
Access associated legacy display by index.
index | Display index to access. |
|
overridevirtualnoexcept |
WindowedGraphicsOutput::resize() implementation.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::setWindowTitle() implementation.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::getWindowTitle() implementation.
Returns nullopt.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::resizeWindow() implementation.
Returns false.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::getWindowWidth() implementation.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::getWindowHeight() implementation.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::moveWindow() implementation.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::getWindowPositionX() implementation.
Returns nullopt.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::getWindowPositionY() implementation.
Returns nullopt.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::makeFullscreen() implementation.
Returns false.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::makeRegular() implementation.
Returns false.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::makeMaximized() implementation.
Returns false.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::makeMinimized() implementation.
Returns false.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::showWindow() implementation.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::hideWindow() implementation.
Returns false.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::bringToFront() implementation.
Returns false.
Implements kanzi::WindowedGraphicsOutput.
|
overridevirtualnoexcept |
WindowedGraphicsOutput::getNativeWindowHandle() implementation.
Implements kanzi::WindowedGraphicsOutput.
|
inlineprotected |
Sets the target transformation.
targetTransformation | The target transformation matrix. |
|
protected |
Modifies the target transformation to match given layout size.
width | Layout area width in pixels. |
height | Layout area height in pixels. |
|
protected |
Resizes the surface to match given layout size.
width | Layout area width in pixels. |
height | Layout area height in pixels. |
|
inlineprotected |
Updates all cached values from given layout size.
width | Layout area width in pixels. |
height | Layout area height in pixels. |
|
inlineprotectedvirtual |
Called whenever window size has changed.
width | New window content area width in pixels. |
height | New window content area height in pixels. |
|
protectedvirtual |
Handles a single event from a queue.
event | Event to handle. |
|
protected |
Legacy desktop for application.
|
protected |
System-dependent window implementation.
|
protected |
System-dependent surface implementation.