diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index 108b4e8..a17db99 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -801,6 +801,13 @@ extern "C" { pub fn igGetColorU32Vec(col: *const ImVec4) -> ImU32; } +#[allow(non_snake_case)] +#[deprecated(since = "0.0.11", note = "name has a typo, please use `igPushStyleVarVec` instead")] +#[inline] +pub unsafe fn igPushStyleVavrVec(idx: ImGuiStyleVar, val: ImVec2) { + igPushStyleVarVec(idx, val); +} + // Parameter stack (current window) extern "C" { pub fn igPushItemWidth(item_width: c_float); diff --git a/src/window.rs b/src/window.rs index 2e4220a..4eff738 100644 --- a/src/window.rs +++ b/src/window.rs @@ -136,6 +136,11 @@ impl<'ui, 'p> Window<'ui, 'p> { self.flags.set(ImGuiWindowFlags_NoBringToFrontOnFocus, value); self } + #[deprecated(since = "0.0.11", note = "name has a typo, please use `always_vertical_scrollbar` instead")] + #[inline] + pub fn always_vertical_scollbar(self, value: bool) -> Self { + self.always_vertical_scrollbar(value) + } #[inline] pub fn always_vertical_scrollbar(mut self, value: bool) -> Self { self.flags.set(ImGuiWindowFlags_AlwaysVerticalScrollbar, value);