Expand description
The panel being drawn: a scope egui-pop holds around each panel’s draw, so what runs inside it (an emit, a listener, an ask, a sink of the bus’s trace tap) knows which panel, window and topology it runs for.
The scope is a thread-local stack, as super::asking is: a panel
drawn inside another’s draw (a palette’s preview) is the innermost.
An observer of the bus reads it from its sink, which the kernel calls
on the emitting thread (trace):
ⓘ
use egui_pop_api::bus::BusTrace;
let guard = app.bus().trace().unwrap().observe(|event| {
if let Some(drawing) = egui_pop_api::bus::drawing_panel() {
// `event` was made while `drawing.panel` was drawn.
}
});Experimental: may change in any release
(docs/stability.md).
Structs§
- Drawing
Panel - A panel being drawn (
drawing_panel).
Functions§
- drawing_
panel - The panel being drawn on this thread now, innermost first;
Noneoutside a panel’s draw.
Type Aliases§
- Topology
Of - Says which topology an application puts a panel in
(
AppHandle::set_panel_topology): the panel, the window holding it (DrawingPanel::window).