slint_core library

Flutter-free core of the slint package: component/engine interfaces, render targets, and input event encoding.

Usable from plain Dart (CLIs, code generators, tests). The SlintView widget lives in package:slint/slint.dart.

Classes

SlintComponent
A live component instance.
SlintComponentDefinition
A compiled, instantiable component.
SlintEngine
Compiles .slint source into component definitions.
SlintInspectableComponent
A live instance whose accessibility tree can be inspected.
SlintKeyEvent
SlintPointerEvent
SlintRenderTarget
A component instance bound to a renderable surface.
SlintSoftwareComponent
A live instance that renders through a software target — satisfied by both the interpreter instances (slint_interpreter) and the AOT-compiled ones (slint_compiler).
SlintSoftwareRenderTarget
Software-rendered target exposing the frame as premultiplied RGBA8888 pixels (slint_interpreter).
SlintTextureRenderTarget
GPU-rendered target exposing a Flutter external-texture id (slint_skia).

Enums

SlintPointerButton
SlintPointerEventKind
Input events forwarded from Flutter into a Slint scene.

Typedefs

SlintCallbackHandler = Object? Function(List<Object?> arguments)
SlintComponentLoader = Future<SlintSoftwareComponent> Function(String path, String? component)
Reads a .slint asset and instantiates a component from it, for SlintComponent.loadAsset. Implemented by backends that compile at runtime.