Slint C++ Logo
0.3.2

Getting Started

  • Installing or Building with CMake
    • Binary Packages
    • Building from Sources
      • Features
      • Backends
      • Cross-compiling
  • First Steps
    • Tutorial
    • Template
  • Recipes and Examples
    • Get Started
      • A clickable Button
      • React to a Button in native code
      • Use property bindings to synchronize controls
    • Animations
      • Animate the position of an element
      • Animation Sequence
    • States
      • Associate multiple property values with states
      • Transitions
    • Layouts
      • Vertical
      • Horizontal
      • Grid
    • Global Callbacks
      • Invoke a globally registered native callback from Slint
      • Translations
    • Custom widgets
      • Custom Button
      • ToggleSwitch
      • CustomSlider
      • Custom Tabs
      • Table view

C++ / .slint Integration

  • Overview
    • Compiled .slint designs
    • Run-time interpreted .slint designs
  • Type Mapping to C++
    • Structures
  • Example Generated Code
    • Example
    • Global Singletons

Reference

  • C++ API Reference
    • Class Hierarchy
    • File Hierarchy
    • Full API
      • Namespaces
        • Namespace slint
        • Namespace slint::interpreter
      • Classes and Structs
        • Struct Image
        • Struct Diagnostic
        • Struct PropertyDescriptor
        • Struct Struct
        • Struct Struct::iterator
        • Struct LogicalPosition
        • Struct LogicalSize
        • Struct PhysicalPosition
        • Struct PhysicalSize
        • Template Struct Point
        • Template Struct RgbaColor
        • Struct SharedString
        • Template Struct SharedVector
        • Template Struct Size
        • Struct Timer
        • Class Brush
        • Class Color
        • Template Class ComponentHandle
        • Template Class ComponentWeakHandle
        • Template Class FilterModel
        • Class ComponentCompiler
        • Class ComponentDefinition
        • Class ComponentInstance
        • Class Value
        • Template Class MapModel
        • Template Class Model
        • Template Class SortModel
        • Template Class VectorModel
        • Class Window
      • Enums
        • Enum CloseRequestResponse
        • Enum GraphicsAPI
        • Enum DiagnosticLevel
        • Enum ValueType
        • Enum RenderingState
        • Enum SetRenderingNotifierError
        • Enum TimerMode
      • Functions
        • Template Function slint::blocking_invoke_from_event_loop
        • Template Function slint::invoke_from_event_loop
        • Function slint::quit_event_loop
        • Function slint::run_event_loop
      • Defines
        • Define SLINT_VERSION_MAJOR
        • Define SLINT_VERSION_MINOR
        • Define SLINT_VERSION_PATCH
  • Index (C++)
  • The .slint UI Design Language
    • Language Reference
      • .slint files
        • Container Components
      • Comments
      • Identifiers
      • Properties
        • Bindings
        • Two-way Bindings
      • Types
        • Structs
        • Custom named structures
        • Arrays / Model
        • Conversions
        • Relative Lengths
      • Callback
        • Callback aliases
      • Expressions
        • Strings
        • Colors and Brushes
        • Images
        • Arrays/Structs
      • Statements
      • Repetition
        • Examples
      • Conditional element
      • Animations
      • States
        • Transitions
      • Global Singletons
      • Modules
      • Focus Handling
      • Builtin functions
      • Builtin callbacks
        • Math namespace
        • Colors namespace
      • Font Handling
    • Builtin Elements
      • Common properties
        • Accessibility
        • Drop Shadows
      • Window
        • Properties
      • Rectangle
        • Properties
        • Example
      • Image
        • Properties
        • Example
      • Text
        • Properties
        • Example
      • Path
        • Common Path Properties
      • TouchArea
        • Properties
        • Callbacks
        • Example
      • FocusScope
        • Properties
        • Methods
        • Callbacks
        • Example
      • VerticalLayout / HorizontalLayout
      • Properties
      • Example
      • GridLayout
        • Properties
        • Examples
      • PathLayout
      • Flickable
        • Properties
        • Example
      • TextInput
        • Properties
        • Methods
        • Callbacks
        • Example
      • PopupWindow
        • Methods
        • Example
      • Dialog
        • Properties
        • Example
    • Builtin Structures
      • Point
        • Fields
      • KeyEvent
        • Fields
      • KeyboardModifiers
        • Fields
      • PointerEvent
        • Fields
    • Namespaces
      • Key
      • Colors
    • Builtin Enums
      • TextHorizontalAlignment
      • TextVerticalAlignment
      • TextWrap
      • TextOverflow
      • EventResult
      • FillRule
      • StandardButtonKind
      • DialogButtonRole
      • PointerEventKind
      • PointerEventButton
      • MouseCursor
      • ImageFit
      • ImageRendering
      • InputType
      • LayoutAlignment
      • PathEvent
      • AccessibleRole
    • Widgets
      • Button
        • Properties
        • Callbacks
        • Example
      • StandardButton
        • Properties
        • Callbacks
        • Example
      • CheckBox
        • Properties
        • Callbacks
        • Example
      • SpinBox
        • Properties
        • Example
      • Slider
        • Properties
        • Callbacks
        • Example
      • GroupBox
        • Properties
        • Example
      • LineEdit
        • Properties
        • Callbacks
        • Example
      • TextEdit
        • Properties
        • Callbacks
        • Example
      • ScrollView
        • Properties
        • Example
      • ListView
        • Properties
        • Example
      • StandardListView
        • Properties
        • Example
      • ComboBox
        • Properties
        • Callbacks
        • Example
      • TabWidget
        • Properties
        • Properties of the Tab element
        • Example
      • HorizontalBox, VerticalBox, GridBox
      • AboutSlint
      • Selecting a Widget Style
        • Selecting the Widget Style When Using the slint_build Crate
        • Selecting the Widget Style When Using the slint_interpreter Crate
        • Selecting the Widget Style When Previewing Designs With slint-viewer
        • Selecting the Widget Style When Previewing Designs With The Slint Visual Studio Code Extension
        • Selecting the Widget Style When Previewing Designs With The Generic LSP Process
    • Positioning and Layout of Elements
      • Explicit Placement
      • Automatic Placement using Layouts
      • Common Properties on Layout Elements
      • VerticalLayout and HorizontalLayout
        • Alignment
        • Stretch algorithm
        • for
      • GridLayout
      • PathLayout
  • Debugging Techniques
    • Slow Motion Animations
    • User Interface Scaling
    • Performance Debugging
