LegacyGraphicsOutput class. More...
#include <kanzi/core.ui/platform/graphics_output/legacy/legacy_graphics_output.hpp>
Protected Member Functions | |
| virtual EventQueue::ProcessingResult | handleEvent (InputEvent *event) |
| Handles a single event from a queue. | |
| void | setTargetTransformation (Matrix4x4 targetTransformation) |
| Sets the target transformation. | |
| void | updateCachedValues (unsigned int width, unsigned int height) |
| Updates all cached values from given layout size. | |
| void | updateSurfaceSize (unsigned int width, unsigned int height) |
| Resizes the surface to match given layout size. | |
| void | updateTargetTransformation (unsigned int width, unsigned int height) |
| Modifies the target transformation to match given layout size. | |
| virtual void | windowResizedOverride (unsigned int width, unsigned int height) |
| Called whenever window size has changed. | |
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. | |
Protected Attributes | |
| struct KzsDesktop * | m_desktop |
| Legacy desktop for application. | |
| platform::SurfaceProperties | m_surfaceProperties |
| struct KzsWindow * | m_window |
| System-dependent window implementation. | |
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. |
| desktopProperties | Specifies properties to request for the desktop. |
desktopProperties.
|
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. |
| desktopProperties | Specifies properties to request for the desktop. |
desktopProperties.
|
override |
Destructor.
|
inlineoverridevirtualnoexcept |
FramebufferGraphicsOutput::getTargetTransformation() implementation.
Implements kanzi::FramebufferGraphicsOutput.
| 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.
Gets associated legacy window.
| 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. |
|
protected |
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.
System-dependent window implementation.
|
protected |