mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
[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:
parent
d2e6d41619
commit
37b60a5af0
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user