frus-widgets
frus's widget library and interaction model: the widget tree, theming, and the build that turns a tree into a scene plus everything needed to hit-test, focus and scroll it.
Layer: Widgets, above the foundations and below the shell. It is platform-independent: the shell feeds it input, and it never opens a window. See ARCHITECTURE.md.
What you reach for
Widget<Msg>: the trait every widget implements, generic over the application's message type.column!,row!,text,button,Container,Scaffold,Theme: what aviewis written with.build_ui,UiandRuntime: a tree built for one frame, against the state kept between frames. The shell andfrus-testcall these; an application rarely does.
Example
use ;
let root: = Boxnew;
let = ;
let ui = build_ui;
assert!;
Features
images (default) decodes embedded PNG and JPEG; the bundled-* features choose the
fonts compiled in; icons-outlined, icons-rounded and icons-sharp add icon styles
beyond the filled set.
Part of frus
Applications get all of this through the frus facade. See the
workspace README. Licensed under MIT or
Apache-2.0.