Skip to main content

bind_area

Function bind_area 

Source
pub fn bind_area(app: &AppHandle, name: &str, area: Rect)
Expand description

Says that an endpoint covers an area, each pass it is drawn: any focused widget whose centre lies inside it (a node of a graph, a row of a tree, a slider of a list) uses the endpoint. A widget bound alone (bind, bind_element) wins over an area.

The focused widget’s rectangle is read from egui’s lists of widgets, never through Context::read_response: building a response for a widget that is not hovered during a press makes egui surrender its focus.