mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-13 22:48:34 +00:00
Remove things that were deprecated in 0.0.18
This commit is contained in:
parent
c838bc1939
commit
85e9375e0b
@ -55,6 +55,7 @@
|
||||
and `sys::ImDrawList_AddConvexPolyFilled`.
|
||||
- Remove `ImGuiWindowFlags::ShowBorders` window flag. Borders are now fully
|
||||
set up in the ImGuiStyle structure.
|
||||
- Various imgui-sys things that were deprecated in imgui/cimgui 1.52
|
||||
|
||||
## [0.0.18] - 2017-12-23
|
||||
|
||||
|
||||
@ -1069,14 +1069,6 @@ extern "C" {
|
||||
pub fn igGetStateStorage() -> *mut ImGuiStorage;
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.18", note = "please use igSetNextWindowPos instead")]
|
||||
pub unsafe fn igSetNextWindowPosCenter(cond: ImGuiCond) {
|
||||
let io = igGetIO();
|
||||
let pos = ImVec2::new((*io).display_size.x * 0.5, (*io).display_size.y * 0.5);
|
||||
let pivot = ImVec2::new(0.5, 0.5);
|
||||
igSetNextWindowPos(pos, cond, pivot);
|
||||
}
|
||||
/// Set next window content's width.
|
||||
///
|
||||
/// Original non-deprecated version preserved last Y value set by
|
||||
@ -1146,10 +1138,6 @@ extern "C" {
|
||||
pub fn igGetFrameHeightWithSpacing() -> c_float;
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.18", note = "please use igAlignTextToFramePadding instead")]
|
||||
pub unsafe fn igAlignFirstTextHeightToWidgets() { igAlignTextToFramePadding(); }
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.19", note = "please use igGetFrameHeightWithSpacing instead")]
|
||||
pub unsafe fn igGetItemsLineHeightWithSpacing() -> c_float {
|
||||
@ -1876,18 +1864,6 @@ extern "C" {
|
||||
pub fn igCaptureMouseFromApp(capture: bool);
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.18", note = "please use igIsItemHovered instead")]
|
||||
pub unsafe fn igIsItemRectHovered() -> bool { igIsItemHovered(ImGuiHoveredFlags::RectOnly) }
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.18", note = "please use igIsWindowHovered instead")]
|
||||
pub unsafe fn igIsWindowRectHovered() -> bool {
|
||||
igIsWindowHovered(
|
||||
ImGuiHoveredFlags::AllowWhenBlockedByPopup | ImGuiHoveredFlags::AllowWhenBlockedByActiveItem,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
// Helpers functions to access functions pointers in ImGui::GetIO()
|
||||
extern "C" {
|
||||
pub fn igMemAlloc(sz: usize) -> *mut c_void;
|
||||
@ -2443,15 +2419,6 @@ extern "C" {
|
||||
);
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.18", note = "please use ImFont_ClearOutputData instead")]
|
||||
pub unsafe fn ImFont_Clear(font: *mut ImFont) { ImFont_ClearOutputData(font); }
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.18", note = "please use ImFont_GetFallbackChar instead")]
|
||||
pub unsafe fn ImFont_GetFallbackXAdvance(font: *const ImFont) -> c_float {
|
||||
ImFont_GetFallbackAdvanceX(font)
|
||||
}
|
||||
|
||||
// ImFont::Glyph
|
||||
extern "C" {
|
||||
pub fn ImFont_Glyphs_size(font: *const ImFont) -> c_int;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user