Skip to content

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.

  • interpreter: The types in this namespace allow you to load a .slint file at runtime and show its UI.
  • platform: Use the types in this namespace when implementing a custom Slint platform.
  • testing: Use the functions and classes in this namespace for in-process UI testing.
  • language
  • Brush: Brush is used to declare how to fill or outline shapes, such as rectangles, paths or text.
  • Rgb565Pixel: A 16bit pixel that has 5 red bits, 6 green bits and 5 blue bits.
  • Gray8Pixel: A grayscale pixel: a single luminance channel encoded as 8 bits.
  • RgbaColor: RgbaColor stores the red, green, blue and alpha components of a color with the precision of the template parameter T.
  • HsvaColor: HsvaColor stores the hue, saturation, value, and alpha components of a color in the HSV color space.
  • 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 represents a color in the Slint run-time, represented using 8-bit channels for red, green, blue and the alpha (opacity).
  • DataTransfer: DataTransfer abstracts over the various ways of transferring data within an application and between applications.
  • SharedPixelBuffer: SharedPixelBuffer is a container for storing image data as pixels.
  • Image: An image type that can be displayed by the Image element
  • ComponentWeakHandle: A weak reference to the component. Can be constructed from a ComponentHandle<T>.
  • ComponentHandle: The component handle is like a shared pointer to a component in the generated code.
  • Keys: A Keys is created by the @keys(…) macro in Slint and defines which key event(s) activate a KeyBinding.
  • Model: A Model is providing Data for Slint Models or ListView elements of the .slint language
  • VectorModel: A Model backed by a SharedVector.
  • FilterModel: The FilterModel acts as an adapter model for a given source model by applying a filter function.
  • MapModel: The MapModel acts as an adapter model for a given source model by applying a mapping function.
  • 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: The ReverseModel acts as an adapter model for a given source model by reserving all rows.
  • Point: The Point structure is used to represent a two-dimensional point with x and y coordinates.
  • LogicalPosition: A position in logical pixel coordinates.
  • PhysicalPosition: A position in physical pixel coordinates.
  • SharedVector: SharedVector is a vector template class similar to std::vector ↗ that’s primarily used for passing data in and out of the Slint run-time library.
  • Size: The Size structure is used to represent a two-dimensional size with width and height.
  • LogicalSize: A size given in logical pixels.
  • PhysicalSize: A size given in physical pixels.
  • SharedString: A string type used by the Slint run-time.
  • StyledText: Styled text that has been parsed and separated into paragraphs.
  • Timer: A Timer that can call a callback at repeated interval
  • Window: This class represents a window towards the windowing system, that’s used to render the scene of a component.
  • BackendRequirements: Requirements for select_backend(). Unset members leave the choice to Slint.
  • Rgba8Pixel: Represents an RGBA pixel.
  • Rgb8Pixel: Represents an RGB pixel.
  • StandardListViewItem: Represents an item in a StandardListView and a StandardTableView.
  • CloseRequestResponse: This enum describes whether a Window is allowed to be hidden when the user tries to close the window.
  • EventLoopMode: Enum for the event loop mode parameter of the slint::run_event_loop() function.
  • GraphicsAPI: This enum describes a low-level access to specific graphics APIs used by the renderer.
  • PointerEventButton: This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.
  • PointerEventKind: The enum reports what happened to the PointerEventButton in the event.
  • 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: This enum describes the different error scenarios that may occur when the application registers a rendering notifier on a slint::Window.
  • TimerMode: The TimerMode specifies what should happen after the timer fired.
  • WindowKind: The window kind when creating a new child window.

© 2026 SixtyFPS GmbH