Slint C++
  • C++ API Reference
  • Namespace slint

Namespace slint

Contents

  • Detailed Description

  • Namespaces

  • Classes

  • Enums

  • Functions

Detailed Description

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 how to load .slint designs.

Namespaces

  • Namespace slint::interpreter

Classes

  • Struct Image

  • Struct LogicalPosition

  • Struct LogicalSize

  • Struct PhysicalPosition

  • Struct PhysicalSize

  • Template Struct Point

  • Template Struct RgbaColor

  • Struct SharedString

  • Template Struct SharedVector

  • Template Struct Size

  • Struct Timer

  • Class Brush

  • Class Color

  • Template Class ComponentHandle

  • Template Class ComponentWeakHandle

  • Template Class FilterModel

  • Template Class MapModel

  • Template Class Model

  • Template Class SortModel

  • Template Class VectorModel

  • Class Window

Enums

  • Enum CloseRequestResponse

  • Enum GraphicsAPI

  • Enum RenderingState

  • Enum SetRenderingNotifierError

  • Enum TimerMode

Functions

  • Template Function slint::blocking_invoke_from_event_loop

  • Template Function slint::invoke_from_event_loop

  • Function slint::quit_event_loop

  • Function slint::run_event_loop

Previous Next

© Copyright 2022, info@slint-ui.com.

Built with Sphinx using a theme provided by Read the Docs.