Kanzi 3.9.10
kanzi::wayland::WaylandEGLWindow Class Reference

Wayland EGL window wrapper class. More...

#include <kanzi/core.ui/platform/windowing_ng/wayland_egl/wayland_egl_window.hpp>

Public Member Functions

KZ_NO_DISCARD wl_egl_windowgetNativeHandle () const noexcept
 Gets the underlying native handle.
 
KZ_NO_DISCARD windowing::Size getSize () const noexcept
 Gets the size of a Wayland EGL window.
 
KZ_NO_DISCARD windowing::SizeU getSizeU () const noexcept
 Gets the size of a Wayland EGL window.
 
WaylandEGLWindowoperator= (const WaylandEGLWindow &)=delete
 Copy assignment operator.
 
WaylandEGLWindowoperator= (WaylandEGLWindow &&)=delete
 Move assignment operator.
 
void resize (int width, int height) noexcept
 Requests change of window size.
 
 WaylandEGLWindow (const WaylandEGLWindow &)=delete
 Copy constructor.
 
 WaylandEGLWindow (const WaylandSurface &waylandSurface, int width, int height)
 Constructor.
 
 WaylandEGLWindow (WaylandEGLWindow &&)=delete
 Move constructor.
 
 WaylandEGLWindow (wl_egl_window *nativeHandle)
 Constructor.
 
 ~WaylandEGLWindow ()
 Destructor.
 

Detailed Description

Wayland EGL window wrapper class.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

◆ WaylandEGLWindow() [1/4]

kanzi::wayland::WaylandEGLWindow::WaylandEGLWindow ( const WaylandSurface & waylandSurface,
int width,
int height )
explicit

Constructor.

Parameters
waylandSurfaceWaylandSurface from which to construct WaylandEGLWindow.
widthWindow width.
heightWindow height.

◆ WaylandEGLWindow() [2/4]

kanzi::wayland::WaylandEGLWindow::WaylandEGLWindow ( wl_egl_window * nativeHandle)
explicit

Constructor.

Parameters
nativeHandleNative Wayland handle.

◆ ~WaylandEGLWindow()

kanzi::wayland::WaylandEGLWindow::~WaylandEGLWindow ( )

Destructor.

◆ WaylandEGLWindow() [3/4]

kanzi::wayland::WaylandEGLWindow::WaylandEGLWindow ( const WaylandEGLWindow & )
delete

Copy constructor.

◆ WaylandEGLWindow() [4/4]

kanzi::wayland::WaylandEGLWindow::WaylandEGLWindow ( WaylandEGLWindow && )
delete

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

WaylandEGLWindow & kanzi::wayland::WaylandEGLWindow::operator= ( const WaylandEGLWindow & )
delete

Copy assignment operator.

◆ operator=() [2/2]

WaylandEGLWindow & kanzi::wayland::WaylandEGLWindow::operator= ( WaylandEGLWindow && )
delete

Move assignment operator.

◆ resize()

void kanzi::wayland::WaylandEGLWindow::resize ( int width,
int height )
noexcept

Requests change of window size.

Parameters
widthWindow width.
heightWindow height

◆ getSize()

KZ_NO_DISCARD windowing::Size kanzi::wayland::WaylandEGLWindow::getSize ( ) const
noexcept

Gets the size of a Wayland EGL window.

Returns
Size of the window.

◆ getSizeU()

KZ_NO_DISCARD windowing::SizeU kanzi::wayland::WaylandEGLWindow::getSizeU ( ) const
noexcept

Gets the size of a Wayland EGL window.

See also
getSize()
Returns
Size of the window.

◆ getNativeHandle()

KZ_NO_DISCARD wl_egl_window * kanzi::wayland::WaylandEGLWindow::getNativeHandle ( ) const
noexcept

Gets the underlying native handle.

Returns
Native Wayland handle.

The documentation for this class was generated from the following file: