---
title: "slint::BackendRequirements Struct"
description: "Requirements for [select\\_backend()](../select_backend/). Unset members leave the choice to Slint."
---
```cpp
struct BackendRequirements;
```

```cpp
#include <slint.h>
```

Requirements for [select\_backend()](../select_backend/). Unset members leave the choice to Slint.

## Types
- [OpenGLVersion](../backendrequirements-openglversion/): A version of OpenGL or OpenGL ES.

## Public Attributes

### `backend`

```cpp
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`

```cpp
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`

```cpp
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`

```cpp
std::optional<OpenGLVersion> std::optional<OpenGLVersion> slint::BackendRequirements::min_opengl_version
```

The minimum version of OpenGL or OpenGL ES. This requires [graphics\_api](./#graphics_api) to be `GraphicsAPI::OpenGL` or `GraphicsAPI::OpenGLES`.