Skip to content

slint::BackendRequirements Struct

struct BackendRequirements;
C++
#include <slint.h>
C++

Requirements for select_backend(). Unset members leave the choice to Slint.

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.

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.

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.

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