[cimgui 1.53.1] Obsolete sys::igIsRootWindowFocused()

Should use `sys::igIsWindowFocused(ImGuiFocusedFlags_RootWindow)`
instead.
This commit is contained in:
Malik Olivier Boussejra 2018-04-29 20:20:43 +09:00
parent 24c37293e4
commit f3e994f582
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,8 @@
- Rename `Ui::show_test_window` to `Ui::show_demo_window`.
- Rename `sys::igGetItemsLineHeightWithSpacing` to `sys::igGetFrameHeightWithSpacing`.
- Rename `ImGuiTreeNodeFlags::AllowOverlapMode` to `ImGuiTreeNodeFlags::AllowItemOverlap`.
- Obsolete `sys::igIsRootWindowFocused()` in favor of using
`sys::igIsWindowFocused(ImGuiFocusedFlags::RootWindow)`.
## [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 igIsRootWindowFocused() -> bool;
pub fn igIsRootWindowOrAnyChildFocused() -> bool;
pub fn igIsRootWindowOrAnyChildHovered(flags: ImGuiHoveredFlags) -> bool;
pub fn igIsAnyWindowHovered() -> bool;
@ -1671,6 +1670,12 @@ extern "C" {
);
}
#[allow(non_snake_case)]
#[deprecated(since = "0.0.19", note = "please use igIsWindowFocused(ImGuiFocusedFlags::RootWindow) instead")]
pub unsafe fn igIsRootWindowFocused() -> bool {
igIsWindowFocused(ImGuiFocusedFlags::RootWindow)
}
// Inputs
extern "C" {
pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> c_int;