document add_focus_event

This commit is contained in:
jestarray 2024-11-13 09:42:49 -08:00 committed by Jonathan Spira
parent a09b72049f
commit 36dd72e72d

View File

@ -457,7 +457,9 @@ impl Io {
sys::ImGuiIO_AddKeyEvent(self.raw_mut(), key as u32, down);
}
}
// Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window)
// Note: [`io.config_debug_ignore_focus_loss`] will ignore this event from firing
#[doc(alias = "AddFocusEvent")
pub fn add_focus_event(&mut self, focused: bool) {
unsafe {
sys::ImGuiIO_AddFocusEvent(self.raw_mut(), focused);