Module native
Expand description
The native desktop side of the toolkit, behind the default-on native
feature.
The host-service backends — the desktop implementation of
crate::host::HostServices (services), the location and
screen-capture portals and MPRIS on the session bus — live in tilo-host
and the platform crates, and are re-exported here under their usual paths. Cold-start warmup is the toolkit’s own. The winit event-loop
runner lives beside App (it drives App’s private state) and is compiled
only with this feature too; crate::App::run and crate::launch::run
are its entry points.
Without the feature the crate is the portable toolkit — widgets, state,
layout, rendering and the headless host — and whoever hosts it installs
its own services with crate::host::install_default.
Modules§
- capture
- Screen capture via the XDG Desktop Portal (
org.freedesktop.portal.ScreenCast, through the [ashpd] crate) — the nativecrate::host::ScreenCaptureProvider, with theportalfeature on Unix. - mpris
- MPRIS —
org.mpris.MediaPlayer2on the session bus — as the nativecrate::host::MediaSessionFactory. Seecrate::mprisfor the portable player-state and command core. - services
- The native desktop implementation of
HostServices. - warmup
- Cold-start warmup for expensive first-frame work.