Kanzi  3.9.9
Kanzi Engine C++ API
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_window * getNativeHandle () const noexcept
 Gets the underlying native handle. More...
 
KZ_NO_DISCARD windowing::Size getSize () const noexcept
 Gets the size of a Wayland EGL window. More...
 
KZ_NO_DISCARD windowing::SizeU getSizeU () const noexcept
 Gets the size of a Wayland EGL window. More...
 
WaylandEGLWindowoperator= (const WaylandEGLWindow &)=delete
 Copy assignment operator. More...
 
WaylandEGLWindowoperator= (WaylandEGLWindow &&)=delete
 Move assignment operator. More...
 
void resize (int width, int height) noexcept
 Requests change of window size. More...
 
 WaylandEGLWindow (const WaylandSurface &waylandSurface, int width, int height)
 Constructor. More...
 
 WaylandEGLWindow (wl_egl_window *nativeHandle)
 Constructor. More...
 
 WaylandEGLWindow (const WaylandEGLWindow &)=delete
 Copy constructor. More...
 
 WaylandEGLWindow (WaylandEGLWindow &&)=delete
 Move constructor. More...
 
 ~WaylandEGLWindow ()
 Destructor. More...
 

Detailed Description

Wayland EGL window wrapper class.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

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

Constructor.

Parameters
waylandSurfaceWaylandSurface from which to construct WaylandEGLWindow.
widthWindow width.
heightWindow height.
kanzi::wayland::WaylandEGLWindow::WaylandEGLWindow ( wl_egl_window *  nativeHandle)
explicit

Constructor.

Parameters
nativeHandleNative Wayland handle.
kanzi::wayland::WaylandEGLWindow::~WaylandEGLWindow ( )

Destructor.

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

Copy constructor.

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

Move constructor.

Member Function Documentation

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

Copy assignment operator.

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

Move assignment operator.

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

Requests change of window size.

Parameters
widthWindow width.
heightWindow height
KZ_NO_DISCARD windowing::Size kanzi::wayland::WaylandEGLWindow::getSize ( ) const
noexcept

Gets the size of a Wayland EGL window.

Returns
Size of the window.
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.
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: