Skip to main content

Module convert

Module convert 

Source
Expand description

The toolkit boundary’s dictionary: geom and paint ↔ egui, one conversion per type.

Two extension traits rather than From impls, because neither blockworx-geom nor blockworx-paint names an egui-family crate — normal, build or dev — so neither side of a pair can own the impl. A call site says .egui() when it is about to hand a value to an egui API and .geom() when it has just taken one back, which reads as the crossing it is.

Macros§

xy 🔒
One x/y pair to another.

Traits§

IntoEgui
Geom → egui, at the point an egui API is called.
IntoGeom
egui → geom, at the point a value comes back across the boundary.

Functions§

visuals
Build egui’s Visuals from palette so the chrome egui draws itself — menus, buttons, checkboxes, separators and the in-place rename TextEdit — matches the canvas. Starts from the light or dark preset (per the scheme’s own luminance) and overrides the colors that read against our background.