use ui::floating::{self, Floating};
// self.meter: Floating, built with Floating::new(Painter::of(cx))
div().relative().size_full()
.child(page)
.child(floating::panel("meter", &self.meter, home, meter))- Mount it in a
relative()container; it lays a layer over that container's whole box. - Pass
homeevery render. The panel sits there until first dragged. - Nothing is clamped or persisted. Read
at()and hand it back withmove_toto keep a position across launches. held()anddragging()tell a press from a move, for a grab cursor or a lift.