Skip to main content

Module slint_adapter

Module slint_adapter 

Source
Expand description

This module contains relevent structs for slint side backend configurations. Apart from SpellMultiLayerShell and SpellMultiWinHandler, rest of the structs mentioned are either internal or not used anymore. Still their implementation is public because they had be set by the user of library in intial iterations of spell_framework.

Structs§

SpellLayerShell
Previously needed to be implemented, now this struct is called and set internally when invoke_spell is called.
SpellLockShell
SpellMultiLayerShell
This struct needs to be set when multiple windows are to be started together. It is used in combination with conjure_spells and is required to be set before any other initialisation with an instance of SpellMultiWinHandler. It implements slint’s Platform trait and is set internally.
SpellMultiWinHandler
Used for the initialisation of SpellMultiLayerShell, this struct is responsible for handling, initialising, updating and maintaing of various widgets that are being rendered simultaneously. It uses SpellSkiaWinAdapter internally.

Type Aliases§

SpellSkiaWinAdapter
It is the main struct handling the rendering of pixels in the wayland window. It implements slint’s WindowAdapter trait. It is used internally by SpellMultiWinHandler and previously by SpellLayerShell. This adapter internally uses Skia 2D graphics library for rendering.