Provide an upgrade path for functions that had a typo

This commit is contained in:
Joonas Javanainen 2017-02-14 19:54:04 +02:00
parent 5357ed13fc
commit 61e531fc80
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
2 changed files with 12 additions and 0 deletions

View File

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

View File

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