---
title: "slint Namespace"
---
The `slint` namespace is the primary entry point into the Slint C++ API. All available types are in this namespace.

See the Overview documentation for the C++ integration and how to load `.slint` designs.

## Namespaces
- [interpreter](interpreter/): The types in this namespace allow you to load a .slint file at runtime and show its UI.
- [platform](platform/): Use the types in this namespace when implementing a custom Slint platform.
- [testing](testing/): Use the functions and classes in this namespace for in-process UI testing.
- [language](language/)

## Types
- [Brush](brush/): Brush is used to declare how to fill or outline shapes, such as rectangles, paths or text.
- [Rgb565Pixel](rgb565pixel/): A 16bit pixel that has 5 red bits, 6 green bits and 5 blue bits.
- [Gray8Pixel](gray8pixel/): A grayscale pixel: a single luminance channel encoded as 8 bits.
- [RgbaColor](rgbacolor/): RgbaColor stores the red, green, blue and alpha components of a color with the precision of the template parameter T.
- [HsvaColor](hsvacolor/): HsvaColor stores the hue, saturation, value, and alpha components of a color in the HSV color space.
- [OklchColor](oklchcolor/): OklchColor stores the lightness, chroma, hue, and alpha components of a color in the Oklch color space (a perceptually uniform color space).
- [Color](color/): Color represents a color in the Slint run-time, represented using 8-bit channels for red, green, blue and the alpha (opacity).
- [DataTransfer](datatransfer/): `DataTransfer` abstracts over the various ways of transferring data within an application and between applications.
- [SharedPixelBuffer](sharedpixelbuffer/): SharedPixelBuffer is a container for storing image data as pixels.
- [Image](image/): An image type that can be displayed by the Image element
- [ComponentWeakHandle](componentweakhandle/): A weak reference to the component. Can be constructed from a `ComponentHandle<T>`.
- [ComponentHandle](componenthandle/): The component handle is like a shared pointer to a component in the generated code.
- [Keys](keys/): A `Keys` is created by the @keys(...) macro in Slint and defines which key event(s) activate a KeyBinding.
- [Model](model/): A Model is providing Data for Slint Models or ListView elements of the `.slint` language
- [VectorModel](vectormodel/): A [Model](model/) backed by a [SharedVector](sharedvector/).
- [FilterModel](filtermodel/): The FilterModel acts as an adapter model for a given source model by applying a filter function.
- [MapModel](mapmodel/): The MapModel acts as an adapter model for a given source model by applying a mapping function.
- [SortModel](sortmodel/): The SortModel acts as an adapter model for a given source model by sorting all rows with by order provided by the given sorting function.
- [ReverseModel](reversemodel/): The ReverseModel acts as an adapter model for a given source model by reserving all rows.
- [Point](point/): The Point structure is used to represent a two-dimensional point with x and y coordinates.
- [LogicalPosition](logicalposition/): A position in logical pixel coordinates.
- [PhysicalPosition](physicalposition/): A position in physical pixel coordinates.
- [SharedVector](sharedvector/): SharedVector is a vector template class similar to [std::vector](https://en.cppreference.com/w/cpp/container/vector) that's primarily used for passing data in and out of the Slint run-time library.
- [Size](size/): The Size structure is used to represent a two-dimensional size with width and height.
- [LogicalSize](logicalsize/): A size given in logical pixels.
- [PhysicalSize](physicalsize/): A size given in physical pixels.
- [SharedString](sharedstring/): A string type used by the Slint run-time.
- [StyledText](styledtext/): Styled text that has been parsed and separated into paragraphs.
- [Timer](timer/): A Timer that can call a callback at repeated interval
- [Window](window/): This class represents a window towards the windowing system, that's used to render the scene of a component.
- [BackendRequirements](backendrequirements/): Requirements for [select\_backend()](select_backend/). Unset members leave the choice to Slint.
- [Rgba8Pixel](rgba8pixel/): Represents an RGBA pixel.
- [Rgb8Pixel](rgb8pixel/): Represents an RGB pixel.
- [StandardListViewItem](standardlistviewitem/): Represents an item in a StandardListView and a StandardTableView.

## Functions
- [blocking_invoke_from_event_loop](blocking_invoke_from_event_loop/): Blocking version of [invoke\_from\_event\_loop()](invoke_from_event_loop/)
- [invoke_from_event_loop](invoke_from_event_loop/): Adds the specified functor to an internal queue, notifies the event loop to wake up.
- [quit_event_loop](quit_event_loop/): Schedules the main event loop for termination.
- [run_event_loop](run_event_loop/): Enters the main event loop.
- [select_backend](select_backend/): Selects one of Slint's built-in [backends with a renderer](https://snapshots.slint.dev/master/docs/slint/guide/backends-and-renderers/backends_and_renderers/) that meets *requirements*, and makes it the active backend.
- [select_bundled_translation](select_bundled_translation/): Select the current translation language when using bundled translations.
- [set_xdg_app_id](set_xdg_app_id/): Sets the application id for use on Wayland or X11 with [xdg](https://specifications.freedesktop.org/desktop-entry-spec/latest/) compliant window managers.
- [update_all_translations](update_all_translations/): Forces all the strings that are translated with `@tr(...)` to be re-evaluated.

## Enumerations
- [CloseRequestResponse](closerequestresponse/): This enum describes whether a [Window](window/) is allowed to be hidden when the user tries to close the window.
- [EventLoopMode](eventloopmode/): Enum for the event loop mode parameter of the [slint::run\_event\_loop()](run_event_loop/) function.
- [GraphicsAPI](graphicsapi/): This enum describes a low-level access to specific graphics APIs used by the renderer.
- [PointerEventButton](pointereventbutton/): This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.
- [PointerEventKind](pointereventkind/): The enum reports what happened to the `PointerEventButton` in the event.
- [RenderingState](renderingstate/): 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`.
- [SetRenderingNotifierError](setrenderingnotifiererror/): This enum describes the different error scenarios that may occur when the application registers a rendering notifier on a `slint::Window`.
- [TimerMode](timermode/): The TimerMode specifies what should happen after the timer fired.
- [WindowKind](windowkind/): The window kind when creating a new child window.