i_slint_core

Module api

Source
Expand description

This module contains types that are public and re-exported in the slint-rs as well as the slint-interpreter crate as public API.

Re-exports§

Structs§

  • A position represented in the coordinate space of logical pixels. That is the space before applying a display device specific scale factor.
  • A size represented in the coordinate space of logical pixels. That is the space before applying a display device specific scale factor.
  • A position represented in the coordinate space of physical device pixels. That is the space after applying a display device specific scale factor to pixels from the logical coordinate space.
  • A size represented in the coordinate space of physical device pixels. That is the space after applying a display device specific scale factor to pixels from the logical coordinate space.
  • Struct that’s used to hold weak references of a Slint component
  • This type represents a window towards the windowing system, that’s used to render the scene of a component. It provides API to control windowing system specific aspects such as the position on the screen.

Enums§

Traits§

  • This trait describes the common public API of a strongly referenced Slint component. It allows creating strongly-referenced clones, a conversion into/ a weak pointer as well as other convenience functions.
  • This trait is used to obtain references to global singletons exported in .slint markup. Alternatively, you can use ComponentHandle::global to obtain access.

Functions§

  • Adds the specified function to an internal queue, notifies the event loop to wake up. Once woken up, any queued up functors will be invoked.
  • Schedules the main event loop for termination. This function is meant to be called from callbacks triggered by the UI. After calling the function, it will return immediately and once control is passed back to the event loop, the initial call to slint::run_event_loop() will return.
  • Sets the application id for use on Wayland or X11 with xdg compliant window managers. This must be set before the window is shown, and has only an effect on Wayland or X11.