Skip to main content

Crate smudge_core

Crate smudge_core 

Source
Expand description

Geometry, the element builder, the widget tree, style, layout, paint, damage tracking and the frame pipeline.

Everything in this crate is independent of a window, a GPU or a rasterizer, so it builds for any target the standard library supports.

Re-exports§

pub use app::App;
pub use app::AppConfig;
pub use app::FrameOutput;
pub use app::FrameStats;
pub use app::RepaintMode;

Modules§

app
The application: the single entry point that runs a frame from reactive effects to damage.
channel
Messages from other threads to the application’s user interface thread.
clipboard
The clipboard an application’s widgets copy text through.
element
Elements: the builder that describes one node, and the bindings that keep its properties current.
geometry
Geometry and color types shared by layout, paint and damage.
image
Premultiplied RGBA pixel data that widgets paint into rectangles.
input
The platform-independent input events an application receives.
paint
Paint operations and the display list that renderers replay.
reactive
The reactive runtime: signals, memos, effects and owners driven by the frame.
renderer
The trait every renderer implements.
semantics
The accessibility projection: the roles and names widgets report and the tree the App exposes to an accessibility backend.
style
Style data for one node, split into layout properties and paint properties.
theme
Theme tokens for colors and corner radii.
timer
Timers that run between frames, on the clock their App keeps.
tree
The retained widget tree.
variants
Style variants: patches the base style takes on while a node is hovered, keyboard focused, pressed or disabled.
widget
The trait every widget implements, and the widgets this crate provides.
window
Commands an application sends to its window, and the window state it reads.