Enum RenderingState

Enum Documentation

enum class slint::RenderingState : uint8_t

This enum describes the different rendering states, that will be provided to the parameter of the callback for set_rendering_notifier on the slint::Window.

Values:

enumerator RenderingSetup

The window has been created and the graphics adapter/context initialized. When OpenGL is used for rendering, the context will be current.

enumerator BeforeRendering

The scene of items is about to be rendered. When OpenGL is used for rendering, the context will be current.

enumerator AfterRendering

The scene of items was rendered, but the back buffer was not sent for display presentation yet (for example GL swap buffers). When OpenGL is used for rendering, the context will be current.

enumerator RenderingTeardown

The window will be destroyed and/or graphics resources need to be released due to other constraints.