Kanzi 3.9.10
kanzi::wayland::IVILayoutManager Class Reference

An abstraction class that allows to control IVI layers and surfaces. More...

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

Public Member Functions

void bindLayer (uint32_t layerId) const noexcept
 Assigns a layer to the screen.
 
void bindSurface (uint32_t surfaceId, uint32_t layerId) const
 Assigns a surface to the specified layer.
 
void configureLayer (const IVILayerProps &layerProps) const
 Helper function that requests the compositor to change surface state to match the provided properties.
 
void configureSurface (const IVISurfaceProps &surfaceProps) const
 Helper function that will request compositor to change surface state to match supplied properties.
 
void createLayer (const IVILayerProps &iviLayerProps)
 Requests the compositor to create a layer.
 
void createSurface (const IVISurfaceProps &iviSurfaceProps)
 Requests the compositor to create a surface.
 
KZ_NO_DISCARD const IVILayerPropsgetLayerProps (uint32_t layerId) const noexcept
 Gets the internal layer state.
 
KZ_NO_DISCARD windowing::Size getResolution () const noexcept
 Gets screen resolution.
 
KZ_NO_DISCARD const IVISurfacePropsgetSurfaceProps (uint32_t surfaceId) const noexcept
 Gets the internal surface state.
 
void initializeLayer (const IVILayerProps &layerProps) const
 Helper function to set up a layer for use.
 
void initializeSurface (const IVISurfaceProps &surfaceProps) const
 Helper function to set up a surface for use.
 
 IVILayoutManager (IVIWM &iviWM, const WaylandOutput &waylandOutput) noexcept
 Constructor.
 
void layerCreatedNotification (uint32_t layerId)
 Called by Wayland listener when layer is created.
 
void layerDestinationChangedNotification (uint32_t layerId, const windowing::Region &destination)
 Called by Wayland listener when layer destination rectangle changes.
 
void layerDestroyedNotification (uint32_t layerId)
 Called by Wayland listener when layer is destroyed.
 
void layerOpacityChangedNotification (uint32_t layerId, double opacity)
 Called by Wayland listener when layer opacity changes.
 
void layerSourceChangedNotification (uint32_t layerId, const windowing::Region &source)
 Called by Wayland listener when layer source rectangle changes.
 
void layerVisibilityChangedNotification (uint32_t layerId, int32_t visibility)
 Called by Wayland listener when layer visibility changes.
 
void modeChangeNotification (int32_t width, int32_t height, int32_t refresh) noexcept
 Called by Wayland when screen properties change.
 
void releaseLayer (uint32_t layerId) const noexcept
 Removes layer from the screen.
 
void releaseSurface (uint32_t surfaceId, uint32_t layerId) const
 Removes a surface from the specified layer.
 
void surfaceCreatedNotification (uint32_t surfaceId)
 Called by Wayland listener when surface has been created.
 
void surfaceDestinationChangedNotification (uint32_t surfaceId, const windowing::Region &destination)
 Called by Wayland listener when surface destination rectangle changes.
 
void surfaceDestroyedNotification (uint32_t surfaceId)
 Called by Wayland listener when surface is destroyed.
 
void surfaceOpacityChangedNotification (uint32_t surfaceId, double opacity)
 Called by Wayland listener when surface opacity changes.
 
void surfaceSourceChangedNotification (uint32_t surfaceId, const windowing::Region &source)
 Called by Wayland listener when surface source rectangle changes.
 
void surfaceVisibilityChangedNotification (uint32_t surfaceId, int32_t visibility)
 Called by Wayland listener when surface visibility changes.
 
void waitLayers (const WaylandDisplay &waylandDisplay) const
 Blocks until all layers are created by the compositor.
 
void waitSurfaces (const WaylandDisplay &waylandDisplay) const
 Blocks until all surfaces are created by the compositor.
 

Detailed Description

An abstraction class that allows to control IVI layers and surfaces.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

◆ IVILayoutManager()

kanzi::wayland::IVILayoutManager::IVILayoutManager ( IVIWM & iviWM,
const WaylandOutput & waylandOutput )
explicitnoexcept

Constructor.

Parameters
iviWMIVIWM object.
waylandOutputAssociated WaylandOutput.

Member Function Documentation

◆ createLayer()

void kanzi::wayland::IVILayoutManager::createLayer ( const IVILayerProps & iviLayerProps)

Requests the compositor to create a layer.

Parameters
iviLayerPropsLayer ID.

◆ bindLayer()

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

Assigns a layer to the screen.

Kanzi assumes that there is a single screen.

Parameters
layerIdLayer ID.

◆ releaseLayer()

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

Removes layer from the screen.

Kanzi assumes that there is a single screen.

Parameters
layerIdLayer ID.

◆ createSurface()

void kanzi::wayland::IVILayoutManager::createSurface ( const IVISurfaceProps & iviSurfaceProps)

Requests the compositor to create a surface.

Parameters
iviSurfacePropsProperties to use.

◆ bindSurface()

void kanzi::wayland::IVILayoutManager::bindSurface ( uint32_t surfaceId,
uint32_t layerId ) const

Assigns a surface to the specified layer.

Parameters
surfaceIdSurface ID.
layerIdLayer ID.

◆ releaseSurface()

void kanzi::wayland::IVILayoutManager::releaseSurface ( uint32_t surfaceId,
uint32_t layerId ) const

Removes a surface from the specified layer.

Parameters
surfaceIdSurface ID.
layerIdLayer ID.

◆ initializeLayer()

void kanzi::wayland::IVILayoutManager::initializeLayer ( const IVILayerProps & layerProps) const

Helper function to set up a layer for use.

