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. | |
virtual KZ_NO_DISCARD optional< NativeWindowHandle > | getNativeWindowHandle () const noexcept=0 |
Gets the associated window handle. | |
virtual KZ_NO_DISCARD optional< unsigned int > | getWindowHeight () const noexcept=0 |
Returns the window height. | |
virtual KZ_NO_DISCARD optional< int > | getWindowPositionX () const noexcept=0 |
Returns the window x position. | |
virtual KZ_NO_DISCARD optional< int > | getWindowPositionY () const noexcept=0 |
Returns the window y position. | |
virtual KZ_NO_DISCARD optional< string > | getWindowTitle () const noexcept=0 |
Returns the window title. | |
virtual KZ_NO_DISCARD optional< unsigned int > | getWindowWidth () const noexcept=0 |
Returns the window width. | |
virtual bool | hideWindow () noexcept=0 |
Schedules making the window invisible. | |
virtual bool | makeFullscreen () noexcept=0 |
Schedules making the window fullscreen. | |
virtual bool | makeMaximized () noexcept=0 |
Schedules maximizing the window. | |
virtual bool | makeMinimized () noexcept=0 |
Schedules minimizing the window. | |
virtual bool | makeRegular () noexcept=0 |
Schedules making the window regular. | |
virtual bool | moveWindow (int positionX, int positionY) noexcept=0 |
Schedules a window move. | |
virtual bool | resize (unsigned int width, unsigned int height) noexcept=0 |
Schedules a resize of the target layout area. | |
virtual bool | resizeWindow (unsigned int width, unsigned int height) noexcept=0 |
Schedules a resize of the window. | |
virtual bool | setWindowTitle (string_view title) noexcept=0 |
Schedules setting of the window title. | |
virtual bool | showWindow () noexcept=0 |
Schedules making the window visible. | |
virtual | ~WindowedGraphicsOutput ()=default |
Destructor. | |
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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, 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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window title.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, 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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window width.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window height.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, 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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window x position.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Returns the window y position.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
Schedules making the window visible.
This operation takes effect at an implementation defined point.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
Schedules making the window invisible.
This operation takes effect at an implementation defined point.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
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::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Gets the associated window handle.
Implemented in kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.