From 2df079e5635ce31f7b225aa803bb49c49e559512 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Sun, 29 Apr 2018 20:31:27 +0900 Subject: [PATCH] [cimgui 1.53.1] Obsolete sys::igIsRootWindowOrAnyChildFocused() Should use `igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows)` instead. --- CHANGELOG.markdown | 2 ++ imgui-sys/src/lib.rs | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 886fbfa..df147e8 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -8,6 +8,8 @@ - Rename `ImGuiTreeNodeFlags::AllowOverlapMode` to `ImGuiTreeNodeFlags::AllowItemOverlap`. - Obsolete `sys::igIsRootWindowFocused()` in favor of using `sys::igIsWindowFocused(ImGuiFocusedFlags::RootWindow)`. + - Obsolete `sys::igIsRootWindowOrAnyChildFocused()` in favor of using + `sys::igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows)`. ## [0.0.18] - 2017-12-23 diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index 5b9b2c3..42a4b18 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -1619,7 +1619,6 @@ extern "C" { pub fn igSetItemAllowOverlap(); pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; - pub fn igIsRootWindowOrAnyChildFocused() -> bool; pub fn igIsRootWindowOrAnyChildHovered(flags: ImGuiHoveredFlags) -> bool; pub fn igIsAnyWindowHovered() -> bool; pub fn igIsRectVisible(item_size: ImVec2) -> bool; @@ -1675,6 +1674,11 @@ extern "C" { pub unsafe fn igIsRootWindowFocused() -> bool { igIsWindowFocused(ImGuiFocusedFlags::RootWindow) } +#[allow(non_snake_case)] +#[deprecated(since = "0.0.19", note = "please use igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows) instead")] +pub unsafe fn igIsRootWindowOrAnyChildFocused() -> bool { + igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows) +} // Inputs extern "C" {