Kanzi 4.0.0-beta2
kanzi::wayland::IviScreenMethods Class Reference

Class representing Wayland output methods. More...

#include <kanzi/core.ui/platform/windowing_ng/wayland_ivi_egl/wayland_ivi_screen.hpp>

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

Public Member Functions

void bindLayer (uint32_t layerId) const noexcept
 Assigns layer to this screen.
 
KZ_NO_DISCARD windowing::Size getResolution () const noexcept
 Gets screen resolution.
 
void releaseLayer (uint32_t layerId) const noexcept
 Removes layer from this screen.
 
void setResolution (int32_t width, int32_t height) noexcept
 Sets screen resolution.
 

Static Public Attributes

static const uint32_t s_maxVersion
 Represents maximum interface version supported by the Wayland implementation that Kanzi libraries were compiled against.
 
static const wl_interface s_nativeInterface
 Represents the underlying native interface.
 

Protected Member Functions

 IviScreenMethods () noexcept=default
 Constructor.
 
 IviScreenMethods (const NativeHandleType &handle) noexcept
 Constructor.
 
- Protected Member Functions inherited from kanzi::OptionalHandle< T, sentinel, deleter, typename >
KZ_NO_DISCARD optional< TcreateOptional () const noexcept
 Creates a kanzi::optional copy of the native handle.
 
KZ_NO_DISCARD const T get () const noexcept
 Provides access to stored handle.
 
KZ_NO_DISCARD T get () noexcept
 Provides access to stored handle.
 
KZ_NO_DISCARD const T getNativeHandle () const noexcept
 Provides access to stored handle.
 
KZ_NO_DISCARD T getNativeHandle () noexcept
 Provides access to stored handle.
 
KZ_NO_DISCARD bool hasValue () const noexcept
 Checks if a handle is stored.
 
KZ_NO_DISCARD operator bool () const noexcept
 Conversion operator to bool.
 
KZ_NO_DISCARD T && operator* () &&noexcept
 Provides access to stored handle via rvalue reference.
 
KZ_NO_DISCARD Toperator* () &noexcept
 Provides access to stored handle via reference.
 
KZ_NO_DISCARD const T && operator* () const &&noexcept
 Provides access to stored handle via const rvalue reference.
 
KZ_NO_DISCARD const Toperator* () const &noexcept
 Provides access to stored handle via const reference.
 
OptionalHandleoperator= (const OptionalHandle &other)=delete
 Copy assignment operator.
 
OptionalHandleoperator= (const T &value)
 Copy assignment operator.
 
OptionalHandleoperator= (OptionalHandle &&other) noexcept
 Move assignment operator.
 
OptionalHandleoperator= (T &&value) noexcept
 Move assignment operator.
 
 OptionalHandle () noexcept
 Constructor.
 
 OptionalHandle (const OptionalHandle &other)=delete
 Copy constructor.
 
 OptionalHandle (const T &nativeHandle) noexcept
 Constructor.
 
 OptionalHandle (OptionalHandle &&other) noexcept
 Move constructor.
 
T release () noexcept
 Releases ownership of a native handle without destroying the resource.
 
void reset () noexcept
 Replaces stored handle with sentinel value.
 
template<typename U , typename = enable_if_t<is_same_v<T, decay_t<U>>>>
void reset (U &&newHandle) noexcept
 Stores a new handle inside.
 
void swap (OptionalHandle &other)
 Swap function.
 
KZ_NO_DISCARD optional< TtoOptional () &&noexcept
 Converts OptionalHandle to kanzi::optional.
 
 ~OptionalHandle ()
 Destructor.
 

Static Protected Member Functions

static KZ_NO_DISCARD IviScreenMethods create (const IviWm &iviWm, const WaylandOutput &waylandOutput) noexcept
 Creates an IVI screen.
 
- Static Protected Member Functions inherited from kanzi::OptionalHandle< T, sentinel, deleter, typename >
static constexpr auto getDeleter () noexcept
 Gets deleter function.
 
static constexpr T getSentinel () noexcept
 Gets sentinel value that can be used to represent invalid handle.
 

Additional Inherited Members

- Protected Types inherited from kanzi::OptionalHandle< T, sentinel, deleter, typename >
using HandleType
 Alias for this handle type.
 
using NativeHandleType
 Alias for the underlying native handle type.
 
- Protected Attributes inherited from kanzi::OptionalHandle< T, sentinel, deleter, typename >
FlatOptional< T, sentinelm_handle
 Native handle that is managed by this class.
 

Detailed Description

Class representing Wayland output methods.

Note
Do not use this class directly. Use IviScreen instead.
See also
IviScreen
Since
Kanzi 3.9.8
Kanzi 4.0.0 IviScreen is now a safe wrapper around IviScreenMethods.

Constructor & Destructor Documentation

◆ IviScreenMethods() [1/2]

kanzi::wayland::IviScreenMethods::IviScreenMethods ( )
explicitprotecteddefaultnoexcept

Constructor.

◆ IviScreenMethods() [2/2]

kanzi::wayland::IviScreenMethods::IviScreenMethods ( const NativeHandleType & handle)
explicitprotectednoexcept

Constructor.

Parameters
handleNative handle.

Member Function Documentation

◆ setResolution()

void kanzi::wayland::IviScreenMethods::setResolution ( int32_t width,
int32_t height )
noexcept

Sets screen resolution.

Parameters
widthWidth of screen.
heightHeight of screen.

◆ getResolution()

KZ_NO_DISCARD windowing::Size kanzi::wayland::IviScreenMethods::getResolution ( ) const
noexcept

Gets screen resolution.

Returns
Screen resolution.

◆ bindLayer()

void kanzi::wayland::IviScreenMethods::bindLayer ( uint32_t layerId) const
noexcept

Assigns layer to this screen.

Parameters
layerIdLayer ID.

◆ releaseLayer()

void kanzi::wayland::IviScreenMethods::releaseLayer ( uint32_t layerId) const
noexcept

Removes layer from this screen.

Parameters
layerIdLayer ID.

◆ create()

static KZ_NO_DISCARD IviScreenMethods kanzi::wayland::IviScreenMethods::create ( const IviWm & iviWm,
const WaylandOutput & waylandOutput )
staticprotectednoexcept

Creates an IVI screen.

Parameters
iviWmIviWm object.
waylandOutputAssociated IviScreen.
Returns
Created IviScreen.
Since
Kanzi 4.0.0

Member Data Documentation

◆ s_nativeInterface

const wl_interface kanzi::wayland::IviScreenMethods::s_nativeInterface
static

Represents the underlying native interface.

◆ s_maxVersion

const uint32_t kanzi::wayland::IviScreenMethods::s_maxVersion
static

Represents maximum interface version supported by the Wayland implementation that Kanzi libraries were compiled against.

Defines correct maximum possible interface version based on available events and requests.

Since
Kanzi 4.0.0

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