slint::BackendRequirements Struct
struct BackendRequirements;C++
#include <slint.h>C++
Requirements for select_backend(). Unset members leave the choice to Slint.
- OpenGLVersion: A version of OpenGL or OpenGL ES.
Public Attributes
Section titled “Public Attributes” backend
Section titled “ backend”std::string_view slint::BackendRequirements::backend
The name of the backend, such as winit. This is equivalent to setting the SLINT_BACKEND environment variable, and requires that Slint was built with the corresponding backend feature.
renderer
Section titled “ renderer”std::string_view slint::BackendRequirements::renderer
The name of the renderer, such as skia. This requires that Slint was built with the corresponding renderer feature.
graphics_api
Section titled “ graphics_api”std::optional<GraphicsAPI> std::optional<GraphicsAPI> slint::BackendRequirements::graphics_api
The graphics API that the renderer must use. GraphicsAPI::Inaccessible isn’t a valid requirement.
min_opengl_version
Section titled “ min_opengl_version”std::optional<OpenGLVersion> std::optional<OpenGLVersion> slint::BackendRequirements::min_opengl_version
The minimum version of OpenGL or OpenGL ES. This requires graphics_api to be GraphicsAPI::OpenGL or GraphicsAPI::OpenGLES.
© 2026 SixtyFPS GmbH