Expand description
Timer module.
This public module implements the Liora timer/countdown display component. It keeps the reusable
component logic inside liora-components rather than Gallery or Docs so
downstream GPUI applications can compose the same behavior with their own
app state, assets, and release policy.
§Usage model
Components in this module render native GPUI element trees. Stateless builder
values can be constructed inline, while controls with focus, selection,
popup, drag, or editing state should be stored as gpui::Entity<T> fields in
the parent view so state survives GPUI render passes.
§Design contract
The implementation should use Liora theme tokens from liora-core and
liora-theme, keep accessibility-oriented keyboard/pointer behavior close to
the component, and avoid app-specific Gallery/Docs resources in this SDK
crate.
Structs§
- Timer
- Fluent native GPUI component for rendering Liora timer.
- Timer
Snapshot - Fluent native GPUI component for rendering Liora timer snapshot.
Enums§
- Timer
Direction - Options that control timer direction behavior.
- Timer
Format - Options that control timer format behavior.
- Timer
Unit - Options that control timer unit behavior.
Functions§
- duration_
as - Performs the duration as operation used by this component.
- format_
clock - Formats clock for display.
- format_
duration - Formats duration for display.