Skip to main content

Crate whisker_linux

Crate whisker_linux 

Source
Expand description

Native GTK4 Linux Host for Whisker.

Each scene node is a GTK widget placed with Rust-computed geometry and painted through gtk::Snapshot; text is measured and drawn with Pango.

Re-exports§

pub use gtk4;

Structs§

LinuxAppConfig
Configuration for one standalone Linux window.
LinuxError
Failure while creating or running the GTK Host.
LinuxEventEmitter
Delivers native widget events to the node that owns the widget.
LinuxModuleDefinition
Linux implementation of one module, as returned by its Host crate.
LinuxViewDefinition
The View { Prop / Events / Command } portion of a Linux declaration.

Traits§

LinuxView
Content object of one mounted module view.

Functions§

request_view_frame
Calls callback with the frame clock time in milliseconds on the next frame, before Whisker applies that frame’s updates, so what it publishes lands in the same frame.
run
Runs a Whisker application in a GTK window until the window closes.
run_with_application_hash
Runs a Whisker application; Hot Reload remounts the root when the hash changes.