[cimgui 1.53.1] Obsolete sys::igIsRootWindowOrAnyChildFocused()

Should use `igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows)`
instead.
This commit is contained in:
Malik Olivier Boussejra 2018-04-29 20:31:27 +09:00
parent f3e994f582
commit 2df079e563
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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" {