Expand description
§rust-pushrod
Pushrod is a library written entirely in Rust for drawing interactive elements to a window.
It is an event-based GUI library that utilizes an event loop to handle the event, dispatch, and draw loop.
§Core, widgets, and backends
This crate is the core: the engine, the Widget trait and widget tree, events, input types,
the Backend trait, the backend-neutral Painter API and paint
helpers. It has no windowing-library dependency. It contains no widgets except the
window’s RootWidget. The standard widgets (buttons, text, boxes,
and the rest) live in the pushrod-widgets crate, which depends on this crate only.
An application picks a backend crate. pushrod-sdl2 draws with SDL2:
ⓘ
pushrod_sdl2::run(engine, pushrod_sdl2::WindowSettings::new("App", size(400, 300)), state);For tests, HeadlessBackend needs no display.
Modules§
- appearance
- Per-state appearance
- backend
- Backends
- cache
- WidgetCache
- color
- Color
- controllers
- Controllers
- engine
- Engine
- error
- Errors
- event
- Events
- geometry
- Geometry
- input
- Input
- paint
- Paint
- root_
widget - RootWidget
- text
- Text layout: the
TextLayouttrait, its per-widgetLayoutCache, and (with theparleyfeature) the Parley engine. Seelayoutfor the overview. - timer
- Timers
- widget
- Widget