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 IVILayerProps & | getLayerProps (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 IVISurfaceProps & | getSurfaceProps (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. | |
An abstraction class that allows to control IVI layers and surfaces.
|
explicitnoexcept |
Constructor.
iviWM | IVIWM object. |
waylandOutput | Associated WaylandOutput. |
void kanzi::wayland::IVILayoutManager::createLayer | ( | const IVILayerProps & | iviLayerProps | ) |
Requests the compositor to create a layer.
iviLayerProps | Layer ID. |
Assigns a layer to the screen.
Kanzi assumes that there is a single screen.
layerId | Layer ID. |
Removes layer from the screen.
Kanzi assumes that there is a single screen.
layerId | Layer ID. |
void kanzi::wayland::IVILayoutManager::createSurface | ( | const IVISurfaceProps & | iviSurfaceProps | ) |
Requests the compositor to create a surface.
iviSurfaceProps | Properties to use. |
Assigns a surface to the specified layer.
surfaceId | Surface ID. |
layerId | Layer ID. |
void kanzi::wayland::IVILayoutManager::releaseSurface | ( | uint32_t | surfaceId, |
uint32_t | layerId ) const |
Removes a surface from the specified layer.
surfaceId | Surface ID. |
layerId | Layer ID. |
void kanzi::wayland::IVILayoutManager::initializeLayer | ( | const IVILayerProps & | layerProps | ) | const |
Helper function to set up a layer for use.
layerProps | Properties to use. |
void kanzi::wayland::IVILayoutManager::initializeSurface | ( | const IVISurfaceProps & | surfaceProps | ) | const |
Helper function to set up a surface for use.
surfaceProps | Properties to use. |
void kanzi::wayland::IVILayoutManager::configureLayer | ( | const IVILayerProps & | layerProps | ) | const |
Helper function that requests the compositor to change surface state to match the provided properties.
layerProps | Properties to use. |
void kanzi::wayland::IVILayoutManager::configureSurface | ( | const IVISurfaceProps & | surfaceProps | ) | const |
Helper function that will request compositor to change surface state to match supplied properties.
surfaceProps | Properties to use. |
void kanzi::wayland::IVILayoutManager::waitLayers | ( | const WaylandDisplay & | waylandDisplay | ) | const |
Blocks until all layers are created by the compositor.
waylandDisplay | Associated WaylandDisplay. |
void kanzi::wayland::IVILayoutManager::waitSurfaces | ( | const WaylandDisplay & | waylandDisplay | ) | const |
Blocks until all surfaces are created by the compositor.
waylandDisplay | Associated WaylandDisplay. |
Called by Wayland listener when layer is created.
layerId | Layer ID. |
void kanzi::wayland::IVILayoutManager::layerVisibilityChangedNotification | ( | uint32_t | layerId, |
int32_t | visibility ) |
Called by Wayland listener when layer visibility changes.
layerId | Layer ID. |
visibility | New layer visibility. |
void kanzi::wayland::IVILayoutManager::layerSourceChangedNotification | ( | uint32_t | layerId, |
const windowing::Region & | source ) |
Called by Wayland listener when layer source rectangle changes.
layerId | Layer ID. |
source | New source rectangle. |
void kanzi::wayland::IVILayoutManager::layerDestinationChangedNotification | ( | uint32_t | layerId, |
const windowing::Region & | destination ) |
Called by Wayland listener when layer destination rectangle changes.
layerId | Layer ID. |
destination | New destination rectangle. |
void kanzi::wayland::IVILayoutManager::layerOpacityChangedNotification | ( | uint32_t | layerId, |
double | opacity ) |
Called by Wayland listener when layer opacity changes.
layerId | Layer ID. |
opacity | New layer opacity. |
Called by Wayland listener when surface has been created.
surfaceId | Surface ID. |
void kanzi::wayland::IVILayoutManager::surfaceVisibilityChangedNotification | ( | uint32_t | surfaceId, |
int32_t | visibility ) |
Called by Wayland listener when surface visibility changes.
surfaceId | Surface ID. |
visibility | New surface visibility. |
void kanzi::wayland::IVILayoutManager::surfaceSourceChangedNotification | ( | uint32_t | surfaceId, |
const windowing::Region & | source ) |
Called by Wayland listener when surface source rectangle changes.
surfaceId | Surface ID. |
source | New source rectangle. |
void kanzi::wayland::IVILayoutManager::surfaceDestinationChangedNotification | ( | uint32_t | surfaceId, |
const windowing::Region & | destination ) |
Called by Wayland listener when surface destination rectangle changes.
surfaceId | Surface ID. |
destination | New destination rectangle. |
void kanzi::wayland::IVILayoutManager::surfaceOpacityChangedNotification | ( | uint32_t | surfaceId, |
double | opacity ) |
Called by Wayland listener when surface opacity changes.
surfaceId | Surface ID. |
opacity | New surface opacity. |
Called by Wayland listener when layer is destroyed.
layerId | Layer ID. |
Called by Wayland listener when surface is destroyed.
surfaceId | Surface ID. |
|
noexcept |
Called by Wayland when screen properties change.
width | New screen width. |
height | New screen height. |
refresh | New refresh rate (mHz). |
|
noexcept |
Gets screen resolution.
|
noexcept |
Gets the internal layer state.
layerId | Layer ID. |
|
noexcept |