mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Provide an upgrade path for functions that had a typo
This commit is contained in:
parent
5357ed13fc
commit
61e531fc80
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user