Kanzi 3.9.10
kanzi::wayland::WaylandSurface Class Reference

Wayland surface wrapper class. More...

#include <kanzi/core.ui/platform/windowing_ng/wayland/wayland_surface.hpp>

Inheritance diagram for kanzi::wayland::WaylandSurface:
[legend]

Public Member Functions

void commit () const noexcept
 Commit pending surface state.
 
 WaylandSurface (const WaylandCompositor &compositor) noexcept
 Constructor.
 
 WaylandSurface (wl_surface *nativeHandle) noexcept
 Constructor.
 
- Public Member Functions inherited from kanzi::wayland::WaylandInterface< WaylandSurface, wl_surface, wl_surface_listener >
bool addListener (enable_if_t<!is_same< L, void >::value, const L & > listener, void *data) const noexcept
 Adds a listener to Wayland object.
 
KZ_NO_DISCARD unsigned int askVersion () const noexcept
 Requests compositor which interface version we use.
 
KZ_NO_DISCARD wl_surface * getNativeHandle () const noexcept
 Gets the underlying native handle.
 

Static Public Attributes

static const wl_interface s_nativeInterface
 Represents the underlying native interface.
 

Additional Inherited Members

- Public Types inherited from kanzi::wayland::WaylandInterface< WaylandSurface, wl_surface, wl_surface_listener >
using ListenerType
 Generic alias to query for appropriate listener type.
 
- Static Public Member Functions inherited from kanzi::wayland::WaylandInterface< WaylandSurface, wl_surface, wl_surface_listener >
static KZ_NO_DISCARD unsigned int askVersion (wl_surface *handle) noexcept
 Requests compositor which interface version we use.
 

Detailed Description

Wayland surface wrapper class.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

◆ WaylandSurface() [1/2]

kanzi::wayland::WaylandSurface::WaylandSurface ( wl_surface * nativeHandle)
explicitnoexcept

Constructor.

Parameters
nativeHandleNative Wayland handle.

◆ WaylandSurface() [2/2]

kanzi::wayland::WaylandSurface::WaylandSurface ( const WaylandCompositor & compositor)
explicitnoexcept

Constructor.

Parameters
compositorWaylandCompositor to construct WaylandSurface from.

Member Function Documentation

◆ commit()

void kanzi::wayland::WaylandSurface::commit ( ) const
noexcept

Commit pending surface state.

Member Data Documentation

◆ s_nativeInterface

const wl_interface kanzi::wayland::WaylandSurface::s_nativeInterface
static

Represents the underlying native interface.


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