Skip to content

slint::interpreter Namespace

The types in this namespace allow you to load a .slint file at runtime and show its UI.

You only need to use them if you do not want to use pre-compiled .slint code, which is the normal way to use Slint.

The entry point for this namespace is the ComponentCompiler, which you can use to create ComponentDefinition instances with the ComponentCompiler::build_from_source() or ComponentCompiler::build_from_path() functions.

  • Struct: This type represents a runtime instance of structure in .slint.
  • Value: This is a dynamically typed value used in the Slint interpreter.
  • ComponentInstance: The ComponentInstance represents a running instance of a component.
  • ComponentDefinition: ComponentDefinition is a representation of a compiled component from .slint markup.
  • ComponentCompiler: ComponentCompiler is the entry point to the Slint interpreter that can be used to load .slint files or compile them on-the-fly from a string (using build_from_source()) or from a path (using build_from_path())
  • Diagnostic: Diagnostic describes the aspects of either a warning or an error, along with its location and a description.
  • PropertyDescriptor: PropertyDescriptor is a simple structure that’s used to describe a property declared in .slint code.
  • DiagnosticLevel: DiagnosticLevel describes the severity of a diagnostic.
  • ValueType: This enum represents the different public variants of the [Value] enum, without the contained values.

© 2026 SixtyFPS GmbH