From 1d10578471a14379ea8f0433f3e9286808c608f2 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Sun, 29 Apr 2018 18:46:48 +0900 Subject: [PATCH] [cimgui 1.53.1] Rename igGetItemsLineHeightWithSpacing to igGetFrameHeightWithSpacing --- CHANGELOG.markdown | 1 + imgui-sys/src/lib.rs | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index de2e15a..e3c1a0c 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -4,6 +4,7 @@ - Upgrade to imgui/cimgui 1.53.1 - Rename `Ui::show_test_window` to `Ui::show_demo_window`. + - Rename `sys::igGetItemsLineHeightWithSpacing` to `sys::igGetFrameHeightWithSpacing`. ## [0.0.18] - 2017-12-23 diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index 33419fe..036f847 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -1002,13 +1002,19 @@ extern "C" { pub fn igAlignTextToFramePadding(); pub fn igGetTextLineHeight() -> c_float; pub fn igGetTextLineHeightWithSpacing() -> c_float; - pub fn igGetItemsLineHeightWithSpacing() -> c_float; + pub fn igGetFrameHeightWithSpacing() -> c_float; } #[allow(non_snake_case)] #[deprecated(since = "0.0.18", note = "please use igAlignTextToFramePadding instead")] pub unsafe fn igAlignFirstTextHeightToWidgets() { igAlignTextToFramePadding(); } +#[allow(non_snake_case)] +#[deprecated(since = "0.0.19", note = "please use igGetFrameHeightWithSpacing instead")] +pub unsafe fn igGetItemsLineHeightWithSpacing() -> c_float { + igGetFrameHeightWithSpacing() +} + // Columns extern "C" { pub fn igColumns(count: c_int, id: *const c_char, border: bool);