New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update cimgui to 1.53.1 #119
Update cimgui to 1.53.1 #119
Commits on Apr 29, 2018
-
Update cimgui, fixing imgui-rs#97 and imgui-rs#88. As a side note, the previous version has some compiler warning showing up during build: warning: third-party/cimgui/imgui/imgui.cpp: In function ‘void ImGui::RenderTriangle(ImVec2, ImGuiDir, float)’: warning: third-party/cimgui/imgui/imgui.cpp:3136:11: warning: this statement may fall through [-Wimplicit-fallthrough=] warning: r = -r; // ...fall through, no break! warning: ~~^~~~ The new version has no warning.
-
-
[cimgui 1.53.1] Rename igGetItemsLineHeightWithSpacing to igGetFrameH…
…eightWithSpacing
-
-
[cimgui 1.53.1] Rename ImGuiTreeNodeFlags::AllowOverlapMode to ImGuiT…
…reeNodeFlags::AllowItemOvelap
-
imgui-sys: Fix binding to igIsWindowFocused
This commit adds the `ImGuiFocusedFlags' input flag that was missing.
-
[cimgui 1.53.1] Obsolete sys::igIsRootWindowFocused()
Should use `sys::igIsWindowFocused(ImGuiFocusedFlags_RootWindow)` instead.
-
[cimgui 1.53.1] Obsolete sys::igIsRootWindowOrAnyChildFocused()
Should use `igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows)` instead.
-
[cimgui 1.53.1] Obsolete igIsRootWindowOrAnyChildHovered()
Update struct for ImGuiHoveredFlags. NB: igIsWindowHovered, and thus igIsRootWindowOrAnyChildHovered, are broken now because of a bug. The fix is commited upstream, but not released yet. cimgui/cimgui@baebcfc I guess nothing can be done but wait for the next cimgui release.
-
[cimgui 1.53.1] Obsolete igSetNextWindowContentWidth
There is a small change of behaviour: previous height value is not preserved when igSetNextWindowContentWidth is used. There is no way around it unless we mess with imgui's internals. Official Dear ImGui chose this easy solution as well: static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } https://github.com/ocornut/imgui/blob/429f48bb4fa7fdffdb996e4a697d6df48babe3eb/imgui.h#L1132
-
[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.
-
[cimgui 1.53.1] DrawList: Remove
anti_aliased: bool
final parameterThere is no way I know of to make a deprecation warning in such a case. Code that uses ImDrawList_AddPolyline or ImDrawList_AddConvexPolyFilled will break.
-
Commits on Apr 30, 2018
-
[cimgui 1.53.1] Rename ChildWindowRounding to ChildRounding
Add deprecation warning for each renamed variant. However, it will just fail to compile if the deprecated variant is used inside a match statement. It is not possible to make aliases of variants in Rust.
-
[cimgui 1.53.1] Style: Add PopupRounding, FrameBorderSize, WindowBord…
…erSize, PopupBorderSize
-
-
-
-
[cimgui 1.53.1] test_window_impl: Add "No close" window option
Here is the original commit in Dear ImGui implementating the "No close" button: ocornut/imgui@20ba79aa5
-
-
-
-
-
Commits on May 1, 2018
-
-
-
[cimgui 1.53.1] Add new combo functions
Move igCombo{1,2,3} into the combo group along with igBeginCombo and igEndCombo.
-
[cimgui 1.53.1] Allow access to ImDrawListSharedData
Add binding to igGetDrawListDrawData and igGetOverlayDrawList.
-
[cimgui 1.53.1] Add binding to igSetItemDefaultFocus
Group functions related to focus management together.
-
-
-
[cimgui 1.53.1] Add raw bindings to drag/drop API
Unfortunately, it seems necessary to pull a new dependency, libc, to be able to use size_t. Is there any alternative?
-
Commits on May 5, 2018
Commits on May 8, 2018
-
[cimgui 1.53.1] Update CHANGELOG
Follow "keep a changelog" specification. https://keepachangelog.com/en/1.0.0/
Commits on May 14, 2018
-
[cimgui 1.53.1] StyleVar: Add missing WindowBorderSize
Use WindowBorderSize as replacement for border boolean in window.rs