Skip to main content

peek_response

Function peek_response 

Source
pub fn peek_response(ctx: &Context, id: Id) -> Option<Response>
Expand description

A widget’s response from this pass (else the last), read without touching the focus.

Context::read_response runs egui’s “clicked elsewhere” rule: on a click that did not land on the widget, a focused widget loses the focus. Called every pass for the focused widget (to find its layer, its place), it drops the focus a widget took when a click landed on one of its children (a tree focused through its clicked row). This reads the response with that rule off.

upstream: egui has no side-effect free way to read a widget’s response or layer (see docs/upstream.md).