WindowedGraphicsOutput class. More...
#include <kanzi/core.ui/graphics/windowed_graphics_output.hpp>
Public Member Functions | |
virtual bool | bringToFront () noexcept=0 |
Schedules raising the window above other windows. More... | |
virtual KZ_NO_DISCARD optional< NativeWindowHandle > | getNativeWindowHandle () const noexcept=0 |
Gets the associated window handle. More... | |
virtual KZ_NO_DISCARD optional< unsigned int > | getWindowHeight () const noexcept=0 |
Returns the window height. More... | |
virtual KZ_NO_DISCARD optional< int > | getWindowPositionX () const noexcept=0 |
Returns the window x position. More... | |
virtual KZ_NO_DISCARD optional< int > | getWindowPositionY () const noexcept=0 |
Returns the window y position. More... | |
virtual KZ_NO_DISCARD optional< string > | getWindowTitle () const noexcept=0 |
Returns the window title. More... | |
virtual KZ_NO_DISCARD optional< unsigned int > | getWindowWidth () const noexcept=0 |
Returns the window width. More... | |
virtual bool | hideWindow () noexcept=0 |
Schedules making the window invisible. More... | |
virtual bool | makeFullscreen () noexcept=0 |
Schedules making the window fullscreen. More... | |
virtual bool | makeMaximized () noexcept=0 |
Schedules maximizing the window. More... | |
virtual bool | makeMinimized () noexcept=0 |
Schedules minimizing the window. More... | |
virtual bool | makeRegular () noexcept=0 |
Schedules making the window regular. More... | |
virtual bool | moveWindow (int positionX, int positionY) noexcept=0 |
Schedules a window move. More... | |
virtual bool | resize (unsigned int width, unsigned int height) noexcept=0 |
Schedules a resize of the target layout area. More... | |
virtual bool | resizeWindow (unsigned int width, unsigned int height) noexcept=0 |
Schedules a resize of the window. More... | |
virtual bool | setWindowTitle (string_view title) noexcept=0 |
Schedules setting of the window title. More... | |
virtual bool | showWindow () noexcept=0 |
Schedules making the window visible. More... | |
virtual | ~WindowedGraphicsOutput ()=default |
Destructor. More... | |
WindowedGraphicsOutput class.
Mixin interface for graphics outputs that implement window concepts, like resizing.
|
virtualdefault |
Destructor.
|
pure virtualnoexcept |
Schedules a resize of the target layout area.
This operation takes effect at an implementation defined point. Check the return value of GraphicsOutput::getWidth() and GraphicsOutput::getHeight() for success.
width | New target layout area width in pixels. |
height | New target layout area height in pixels. |
Implemented in kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules setting of the window title.
This operation takes effect at an implementation defined point. Check the return value of getWindowTitle() for success.
title | New window title. |
Implemented in kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window title.
Implemented in kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules a resize of the window.
This operation takes effect at an implementation defined point. Check the return values of getWindowWidth() and getWindowHeight() for success.
width | New window width in implementation defined units. |
height | New window height in implementation defined units. |
Implemented in kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window width.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window height.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules a window move.
This operation takes effect at an implementation defined point. Check the return values of getWindowPositionX() and getWindowPositionY() for success.
positionX | New window x position in implementation defined units. |
positionY | New window y position in implementation defined units. |
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window x position.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window y position.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules making the window fullscreen.
This operation takes effect at an implementation defined point. The screen that the window will occupy is implementation defined.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules making the window regular.
Regular windows are neither fullscreen, maximized nor minimized. This operation takes effect at an implementation defined point. The screen that the window will occupy is implementation defined.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules maximizing the window.
The screen that the window will occupy is implementation defined. This operation takes effect at an implementation defined point.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules minimizing the window.
This may include iconifying the window. The screen that the window will occupy is implementation defined. This operation takes effect at an implementation defined point.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules making the window visible.
This operation takes effect at an implementation defined point.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules making the window invisible.
This operation takes effect at an implementation defined point.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Schedules raising the window above other windows.
This may include focusing the window for input. This operation takes effect at an implementation defined point.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Gets the associated window handle.
Implemented in kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.