[cimgui 1.53.1] Rename ImGuiTextBuffer_append() to appendf()

This commit does not include deprecation warning.
Indeed, defining a `ImGuiTextBuffer_append` function with a deprecation
warning would require to write a variadic function in rust. However,
this is impossible, and the FFI rust doc says so:
https://doc.rust-lang.org/book/first-edition/ffi.html#variadic-functions

Dear ImGui did not deprecate `append()`, they simply renamed it too.
This commit is contained in:
Malik Olivier Boussejra 2018-04-29 23:44:19 +09:00
parent d2e6d41619
commit 37b60a5af0
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
`sys::igIsWindowHovered(ImGuiHoveredFlags::RootAndChildWindows)`.
- Obsolete `sys::SetNextWindowContentWidth()` in favor of using
`sys::igSetNextWindowContentSize()`.
- Rename `sys::ImGuiTextBuffer_append()` helper to `appendf()`.
## [0.0.18] - 2017-12-23

View File

@ -1790,7 +1790,7 @@ extern "C" {
pub fn ImGuiTextBuffer_empty(buffer: *mut ImGuiTextBuffer) -> bool;
pub fn ImGuiTextBuffer_clear(buffer: *mut ImGuiTextBuffer);
pub fn ImGuiTextBuffer_c_str(buffer: *const ImGuiTextBuffer) -> *const c_char;
pub fn ImGuiTextBuffer_append(buffer: *const ImGuiTextBuffer, fmt: *const c_char, ...);
pub fn ImGuiTextBuffer_appendf(buffer: *const ImGuiTextBuffer, fmt: *const c_char, ...);
// pub fn ImGuiTextBuffer_appendv(
// buffer: *const ImGuiTextBuffer,
// fmt: *const c_char,