Skip to main content

Crate day_toolkit_qt

Crate day_toolkit_qt 

Source
Expand description

day-toolkit-qt — the Qt 6 Widgets backend (linux-qt / macos-qt; DESIGN.md §9), over the day-toolkit-qt-sys C++ shim. Handle = QtHandle(*mut QWidget); absolute geometry; toggle is a QCheckBox (Qt Widgets has no native switch — an explicitly documented divergence).

Re-exports§

pub use ext::*;

Modules§

ext
Tweaks (docs/tweaks.md): RAW access to the QWidget* behind a Day-created piece.

Structs§

Qt
QtHandle

Statics§

RENDERERS
Renderers registered by external Day Piece crates (§8.2).

Functions§

day_qt_open_file⚠
Qt’s macOS QFileOpenEvent; command-line activations on other OSes use day-core.
emit
icon_args
The icon spec a piece shim hands day_qt_icon_new (docs/extending.md): see toolbar::icon_args. An item’s icon as the (spec, QStyle fallback) pair the shim’s icon resolution takes (day_qt_toolbar_icon): a symbol as theme-name|outline.svg (the desktop’s themed icon, else Day’s own outline), a bundled image as its resolved file path (no theme name; Qt loads it through the lookup’s file branch), plus the standard pixmap to fall back on (-1 for none). Public for a piece that draws icons in a shim of its own (day_qt_icon_new).
lifecycle_supported
Which lifecycle phases this desktop backend delivers (docs/lifecycle.md): the universal set. const so day::require_lifecycle! can reject unsupported phases at compile time.
qt_style
Point size + the style’s inherent weight for a logical Font (Qt has no semantic text styles; we approximate the platform typographic scale, matching Apple’s text-style sizes for consistency). Public for standalone pieces (docs/extending.md), which have to resolve the same scale.

Type Aliases§

Handle