Parameters
layerPropsProperties to use.

◆ initializeSurface()

void kanzi::wayland::IVILayoutManager::initializeSurface ( const IVISurfaceProps & surfaceProps) const

Helper function to set up a surface for use.

Parameters
surfacePropsProperties to use.

◆ configureLayer()

void kanzi::wayland::IVILayoutManager::configureLayer ( const IVILayerProps & layerProps) const

Helper function that requests the compositor to change surface state to match the provided properties.

Parameters
layerPropsProperties to use.

◆ configureSurface()

void kanzi::wayland::IVILayoutManager::configureSurface ( const IVISurfaceProps & surfaceProps) const

Helper function that will request compositor to change surface state to match supplied properties.

Parameters
surfacePropsProperties to use.

◆ waitLayers()

void kanzi::wayland::IVILayoutManager::waitLayers ( const WaylandDisplay & waylandDisplay) const

Blocks until all layers are created by the compositor.

Parameters
waylandDisplayAssociated WaylandDisplay.

◆ waitSurfaces()

void kanzi::wayland::IVILayoutManager::waitSurfaces ( const WaylandDisplay & waylandDisplay) const

Blocks until all surfaces are created by the compositor.

Parameters
waylandDisplayAssociated WaylandDisplay.

◆ layerCreatedNotification()

void kanzi::wayland::IVILayoutManager::layerCreatedNotification ( uint32_t layerId)

Called by Wayland listener when layer is created.

Parameters
layerIdLayer ID.

◆ layerVisibilityChangedNotification()

void kanzi::wayland::IVILayoutManager::layerVisibilityChangedNotification ( uint32_t layerId,
int32_t visibility )

Called by Wayland listener when layer visibility changes.

Parameters
layerIdLayer ID.
visibilityNew layer visibility.

◆ layerSourceChangedNotification()

void kanzi::wayland::IVILayoutManager::layerSourceChangedNotification ( uint32_t layerId,
const windowing::Region & source )

Called by Wayland listener when layer source rectangle changes.

Parameters
layerIdLayer ID.
sourceNew source rectangle.

◆ layerDestinationChangedNotification()

void kanzi::wayland::IVILayoutManager::layerDestinationChangedNotification ( uint32_t layerId,
const windowing::Region & destination )

Called by Wayland listener when layer destination rectangle changes.

Parameters
layerIdLayer ID.
destinationNew destination rectangle.

◆ layerOpacityChangedNotification()

void kanzi::wayland::IVILayoutManager::layerOpacityChangedNotification ( uint32_t layerId,
double opacity )

Called by Wayland listener when layer opacity changes.

Parameters
layerIdLayer ID.
opacityNew layer opacity.

◆ surfaceCreatedNotification()

void kanzi::wayland::IVILayoutManager::surfaceCreatedNotification ( uint32_t surfaceId)

Called by Wayland listener when surface has been created.

Parameters
surfaceIdSurface ID.

◆ surfaceVisibilityChangedNotification()

void kanzi::wayland::IVILayoutManager::surfaceVisibilityChangedNotification ( uint32_t surfaceId,
int32_t visibility )

Called by Wayland listener when surface visibility changes.

Parameters
surfaceIdSurface ID.
visibilityNew surface visibility.

◆ surfaceSourceChangedNotification()

void kanzi::wayland::IVILayoutManager::surfaceSourceChangedNotification ( uint32_t surfaceId,
const windowing::Region & source )

Called by Wayland listener when surface source rectangle changes.

Parameters
surfaceIdSurface ID.
sourceNew source rectangle.

◆ surfaceDestinationChangedNotification()

void kanzi::wayland::IVILayoutManager::surfaceDestinationChangedNotification ( uint32_t surfaceId,
const windowing::Region & destination )

Called by Wayland listener when surface destination rectangle changes.

Parameters
surfaceIdSurface ID.
destinationNew destination rectangle.

◆ surfaceOpacityChangedNotification()

void kanzi::wayland::IVILayoutManager::surfaceOpacityChangedNotification ( uint32_t surfaceId,
double opacity )

Called by Wayland listener when surface opacity changes.

Parameters
surfaceIdSurface ID.
opacityNew surface opacity.

◆ layerDestroyedNotification()

void kanzi::wayland::IVILayoutManager::layerDestroyedNotification ( uint32_t layerId)

Called by Wayland listener when layer is destroyed.

Parameters
layerIdLayer ID.

◆ surfaceDestroyedNotification()

void kanzi::wayland::IVILayoutManager::surfaceDestroyedNotification ( uint32_t surfaceId)

Called by Wayland listener when surface is destroyed.

Parameters
surfaceIdSurface ID.

◆ modeChangeNotification()

void kanzi::wayland::IVILayoutManager::modeChangeNotification ( int32_t width,
int32_t height,
int32_t refresh )
noexcept

Called by Wayland when screen properties change.

Parameters
widthNew screen width.
heightNew screen height.
refreshNew refresh rate (mHz).

◆ getResolution()

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

Gets screen resolution.

Returns
Screen resolution.

◆ getLayerProps()

KZ_NO_DISCARD const IVILayerProps & kanzi::wayland::IVILayoutManager::getLayerProps ( uint32_t layerId) const
noexcept

Gets the internal layer state.

Parameters
layerIdLayer ID.
Returns
Internal layer state.

◆ getSurfaceProps()

KZ_NO_DISCARD const IVISurfaceProps & kanzi::wayland::IVILayoutManager::getSurfaceProps ( uint32_t surfaceId) const
noexcept

Gets the internal surface state.

Parameters
surfaceIdSurface ID.
Returns
Internal surface state.

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