MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / set_focus

Method set_focus

src/engine.rs:5786–5788  ·  view source on GitHub ↗

Sets focus to the element with the given ID, firing on_unfocus/on_focus callbacks.

(&mut self, element_id: u32)

Source from the content-addressed store, hash-verified

5784
5785 /// Sets focus to the element with the given ID, firing on_unfocus/on_focus callbacks.
5786 pub fn set_focus(&mut self, element_id: u32) {
5787 self.change_focus(element_id);
5788 }
5789
5790 /// Clears focus (no element is focused).
5791 pub fn clear_focus(&mut self) {

Callers

nothing calls this directly

Calls 1

change_focusMethod · 0.80

Tested by

no test coverage detected