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);