- Focus 🔒Keeps tracks of what widget has keyboard focus
- Say there is a button in a scroll area. If the user clicks the button, the button should click. If the user drags the button we should scroll the scroll area. So what we do is that when the mouse is pressed we register both the button and the scroll area (as
drag_id). If the user releases the button without moving the mouse we register it as a click on
click_id. If the cursor moves too much we clear the
click_idand start passing move events to
- The data that egui persists between frames.
- Some global options that you can read and write.