master
ブランチ master
ShaderPlayground / deps / imgui / imgui / docs / CHANGELOG.txt
676.3 KB、9497行 生 Blame 履歴
1dear imgui
2CHANGELOG
3
4This document holds the user-facing changelog that we also use in release notes.
5We generally fold multiple commits pertaining to the same topic as a single entry.
6Changes to backends are also included within the individual .cpp files of each backend.
7
8FAQ https://www.dearimgui.com/faq/
9RELEASE NOTES: https://github.com/ocornut/imgui/releases
10WIKI https://github.com/ocornut/imgui/wiki
11GETTING STARTED https://github.com/ocornut/imgui/wiki/Getting-Started
12GLOSSARY https://github.com/ocornut/imgui/wiki/Glossary
13ISSUES & SUPPORT https://github.com/ocornut/imgui/issues
14
15WHEN TO UPDATE?
16
17- Keeping your copy of Dear ImGui updated regularly is recommended.
18- It is generally safe and recommended to sync to the latest commit in 'master' or 'docking'
19 branches. The library is fairly stable and regressions tends to be fixed fast when reported.
20
21HOW TO UPDATE?
22
23- Update submodule or copy/overwrite every file.
24- About imconfig.h:
25 - You may modify your copy of imconfig.h, in this case don't overwrite it.
26 - or you may locally branch to modify imconfig.h and merge/rebase latest.
27 - or you may '#define IMGUI_USER_CONFIG "my_config_file.h"' globally from your build system to
28 specify a custom path for your imconfig.h file and instead not have to modify the default one.
29- Read the `Breaking Changes` section (in imgui.cpp or here in the Changelog).
30- If you have a problem with a missing function/symbols, search for its name in the code, there will likely be a comment about it.
31- If you are copying this repository in your codebase, please leave the demo and documentations files in there, they will be useful.
32- You may diff your previous Changelog with the one you just copied and read that diff.
33- You may enable `IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in imconfig.h to forcefully disable legacy names and symbols.
34 Doing it every once in a while is a good way to make sure you are not using obsolete symbols. Dear ImGui is in active development,
35 and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users.
36- Please report any issue!
37
38-----------------------------------------------------------------------
39 VERSION 1.92.9 WIP (In Progress)
40-----------------------------------------------------------------------
41
42Breaking Changes:
43
44- TreeNode: commented out legacy name `ImGuiTreeNodeFlags_SpanTextWidth` which
45 was obsoleted in 1.90.7 (May 2024). Use `ImGuiTreeNodeFlags_SpanLabelWidth`.
46
47Other Changes:
48
49- Windows:
50 - Clicking on a window's empty-space to move/focus a window checks
51 for lack of mouse button ownership. This gives an additional opportunity
52 for user code to bypass it without using a clickable item. (#9382)
53 - Clicking on a window's empty-space to move/focus a window checks
54 for lack of queued focus request. (#9382)
55 - Fixed double-click collapse toggle not owning the mouse button. If a
56 `SetNextWindowPos()` with pivot was queued in the same frame, the second
57 click could trigger another item in the same window. (#9439) [@Cleroth]
58- InputText:
59 - Added `style.InputTextCursorSize` to configure cursor/caret thickness. (#7031, #9409)
60 This is automatically scaled by `style.ScaleAllSizes()`.
61- Tables:
62 - Redesigned/rewrote code to reconcile columns and settings on topology changes. (#9108)
63 - When a column label is passed to TableSetupColumn(), the underlying identifier
64 is used to match live columns data and .ini settings data when changing.
65 This makes it possible to add/remove columns from a table without losing
66 neither live data neither .ini settings data.
67 - PS: Note that this is distinct from toggling column visibility or reordering
68 columns, which was always possible. The new matching makes it easier to create
69 tables that are entirely customized by user or code, without losing state.
70 - Columns without identifiers or with duplicate identifiers are matched
71 sequentially, matching old behavior.
72 - Column ID are stored in .ini file.
73 - Code is being tested both for live topology changes and for loading .ini
74 data with mismatched topology.
75 - Context Menu: added a "Reset" sub-menu with a "Reset Visibility" option.
76 (which is greyed out when using default settings)
77 - Headers: fixed label being clipped early to reserve space for a sort marker
78 even when no sort marker is displayed. Auto-fitting a column still accounts
79 for the possible marker, so that sorting after an auto-fit doesn't clip the label.
80- Multi-Select
81 - Reworked ImGuiMultiSelectFlags_NoAutoSelect as it carried side-effects that
82 were hardcoded/designed to use multi-selection on checkboxes. (#9391)
83 Specifically removed those undocumented behaviors from _NoAutoSelect:
84 - Clicking a selected/checked item always unselect/uncheck.
85 - Shift+Click inverts targets value and copy to range.
86 - Shift+Keyboard copy selection source value to range.
87 Those behaviors are still happening on checkboxes used within multi-selection.
88- Fonts:
89 - Added `IMGUI_DISABLE_DEFAULT_FONT_BITMAP`/`IMGUI_DISABLE_DEFAULT_FONT_VECTOR` to
90 disable embedding either fonts separately. (#9407)
91 - Tweak `CalcTextSize()` awkward width rounding/ceiling code to reduce floating-point
92 imprecisions altering the result by 1 even at relatively small width. (#791)
93 - Better document the fact that ImFontAtlas::Clear()/ClearFonts() functions are
94 unlikely to be useful nowadays. Better recover to an edge case of mistakenly
95 calling ClearFonts() during rendering.
96 - Fixed an issue where passing a manually created ImFontAtlas to CreateContext() would
97 incorrectly destroy it in DestroyContext() when ref-count gets back to zero. (#9426)
98- Nav:
99 - Fixed context menu activation with gamepad erroneously testing for _NavEnableKeyboard
100 instead of _NavEnableGamepad. (#9454, #8803, #9270) [@Clownacy]
101- TreeNode:
102 - Fixed nav cursor rendering with rounding even though tree nodes don't have it. (#7589)
103- Style:
104 - Added style.MenuItemRounding, ImGuiStyleVar_MenuItemRounding. (#7589, #9375, #9453)
105 - Added style.SelectableRounding, ImGuiStyleVar_SelectableRounding. (#7589, #9375, #9453)
106 The use of this is discouraged because it can easily create problems rendering e.g.
107 contiguous selection.
108 - Scale the NavCursor border thickness when using large values with `ScallAllSizes()`.
109- DrawList:
110 - Minor optimization to `AddLine()`, `AddLineH()`, `AddLineV()` functions. (#4091)
111 - Added `ImDrawListFlags_TextNoPixelSnap` to disable snapping of AddText()
112 coordinates for a given scope. (#3437, #9417, #2291)
113- ColorButton:
114 - Small rendering tweak/optimization for the alpha checkerboard.
115- Demo:
116 - Extract 'Widgets->Tree Nodes->Selectable Nodes' out of the 'Advanced'
117 demo for clarity (manual reimplementation of basic selection).
118- Misc:
119 - Added IM_DEBUG_BREAK() handler for GCC+AArch64/ARM64. [@tom-seddon]
120- Backends:
121 - OpenGL3:
122 - GLSL version detection assume GLSL 410 when GL context is 4.1.
123 Fixes an issue running on macOS with Wine. [#9427, #6577) [@perminovVS]
124 - Expose selected render state in ImGui_ImplOpenGL3_RenderState, allowing to
125 dynamically select between use of glBindSampler() and glTexParameter(). (#9378)
126 - Win32:
127 - Uses `SetProcessDpiAwarenessContext()` instead of `SetThreadDpiAwarenessContext()`
128 when available, fixing OpenGL DPI scaling issues as e.g. NVIDIA drivers tends
129 to spawn multiple-thread to manage OpenGL. (#9403)
130
131Docking+Viewports Branch:
132
133- Viewports:
134 - Fixed an issue where the implicit "Debug" window while hidden would erroneously
135 interfere with merging secondary viewports into the main viewport.
136- Docking:
137 - Fixed behavior change/regression in 1.92.8 where a window using the
138 ImGuiWindowFlags_AlwaysAutoResize flag would have ItemWidth default
139 change when docked. (#9355, #9443) [@reybits]
140
141
142-----------------------------------------------------------------------
143 VERSION 1.92.8 (Released 2026-05-12)
144-----------------------------------------------------------------------
145
146Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.8
147
148Breaking Changes:
149
150- DrawList: swapped the last two arguments of `AddRect()`, `AddPolyline()`, `PathStroke()`.
151 - Before: `void ImDrawList::AddRect(ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0, float thickness = 1.0f);`
152 - After: `void ImDrawList::AddRect(ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding = 0.0f, float thickness = 1.0f, ImDrawFlags flags = 0);`
153 - Before: `void ImDrawList::AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness);`
154 - After: `void ImDrawList::AddPolyline(const ImVec2* points, int num_points, ImU32 col, float thickness, ImDrawFlags flags = 0);`
155 - Before: `void ImDrawList::PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f);`
156 - After: `void ImDrawList::PathStroke(ImU32 col, float thickness = 1.0f, ImDrawFlags flags = 0);`
157 Added inline redirection functions when IMGUI_DISABLE_OBSOLETE_FUNCTIONS is off.
158 Marked the old functions are =delete when IMGUI_DISABLE_OBSOLETE_FUNCTIONS is on, to allow for better type-checking.
159 Effectively the typical call site is changing from:
160 - Before: `window->DrawList->AddRect(p_min, p_max, color, rounding, ImDrawFlags_None, border_size);`
161 - After: `window->DrawList->AddRect(p_min, p_max, color, rounding, border_size);`
162 Notes:
163 - Users of C++ and other languages with type-checking will be notified at compile-time of any mistakes.
164 - Users of high-level bindings or languages with no type-checking will be notified at runtime via an assert for invalid flags value.
165 If you are a binding maintainer consider doing something to facilitate transition or error detection.
166 - This is perhaps the worst breaking change in our history :( but it makes ImDrawList function signatures consistent.
167 As we are aiming to add flags and features to variety of ImDrawList functions, that consistency becomes more important.
168 The new order is also more convenient as `flags` are less frequently used than `thickness` in real code.
169 - As a general policy in Dear ImGui, all our flags default to 0 so ImDrawFlags_None was likely written 0 in some call sites.
170 - Consider adding `#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in your imconfig.h, even temporarily, to clean up legacy code.
171 - Reminder: you do NOT need to specify `ImDrawFlags_RoundCornersAll` for rounding, it is already the default!
172- DrawList: obsoleted `ImDrawCallback_ResetRenderState` in favor of using `ImGui::GetPlatformIO().DrawCallback_ResetRenderState`,
173 which is part of our new standard draw callbacks. (#9378)
174 Redirecting the earlier value into the later one when set, so both old and new code should work.
175- DrawList: changed value of `ImDrawFlags_Closed`. It was previously advertised as "always == 1" when introduced
176 in 1.82 (2021/02), in order to facilitate backward compatibility with the legacy `bool closed` flag. This
177 guarantee has been removed. The bit is reserved, and `AddPolyline()`, `PathStroke()` will assert when it is used.
178- Backends:
179 - Vulkan: redesigned to use separate ImageView + Sampler instead of Combined Image Sampler. (#914)
180 This change allows us to facilitate changing samplers, in line with other backends. [@yaz0r, @ocornut]
181 - When creating your own descriptor pool (instead of letting backend creates its own):
182 - Before: need at least `IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE` descriptors of type `VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER`.
183 - After: need at least `IMGUI_IMPL_VULKAN_MINIMUM_SAMPLED_IMAGE_POOL_SIZE` descriptors of type `VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE`.
184 + `IMGUI_IMPL_VULKAN_MINIMUM_SAMPLER_POOL_SIZE` descriptors of type `VK_DESCRIPTOR_TYPE_SAMPLER`.
185 - When registering custom textures: changed ImGui_ImplVulkan_AddTexture() signature to remove Sampler.
186 - Before: `ImGui_ImplVulkan_AddTexture(VkSampler, VkImageView, VkImageLayout)`
187 - After: `ImGui_ImplVulkan_AddTexture(VkImageView, VkImageLayout)`
188 - Kept inline redirection function that ignores the sampler (will obsolete).
189 - DirectX10, DirectX11, SDLGPU3, Vulkan: removed samplers from `ImGui_ImplXXXX_RenderState`.
190 Prefer to use backend-agnostic DrawCallback_SetSamplerLinear which works everywhere! (#9378)
191 If there is a legit need/request for them or any render state we can always add them back.
192 - OpenGL3: the new sampler support system prioritize using glBindSampler() when available,
193 which would override glTexParameter() settings you may have set on custom textures. (#9378)
194
195Other Changes:
196
197- DrawList:
198 - Added room in `ImGuiPlatformIO` for standard backend-agnostic draw callbacks. Those callbacks
199 are setup/provided by the backend and available in most of our standard backends.
200 They allow backend-agnostic code from e.g. switching to a Nearest/Point sampler without
201 messing with custom Renderer-specific callbacks.
202 platform_io.DrawCallback_ResetRenderState; // Request to reset the graphics/render state.
203 platform_io.DrawCallback_SetSamplerLinear; // Request to set current texture sampling to Linear
204 platform_io.DrawCallback_SetSamplerNearest; // Request to set current texture sampling to Nearest/Point
205 Note that some backends might not support all callbacks.
206 (#9378, #9371, #3590, #8926, #2973, #7485, #7468, #6969, #5118, #7616, #9173, #8322, #7230,
207 #5999, #6452, #5156, #7342, #7592, #7511)
208 - Made `AddCallback()` user data default to Null for convenience.
209 - Added `AddLineH()`, `AddLineV()` helpers to draw horizontal and vertical lines. [@memononen]
210 The new functions are more optimal and will be part of a larger effort in 1.93 to fix
211 inconsistencies and improve the DrawList API. In the current API, `AddLine()` adds a "magic" +0.5f
212 offset and then center the line, whereas AddLineH()/AddLineV() use the right side of the line to expand.
213 For thickness=1.0f lines this is equivalent:
214 `AddLine({10,3}, {20,3}, ...)` --> `AddLineH(x1=10, x2=20, y=3, ...)`.
215 `AddLine({3,10}, {3,20}, ...)` --> `AddLineV(x=3, y1=10, y2=20, ...)`.
216 For larger integer thickness, AddLine() will center but may be blurry, AddLineH()/AddLineV()
217 will expand "inside" (to the right side) and will always be sharp.
218 A subsequent release will expand on those concepts and add new options.
219- InputText:
220 - InputTextMultiline: fixed an issue processing deactivation logic when an active
221 multi-line edit is clipped due to being out of view.
222 - Fixed a crash when toggling ReadOnly while active. (#9354)
223 - `CharFilter` callback event sets CursorPos/SelectionStart/SelectionEnd. (#816)
224- Tables:
225 - Fixed issues reporting ideal size to parent window/container: (#9352, #7651)
226 - When both scrollbars are visible but only one of ScrollX/ScrollY was explicitly requested.
227 - When vertical scrollbar was not at the top, the computation was often incorrect.
228- Windows:
229 - Fixed a single-axis auto-resizing feedback loop issue with nested containers
230 and varying scrollbar visibility. (#9352)
231 - Detect and report error when calling End() instead of EndPopup() on a popup. (#9351)
232 - Child windows with only `ImGuiChildFlags_AutoResizeY` flag keep using the proportional
233 default `ItemWidth`. (#9355)
234 - Using mouse wheel to scroll takes and keeps ownership of the corresponding keys
235 (e.g. `ImGuiKey_MouseWheelY`) while a wheeling window is locked. (#2604, #3795)
236- InputInt, InputFloat, InputScalar:
237 - Reinstated `ImGuiInputTextFlags_EnterReturnsTrue` support which was removed in 1.91.4.
238 (#8665, #9299, #8065, #3946, #6284, #9117)
239 - Fixed the fact that it didn't return true when validating same value.
240 - Fixed losing value when tabbing out or losing focus.
241 - Made it that pressing +/- step buttons also return true, which is in line
242 with 1.91.4 behavior.
243 - In a majority of cases you should use `IsItemDeactivatedAfterEdit()` instead,
244 but it still has a few edge cases flaws (to be addressed soon).
245 - Allow passing a format string that does not display the scalar value.
246 Parsing input with default format for the type. (#9385) [@FireFox2000000]
247- Multi-Select:
248 - Fixed an issue using Multi-Select within a Table causing column width measurement to
249 be invalid when trailing column contents is not submitted in the last row. (#9341, #8250)
250 - Fixed an issue using Multi-Select within a Table with the right-most column visible,
251 which could lead to an extra vertical offset in the Header row. (#8250)
252- Multi-Select + Box-Select:
253 - Fixed an issue using `ImGuiMultiSelectFlags_BoxSelect1d` mode while scrolling.
254 Notably, using mouse wheel while holding a box-selection could lead items close to windows
255 edges from not being correctly unselected. (#7994, #8250, #7821, #7850, #7970)
256 - Improved dirty/unclip rectangle logic for `ImGuiMultiSelectFlags_BoxSelect2d`.
257 - Fixed an issue using `ImGuiMultiSelectFlags_BoxSelect2d` mode, where
258 items out of view wouldn't be properly selected while scrolling while mouse cursor
259 is hovering outside of selection scope. (#7994, #1861, #6518)
260 - Fixed an issue where items out of horizontal view would sometimes lead
261 to incorrect merging of sequential selection requests while also scrolling fast
262 enough to overlap multiple rows during a frame. (#7994, #1861, #6518)
263 - Fixed an issue using `ImGuiMultiSelectFlags_BoxSelect2d` mode in a Table
264 while relying on the `TableNextColumn()` return value to perform coarse clipping. (#7994)
265 - Disabled merging consecutive selection requests as we have no reliable
266 way of detecting if user has submitted all consecutive items without clipping gaps,
267 and `ImGuiSelectionUserData` is technically opaque storage. (#7994, #1861)
268 (we will probably bring this back as a minor optimization if we have a way to for
269 user to tell us `ImGuiSelectionUserData` are indices)
270 - Fixes for using across nested child windows. (#8364)
271 - Box-Select + Clipper: fixed an issue selecting items while scrolling while a clipper
272 active. (#7994, #8250, #7821, #7850, #7970)
273 - Box-Select + Tables: fixed an issue using box-selection in a tables with
274 items straying out of columns boundaries. (#7994, #2221)
275 - Box-Select + Tables: fixed an issue when calling `BeginMultiSelect()` in a table
276 before layout has been locked (first row or headers row submitted). (#8250)
277- Menus:
278 - BeginMenu()/MenuItem(): fixed accidental triggering of child menu items when
279 opening a menu inside a small host window forcing the child menu window to be
280 repositioned under the mouse cursor. (#8233, #9394)
281 Done by reworking `BeginMenu()`/`MenuItem()`: they previously avoiding taking
282 ActiveID + key/click ownership (in order to allow releasing button on another item).
283 Now they take them and release them once the mouse is moved outside item boundaries.
284- Inputs:
285 - SetItemKeyOwner(): return true if ownership has been requested, which typically
286 needs to to checked for gating further tests. This is important as the function
287 may fail. (#456, #2637, #2620, #2891, #3370, #3724, #4828, #5108, #5242, #5641)
288 - SetItemKeyOwner(): does not set ownership is key is already taken. Effectively
289 this makes using `SetItemKeyOwner(ImGuiKey_MouseWheelY)` over an item work as
290 expected while not having item react if a scroll wheel is actively in progress.
291 May be subject to further redesign, e.g. conditional flags. Feedback welcome!
292- Style:
293 - Checkbox: added `ImGuiCol_CheckboxSelectedBg` to change or accentuate the
294 background color of checked/mixed checkboxes. (#9392)
295 - Added `ImGuiStyleVar_DragDropTargetRounding`. (#9056)
296 - Fixed vertical scrollbar top coordinates when using thick borders on windows
297 with no title bar and no menu bar. (#9366)
298- Fonts:
299 - imgui_freetype: add FreeType headers & compiled version in 'About Dear ImGui' details.
300 - Assert when using MergeMode with an explicit size over a target font with an implicit
301 size, as scale factor are likely erroneous. (#9361)
302- Clipper:
303 - Improved error reporting when misusing the clipper inside a table (prioritize
304 reporting the common clipper error over a table sanity check assert). (#9350)
305 - Tweaked assert triggering when first item height measurement fails, and made it
306 a better recoverable error. (#9350)
307- Misc:
308 - Minor optimization: reduce redundant label scanning in common widgets.
309 - Added missing Test Engine hooks for `PlotLines()`, `PlotHistogram()`, `VSliderXXX()`
310 and `TableHeader()` functions.
311- Demo:
312 - Added simple demo for a scrollable/zoomable image viewer with a grid.
313 Available in `Examples->Image Viewer` and `Widgets->Images`.
314- Backends:
315 - Added support for new standardized draw callbacks in most backends: (#9378)
316 - Allegro5: Reset n/a n/a
317 - DX9: Reset SetSamplerLinear SetSamplerNearest
318 - DX10: Reset SetSamplerLinear SetSamplerNearest
319 - DX11: Reset SetSamplerLinear SetSamplerNearest
320 - DX12: Reset SetSamplerLinear SetSamplerNearest
321 - Metal: Reset SetSamplerLinear SetSamplerNearest
322 - OpenGL2: Reset SetSamplerLinear SetSamplerNearest
323 - OpenGL3+: Reset SetSamplerLinear SetSamplerNearest
324 - SDLGPU3: Reset SetSamplerLinear SetSamplerNearest
325 - SDLRenderer2: Reset n/a n/a
326 - SDLRenderer3: Reset SetSamplerLinear SetSamplerNearest
327 - Vulkan: Reset SetSamplerLinear SetSamplerNearest
328 - WebGPU: Reset SetSamplerLinear SetSamplerNearest
329 (Vulkan backend by @yaz0r, Metal by @ssh4net, others by @ocornut)
330 - GLFW: added a Win32-specific implementation of `ImGui_ImplGlfw_GetContentScaleXXXX`
331 functions for legacy GLFW 3.2. (#9003)
332 - Metal: avoid redundant vertex buffer bind in `SetupRenderState()`, which leads
333 to validation issue. (#9343) [@Hunam6]
334 - Metal: use a dedicated `bufferCacheLock` to avoid crashing when `bufferCache` is
335 replaced by a new object while being used for `@synchronize()`. (#9367) [@andygrundman]
336 - SDL2: made `ImGui_ImplSDL2_GetContentScaleForWindow()`/`ImGui_ImplSDL2_GetContentScaleForDisplay()`
337 helpers return a minimum of 1.0f, as some Linux setup seems to report <1.0f value
338 and this breaks scaling border size. (#9369)
339 - WebGPU: rework choice/detection of using WGSL/SPIR-V shader on WGVK. (#9316, #9246, #9257, #9387)
340- Examples:
341 - Update VS toolset in all .vcxproj from VS2015 (v140) to VS2017 (v141). The later is the
342 first that supports vcpkg. Onward we will likely stop testing building the library with VS2015.
343 - GLFW+Vulkan, SDL2+Vulkan, SDL3+Vulkan, Win32+Vulkan: reworked to create a descriptor pool with:
344 - `IMGUI_IMPL_VULKAN_MINIMUM_SAMPLED_IMAGE_POOL_SIZE` descriptors of type `VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE`.
345 - `IMGUI_IMPL_VULKAN_MINIMUM_SAMPLER_POOL_SIZE` descriptors of type `VK_DESCRIPTOR_TYPE_SAMPLER`.
346
347Docking+Viewports Branch:
348
349- Docking:
350 - Toggling tab bar visibility marks saved settings as dirty. (#9380)
351- Viewports:
352 - Added opaque `void* PlatformIconData` storage in viewport and `ImGuiWindowClass`
353 to allow passing icon information to a custom backend or hook. (#2715)
354
355
356-----------------------------------------------------------------------
357 VERSION 1.92.7 (Released 2026-04-02)
358-----------------------------------------------------------------------
359
360Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.7
361
362Breaking Changes:
363
364 - Separator: fixed a legacy quirk where `Separator()` was submitting a zero-height
365 item for layout purpose, even though it draws a 1-pixel separator.
366 The fix could affect code e.g. computing height from multiple widgets in order to
367 allocate vertical space for a footer or multi-line status bar. (#2657, #9263)
368 The "Console" example had such a bug:
369 float footer_height = style.ItemSpacing.y + ImGui::GetFrameHeightWithSpacing();
370 BeginChild("ScrollingRegion", { 0, -footer_height });
371 Should be:
372 float footer_height = style.ItemSpacing.y + style.SeparatorSize + ImGui::GetFrameHeightWithSpacing();
373 BeginChild("ScrollingRegion", { 0, -footer_height });
374 When such idiom was used and assuming zero-height Separator, it is likely that
375 in 1.92.7 the resulting window will have unexpected 1 pixel scrolling range.
376 - Multi-Select: renamed `ImGuiMultiSelectFlags_SelectOnClick` to `ImGuiMultiSelectFlags_SelectOnAuto`.
377 Kept inline redirection enum (will obsolete).
378 - Combo(), ListBox(): commented out legacy signatures which were obsoleted in 1.90
379 (Nov 2023), when the getter callback type was changed from:
380 bool (*getter)(void* user_data, int idx, const char** out_text)
381 To:
382 const char* (*getter)(void* user_data, int idx)
383
384Other Changes:
385
386- TreeNode:
387 - Moved `TreeNodeGetOpen()` helper to public API. I was hesitant to make this public
388 because I intend to provide a more generic and feature-full version, but in the meanwhile
389 this will do. (#3823, #9251, #7553, #6754, #5423, #2958, #2079, #1947, #1131, #722)
390 - In 'Demo->Property Editor' demonstrate a way to perform tree clipping by fast-forwarding
391 through non-visible chunks. (#3823, #9251, #6990, #6042)
392 Using SetNextItemStorageID() + TreeNodeGetOpen() makes this notably easier than
393 it was prior to 1.91.
394- InputText:
395 - Shift+Enter in multi-line editor always adds a new line, regardless of
396 `ImGuiInputTextFlags_CtrlEnterForNewLine` being set or not. (#9239)
397 - Reworked `io.ConfigInputTextEnterKeepActive` mode so that pressing Enter will
398 deactivate/reactivate the item in order for e.g. `IsItemDeactivatedAfterEdit()`
399 signals to be emitted the same way regardless of that setting. (#9001, #9115)
400 - Fixed a glitch when using `ImGuiInputTextFlags_ElideLeft` where the local x offset
401 would be incorrect during the deactivation frame. (#9298)
402 - Fixed a crash introduced in 1.92.6 when handling `ImGuiInputTextFlags_CallbackResize`
403 in certain situations. (#9174)
404 - Fixed selection highlight Y1 offset being very slightly off (since 1.92.3). (#9311) [@v-ein]
405 - InputTextMultiline: fixed an issue introduced in 1.92.3 where line count calculated
406 for vertical scrollbar range would be +1 when the widget is inactive, word-wrap is
407 disabled and the text buffer ends with '\n'. Fixed a similar issue related to clipping
408 large amount of text.
409 - InputTextMultiline: avoid going through reactivation code and fixed losing revert value
410 when activating scrollbar.
411 - InputTextMultiline: fixed an issue where edit buffer wouldn't be reapplied to back
412 buffer on the `IsItemDeactivatedAfterEdit()` frame. This could create issues when
413 using the idiom of not applying edits before `IsItemDeactivatedAfterEdit()`.
414 (#9308, #8915, #8273)
415- Tables:
416 - Allow reordering columns by dragging them in the context menu. (#9312)
417 - Context menu now presents columns in display order. (#9312)
418 - Fixed and clarified the behavior of using `TableSetupScrollFreeze()` with columns>1,
419 and where some of the columns within that range were Hidable.
420 - Before: `TableSetupScrollFreeze(N, 0)`: include the N left-most visible columns as
421 part of the scroll freeze. So if you intentionally hide columns <N, the scroll
422 freeze area would start covering the subsequent/following columns (N+1) etc.
423 - After: `TableSetupScrollFreeze(N, 0)`: include the N left-most columns (regardless of visibility),
424 part of the scroll freeze. So if you intentionally hide columns <N, the scroll as
425 freeze area will cover less columns.
426 - This is generally more sane and logical.
427 - Fixed dragging a header to reorder outside of visible bounds (due to horizontal scrolling)
428 from losing active id.
429 - Angled Headers: angled section for column being reordered via the regular headers
430 stays highlighted during reordering.
431- Style:
432 - Fonts: fixed an issue introduced in 1.92.6 where `style.FontBaseSize` would be
433 cleared during the first frame if no fonts was explicitly added before.
434 - Border sizes are now scaled (and rounded) by `ScaleAllSizes()`.
435 - When using large values with `ScallAllSizes()`, the following items thickness
436 are scaled to integer amounts:
437 - `InputText()` caret/cursor thickness. (#7031)
438 - `CloseButton()` thickness.
439 - `TextLink()` underline thickness.
440 - `ColorButton()` border thickness.
441 - `Separator()` thickness, via scaling newly added `style.SeparatorSize`. (#2657, #9263)
442- Nav:
443 - Popups: Shift+F10 or Menu key can now open popups menus when using
444 `BeginPopupContextItem()`, `BeginPopupContextWindow()` or `OpenPopupOnItemClick()`.
445 (#8803, #9270) [@exelix11, @ocornut]
446 - Changed Gamepad mapping for "Activate with Text Input" action: (#8803, #787)
447 - Previously: press North button (PS4/PS5 triangle, Switch X, Xbox Y).
448 - Now: long press (hold) Activate button (PS4/PS5 cross, Switch B, Xbox A) for ~0.60 secs.
449 This is rarely used, somehow easier to discover, and frees a button for other uses.
450 See updated Gamepad Control Sheets: https://www.dearimgui.com/controls_sheets
451 - Short Gamepad Activation press on InputText() always activate with Text Input mode.
452 - Popups: pressing North button (PS4/PS5 triangle, SwitchX, Xbox Y) also open popups menus.
453- Multi-Select:
454 - Added `ImGuiMultiSelectFlags_SelectOnClickAlways` mode (rarely used).
455 This prevents Drag and Drop of multiple items, but it allows to start a new Box-Selection
456 from inside an existing selection (Excel style). (#9307, #1861)
457- Clipper:
458 - Clear `DisplayStart`/`DisplayEnd` fields when `Step()` returns false.
459 - Added `UserIndex` helper storage. This is solely a convenience for cases where
460 you may want to carry an index around.
461 - Always pulls current context on `ImGuiListClipper::Begin()`, consistent with public
462 API design, and avoids issues with clipper instances outliving contexts. (#9324, #5856)
463- Scrollbar:
464 - Implemented a custom tweak to extend hit-testing bounding box when window is sitting
465 at the edge of a viewport (e.g. fullscreen or docked window), so that e.g. mouse the
466 mouse at the extreme of the screen will reach the scrollbar. (#9276)
467 - Fixed an issue which could lead initial click to move the current scroll by a pixel.
468- Button:
469 - Moved `ImGuiButtonFlags_AllowOverlap` from imgui_internal.h to imgui.h,
470 as a convenience for when using e.g. `InvisibleButton()`.
471- Focus: fixed fallback "Debug" window temporarily taking focus and setting `io.WantCaptureKeyboard`
472 for one frame on e.g. application boot if no other windows are submitted. (#9243)
473- DrawList:
474 - PathArcTo(): fixed erroneous segment count for pathologically small arcs on large
475 circles. (#9331, #9313) [@thedmd, @epajarre]
476- Memory:
477 - Discard/GC of ImDrawList buffers for unused windows favor restoring them to
478 ~Size*1.05 instead of Capacity when awakening again. Facilitate releasing ImDrawList
479 buffers after unusual usage spike. (#9303)
480 - Fixed `GetForegroundDrawList()`/`GetBackgroundDrawList()` per-viewport buffers not being
481 collected when unused for `io.ConfigMemoryCompactTimer` amount of time. (#9303)
482- Demo: fixed `IMGUI_DEMO_MARKER` locations for examples applets. (#9261, #3689) [@pthom]
483- Misc: added missing ImVec2/ImVec4 operators. (#9339, #8258) [@dkosmari, @ArashPartow]
484- Internals:
485 - ButtonBehavior: fixed internal/low-level `ImGuiButtonFlags_PressedOnRelease`
486 (as well as equivalent `ImGuiSelectableFlags_SelectOnRelease` for Selectable) from
487 not taking current active id. `ImGuiButtonFlags_NoHoldingActiveID` allows that.
488 This was only used internally by MenuItem().
489- Backends:
490 - DirectX9, OpenGL2, OpenGL3, Metal, SDLGPU3, SDLRenderer2, SDLRenderer3: fixed easy-to-fix
491 issues in code assuming ImTextureID_Invalid is always defined to 0. (#9295, #9310)
492 - GLFW: mouse cursor is properly restored if changed by user app/code while using
493 `glfwSetInputMode(..., GLFW_CURSOR_DISABLED)` or `ImGuiConfigFlags_NoMouseCursorChange`.
494 Amend optimization done in 1.92.6.
495 - SDLGPU3: removed unnecessary call to `SDL_WaitForGPUIdle()` when releasing
496 vertex/index buffers. (#9262) [@jaenis]
497 - WebGPU: fixed version check for Emscripten 5.0.0+.
498 - WebGPU: removed support for Emscripten <4.0.10. (#9281) [@ypujante]
499 - WebGPU: added support for WGVK native backend via `IMGUI_IMPL_WEBGPU_BACKEND_WGVK`,
500 using SPIRV shaders if WGSL is not available. (#9316, #9246, #9257) [@r-lyeh]
501 (WGVK is a lightweight alternative to Dawn or WGPU for native applications,
502 which is easier to build/setup, see: https://github.com/manuel5975p/WGVK)
503- Examples:
504 - Emscripten: added `tabindex=-1` to canvas in our shell_minimal.htm. Without it,
505 the canvas was not focusable in the DOM, which in turn make some backends
506 (e.g. pongasoft/emscripten-glfw) not receive focus loss events. (#9259) [@pthom]
507 - Emscripten: fixed minor rendering issues with our HTML shell. (#9281) [@ypujante]
508 - hidden small blue outline when canvas is focused on Chrome.
509 - hidden scrollbar in Firefox.
510 - Vulkan: added `ImGui_ImplVulkan_PipelineInfo::ExtraDynamicStates[]` to allow specifying
511 extra dynamic states to add when creating the VkPipeline. (#9211) [@DziubanMaciej]
512 - Vulkan: `ImGui_ImplVulkan_AddTexture()` skips updating descriptor_set if failing
513 to allocate one. (#8677) [@micb25]
514 - WebGPU: fixed undefined behaviors in example code for requesting adapter
515 and device. (#9246, #9256) [@r-lyeh]
516 - SDL2+WebGPU: fixed hi-dpi handling. (#9300) [@ypujante]
517 - GLFW/SDL2/SDL3+WebGPU: added support for WGVK. (#9316, #9246, #9257) [@r-lyeh, @ocornut]
518 - GLFW/SDL2/SDL3+WebGPU: removed support for Emscripten <4.0.10. (#9281) [@ypujante]
519
520Docking+Viewports Branch:
521
522- Viewports:
523 - Fixed an issue where the implicit "Debug" window would erroneously be targetted for
524 mouse inputs while hidden if (1) the implicit "Debug" window was used in a previous
525 session and moved to a secondary viewport and (2) the Platform Backend does not
526 support the `ImGuiBackendFlags_HasMouseHoveredViewport` feature. (#9254)
527 - Backends: SDL2, SDL3: fixed an issue dated 2025/04/09 (1.92 WIP) where a refactor
528 and a merge caused `ImGuiBackendFlags_HasMouseHoveredViewport` to never be set, causing
529 foreign windows to be ignored when deciding of hovered viewport. (#9284) [@ravencgg]
530 - Backends: SDL3: use `SDL_HAS_EVENT_DISPLAY_USABLE_BOUNDS_CHANGED` (SDL 3.4.0+) when
531 available to avoid refreshing monitor work area every frame on Windows. (#8415)
532 - Backends: Win32: fixed setting/getting correct size when viewports have OS decorations
533 enabled (e.g. io.ConfigViewportsNoDecoration = false) and process is running in
534 Per-Monitor V2 DPI mode. May be related to incorrect mouse offset when using
535 decorated OS windows. (#8897) [@lailoken]
536
537
538-----------------------------------------------------------------------
539 VERSION 1.92.6 (2026-02-17)
540-----------------------------------------------------------------------
541
542Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.6
543
544Breaking Changes:
545
546- Fonts:
547 - `AddFontDefault()` now automatically selects an embedded font between:
548 - `AddFontDefaultBitmap()`: classic pixel-clean font. Recommended at Size 13px with no scaling.
549 - `AddFontDefaultVector()`: new scalable font. Recommended at any higher size.
550 - The default selection is based on (style.FontSizeBase * FontScaleMain * FontScaleDpi)
551 reaching a small threshold, but old codebases may not set any of them properly.
552 As as a result, it is likely that old codebase may still default to AddFontDefaultBitmap().
553 - Prefer explicitly calling either of them based on your own logic!
554 You can call `AddFontDefaultBitmap()` to ensure legacy behavior.
555 - Fixed handling of `ImFontConfig::FontDataOwnedByAtlas = false` which did
556 erroneously make a copy of the font data, essentially defeating the purpose
557 of this flag and wasting memory (undetected since July 2015 and now spotted
558 by @TellowKrinkle, this is perhaps the oldest bug in Dear ImGui history,
559 albeit for a rarely used feature!) (#9086, #8465)
560 HOWEVER, fixing this bug is likely to surface bugs in user/app code:
561 - Prior to 1.92, font data only needs to be available during the `atlas->AddFontXXX()` call.
562 Since 1.92, font data needs to available until `atlas->RemoveFont()`, or more typically
563 until a shutdown of the owning context or font atlas.
564 - The fact that handling of `FontDataOwnedByAtlas = false` was broken bypassed
565 the issue altogether.
566 - Removed `ImFontConfig::PixelSnapV` added in 1.92 which turns out is unnecessary
567 (and was mis-documented). Post-rescale `GlyphOffset` is always rounded.
568 - Popups: changed compile-time `ImGuiPopupFlags popup_flags = 1` default value to be `= 0` for
569 `BeginPopupContextItem()`, `BeginPopupContextWindow()`, `BeginPopupContextVoid()`, `OpenPopupOnItemClick()`.
570 The default value has same meaning before and after. (#9157, #9146)
571 - Before this version, those functions had a `ImGuiPopupFlags popup_flags = 1` default
572 value in their function signature. This was introduced by a change on 2020/06/23 (1.77)
573 while changing the signature from `int mouse_button` to `ImGuiPopupFlags popup_flags`
574 and trying to preserve then-legacy behavior.
575 - We have now changed this behavior to: cleanup a very old API quirk, facilitate use by
576 bindings, and to remove the last and error-prone non-zero default value. Also because we
577 deemed it extremely rare to use those helper functions with the Left mouse button!
578 As using the LMB would generally be triggered via another widget,
579 e.g. a Button() + a OpenPopup()/BeginPopup() call.
580 - Before: The default = 1 means `ImGuiPopupFlags_MouseButtonRight`.
581 Explicitly passing a literal 0 means `ImGuiPopupFlags_MouseButtonLeft`.
582 - After: The default = 0 means `ImGuiPopupFlags_MouseButtonRight`.
583 Explicitly passing a literal 1 also means `ImGuiPopupFlags_MouseButtonRight`.
584 (if legacy behavior are enabled) or will assert (if legacy behavior are disabled).
585 - TL;DR: if you don't want to use right mouse button for popups, always specify it
586 explicitly using a named `ImGuiPopupFlags_MouseButtonXXXX` value.
587 Recap:
588 - BeginPopupContextItem("foo"); // Behavior unchanged (use Right button)
589 - BeginPopupContextItem("foo", ImGuiPopupFlags_MouseButtonLeft); // Behavior unchanged (use Left button)
590 - BeginPopupContextItem("foo", ImGuiPopupFlags_MouseButtonLeft | xxx); // Behavior unchanged (use Left button + flags)
591 - BeginPopupContextItem("foo", ImGuiPopupFlags_MouseButtonRight | xxx); // Behavior unchanged (use Right button + flags)
592 - BeginPopupContextItem("foo", 1); // Behavior unchanged (as a courtesy we legacy interpret 1 as ImGuiPopupFlags_MouseButtonRight, will assert if disabling legacy behaviors.
593 - BeginPopupContextItem("foo", 0); // !! Behavior changed !! Was Left button. Now will defaults to Right button! --> Use ImGuiPopupFlags_MouseButtonLeft.
594 - BeginPopupContextItem("foo", ImGuiPopupFlags_NoReopen); // !! Behavior changed !! Was Left button + flags. Now will defaults to Right button! --> Use ImGuiPopupFlags_MouseButtonLeft | xxx.
595- Commented out legacy names obsoleted in 1.90 (Sept 2023):
596 - `BeginChildFrame()` --> `BeginChild()` with `ImGuiChildFlags_FrameStyle` flag.
597 - `EndChildFrame()` --> `EndChild()`.
598 - `ShowStackToolWindow()` --> `ShowIDStackToolWindow()`.
599 - `IM_OFFSETOF()` --> `offsetof()`.
600 - `IM_FLOOR()` --> `IM_TRUNC()` [internal, for positive values only]
601- Hashing: handling of "###" operator to reset to seed within a string identifier
602 doesn't include the "###" characters in the output hash anymore:
603 Before: `GetID("Hello###World") == GetID("###World") != GetID("World")`
604 After: `GetID("Hello###World") == GetID("###World") == GetID("World")`
605 - This has the property of facilitating concatenating and manipulating
606 identifiers using "###", and will allow fixing other dangling issues.
607 - This will invalidate hashes (stored in .ini data) for Tables and Windows
608 that are using the "###" operators. (#713, #1698)
609- Renamed helper macro `IM_ARRAYSIZE()` -> `IM_COUNTOF()`. Kept redirection/legacy name.
610- Backends:
611 - Vulkan: optional `ImGui_ImplVulkanH_DestroyWindow()` helper used by our example
612 code does not call `vkDestroySurfaceKHR()`: because surface is created by caller
613 of `ImGui_ImplVulkanH_CreateOrResizeWindow()`, it is more consistent. (#9163)
614
615Other Changes:
616
617- Fonts:
618 - Added `AddFontDefaultVector()`: a new embedded monospace scalable font: ProggyForever!
619 From https://github.com/ocornut/proggyforever:
620 "ProggyForever is an MIT-licensed partial reimplementation of the ProggyVector
621 font (originally by Tristan Grimmer), which itself is a vector-based
622 reinterpretation of the ProggyClean bitmap font that happily served as
623 Dear ImGui default font for over 10 years." [...]
624 "I commissioned Thiebault Courot to recreate this, applied various minor tweaks
625 and fixes, and reworked his editing pipeline toward shipping FontForge source
626 files so we can allow and track future changes."
627 - TL;DR; there was no strictly MIT-licensed matching font. We made it!
628 - The font data was carefully subsetted, trimmed and compressed so the embedded
629 data is ~14 KB. Embedding a scalable default font ensures that Dear ImGui can
630 be easily and readily used in all contexts, even without file system access.
631 - Expect minor fixes/improvements in following releases.
632 - As always you can opt-out of the embedded font data if desired.
633 - `AddFontDefault()` now automatically selects an embedded font between
634 the classic pixel-looking one and the new scalable one.
635 Prefer calling `AddFontDefaultVector()` or `AddFontDefaultBitmap()` explicitly.
636 - Fixed a crash when trying to use `AddFont()` with `MergeMode==true` on a font that
637 has already been rendered. (#9162) [@ocornut, @cyfewlp]
638 - Fixed an issue where using `PushFont()` from the implicit/fallback "Debug" window
639 when its recorded state is collapsed would incorrectly early out. This would break
640 e.g. using direct draw-list calls such as `GetForegroundDrawList()` with current font.
641 (#9210, #8865)
642 - Fixed an issue related to `EllipsisChar` handling, while changing
643 font loader or font loader flags dynamically in Style->Fonts menus.
644 - imgui_freetype: fixed overwriting `ImFontConfig::PixelSnapH` when hinting
645 is enabled, creating side-effects when later disabling hinting or
646 dynamically switching to stb_truetype rasterizer.
647 - Adding new fonts after removing all fonts mid-frame properly updates current state.
648- Textures:
649 - Fixed a building issue when `ImTextureID` is defined as a struct.
650 - Fixed displaying texture # in Metrics/Debugger window.
651- Menus:
652 - Fixed `MenuItem()` label position and `BeginMenu()` arrow/icon/popup positions,
653 when used inside a line with a baseline offset.
654 - Made navigation into menu-bar auto wrap on X axis. (#9178)
655- TreeNode:
656 - Fixed highlight position when used inside a line with a large text baseline offset.
657 (it never quite worked in this situation; but then most of the time the text
658 baseline offset ends up being zero or `FramePadding.y` for a given line).
659- Tables:
660 - Fixed an issue where a very thin scrolling table would advance parent layout
661 slightly differently depending on its visibility (caused by a mismatch
662 between hard minimum window size and table minimum size).
663 - Fixed an issue where submitting non-integer row heights would eventually
664 advance table parent layout by +0/+1 depending on its visibility.
665 - Fixed losing stored display order when reducing column count or when .ini
666 data has missing or duplicate values. (#9108, #4046)
667- ColorEdit:
668 - Added R/G/B/A color markers next to each component (enabled by default).
669 - Added `ImGuiColorEditFlags_NoColorMarkers` to disable them.
670 - Added `style.ColorMarkerSize` to configure width of color component markers.
671- Sliders, Drags:
672 - Added `ImGuiSliderFlags_ColorMarkers` to opt-in adding R/G/B/A color markers
673 next to each components, in multi-components functions.
674 - Added a way to select a specific marker color.
675- InputText:
676 - InputTextMultiline(): fixed a minor bug where Shift+Wheel would allow a small
677 horizontal scroll offset when there should be none. (#9249)
678 - ImGuiInputTextCallbackData: `SelectAll()` also sets `CursorPos` to `SelectionEnd`.
679 - ImGuiInputTextCallbackData: Added `SetSelection()` helper.
680 - ImGuiInputTextCallbackData: Added `ID` and `EventActivated` members. (#9174)
681- Text, InputText:
682 - Reworked word-wrapping logic:
683 - Try to not wrap in the middle of contiguous punctuation. (#8139, #8439, #9094)
684 - Try to not wrap between a punctuation and a digit. (#8503)
685 - Inside `InputTextMultiline()` with WordWrap enabled: prefer keeping blanks at
686 the end of a line rather than at the beginning of next line. (#8990, #3237)
687 - Fixed low-level word-wrapping function reading from `*text_end` when passed
688 a string range. (#9107) [@achabense]
689 - Changed `RenderTextEllipsis()` logic to not trim trailing blanks before
690 the ellipsis, making ellipsis position more consistent and not arbitrary
691 hiding the possibility of multiple blanks. (#9229)
692- Nav:
693 - Fixed remote/shortcut InputText() not teleporting mouse cursor when
694 nav cursor is visible and `io.ConfigNavMoveSetMousePos` is enabled.
695 - Fixed a looping/wrapping issue when used in menu layer. (#9178)
696 - Fixed speed scale for resizing/moving with keyboard/gamepad. We incorrectly
697 used `io.DisplayFramebufferScale` as a scaling factor (very old code),
698 effectively making those actions faster on macOS/iOS retina screens.
699 (changed this to use a style scale factor that's not fully formalized yet)
700 - Fixed an UBSan warning when using in a `ImGuiListClipper` region . (#9160)
701- Scrollbar: fixed a code-path leading to a divide-by-zero (which would not be
702 noticeable by user but detected by sanitizers). (#9089) [@judicaelclair]
703- InvisibleButton: allow calling with size (0,0) to fit to available content
704 size. (#9166, #7623)
705- Tooltips, Disabled: fixed `EndDisabledOverrideReenable()` assertion when
706 nesting a tooltip in a disabled block. (#9180, #7640) [@RegimantasSimkus]
707- Added `GetItemFlags()` in public API for consistency and to expose generic
708 flags of last submitted item. (#9127)
709- Misc: fixed build on ARM64/ARM64EC targets trying to use SSE/immintrin.h.
710 (#9209, #5943, #4091) [@navvyswethgraphics]
711- Log/Capture:
712 - Fixed erroneously injecting extra carriage returns in output text buffer
713 when `ItemSpacing.y` > `FramePadding.y + 1` while emitting items.
714- Images:
715 - Added `style.ImageRounding`, `ImGuiStyleVar_ImageRounding `to configure
716 rounding of `Image()` widgets. (#2942, #845)
717 - `ImageButton()` doesn't use a clamped `style.FrameRounding` value but instead
718 adjust inner image rounding when `FramePadding > `FrameRounding`. (#2942, #845)
719- Shortcuts:
720 - IsItemHovered() without `ImGuiHoveredFlags_AllowWhenBlockedByActiveItem`
721 doesn't filter out the signal when activated item is a shortcut remote activation;
722 (which mimics what's done internally in the `ItemHoverable()` function). (#9138)
723 - Fixed tooltip placement being affected for a frame when located over an item
724 activated by `SetNextItemShortcut()`. (#9138)
725- Error Handling:
726 - Improved error handling and recovery for `EndMenu()`/`EndCombo()`. (#1651, #9165, #8499)
727 - Improved error handling and recovery for `TableSetupColumn()`.
728- Debug Tools:
729 - Debug Log: fixed incorrectly printing characters in IO log when submitting
730 non-ASCII values to `io.AddInputCharacter()`. (#9099)
731 - Debug Log: can output to debugger on Windows via Win32 `OutputDebugString()` (#5855)
732- Demo:
733 - Slightly improve `Selectable()` demos. (#9193)
734- Backends:
735 - DirectX10: added `SamplerNearest` in `ImGui_ImplDX10_RenderState`.
736 (+renamed `SamplerDefault` to `SamplerLinear`, which was tagged as beta API)
737 - DirectX11: added `SamplerNearest` in ImGui_ImplDX11_RenderState.
738 (+renamed `SamplerDefault` to `SamplerLinear`, which was tagged as beta API)
739 - GLFW: Avoid repeated `glfwSetCursor()` / `glfwSetInputMode()` unnecessary calls.
740 Lowers overhead for very high framerates (e.g. 10k+ FPS). [@maxliani]
741 - GLFW: Added `IMGUI_IMPL_GLFW_DISABLE_X11` / `IMGUI_IMPL_GLFW_DISABLE_WAYLAND` to
742 forcefully disable either. (#9109, #9116)
743 Try to set them automatically if headers are not accessible. (#9225)
744 - OpenGL3: Fixed embedded loader multiple init/shutdown cycles broken on some
745 platforms. (#8792, #9112)
746 - SDL2, SDL3: changed `GetClipboardText()` handler to return NULL on error aka
747 clipboard contents is not text. Consistent with other backends. (#9168)
748 - SDL2, SDL3: systems other than X11 are back to starting mouse capture on mouse down
749 (reverts 1.91.9 change). Only X11 requires waiting for a drag by default (not ideal,
750 but a better default for X11 users). Waiting for a drag to start mouse capture leads to
751 input drops when dragging after clicking on the edge of a window.
752 (#3650, #6410, #9235, #3956, #3835)
753 - SDL2, SDL3: added `ImGui_ImplSDL2_SetMouseCaptureMode()`/`ImGui_ImplSDL3_SetMouseCaptureMode()`
754 function for X11 users to disable mouse capturing/grabbing. (#3650, #6410, #9235, #3956, #3835)
755 - When attached to a debugger may want to call:
756 - `ImGui_ImplSDL3_SetMouseCaptureMode(ImGui_ImplSDL3_MouseCaptureMode_Disabled);`
757 - But you can also configure your system or debugger to automatically release
758 mouse grab when crashing/breaking in debugger, e.g.
759 - console: `setxkbmap -option grab:break_actions && xdotool key XF86Ungrab`
760 - or use a GDB script to call `SDL_CaptureMouse(false)`. See #3650.
761 - On platforms other than X11 this is unnecessary.
762 - SDL_GPU3: added `SamplerNearest` in `ImGui_ImplSDLGPU3_RenderState`.
763 - SDL_GPU3: macOS version can use MSL shaders in order to support macOS 10.14+
764 (vs Metallib shaders requiring macOS 14+). Requires application calling
765 `SDL_CreateGPUDevice()` with `SDL_GPU_SHADERFORMAT_MSL`. (#9076) [@Niminem]
766 - Vulkan: helper for creating a swapchain (used by examples and multi-viewports)
767 selects `VkSwapchainCreateInfoKHR`'s `compositeAlpha` value based on
768 `cap.supportedCompositeAlpha`, which seems to be required on some Android
769 devices. (#8784) [@FelixStach]
770 - WebGPU: fixes for Emscripten 5.0.0 (note: current examples do not build with 5.0.1).
771 - Win32: handle `WM_IME_CHAR`/`WM_IME_COMPOSITION` to support Unicode inputs on
772 MBCS (non-Unicode) Windows. (#9099, #3653, #5961) [@ulhc, @ocornut, @Othereum]
773 - Win32: minor optimization not submitting gamepad input if packet number has not
774 changed (reworked previous 1.92.4). (#9202, #8556) [@AhmedSamyMousa, @MidTerm-CN]
775- Examples:
776 - Win32+DirectX12: ignore seemingly incorrect `D3D12_MESSAGE_ID_FENCE_ZERO_WAIT`
777 warning on startups on some setups. (#9084, #9093) [@RT2Code, @LeoGautheron]
778
779Docking+Viewports Branch:
780
781- Docking:
782 - Fixed various rendering issues and ability to have rounded floating dock nodes.
783 (#6993, #6151) - please note that rounding is still disabled on standalone
784 viewports.
785 - Fixed implicit/fallback "Debug" window from staying visible if once docked. (#9151)
786 - Demo: rework 'Dockspace' demo to increase clarity and put more emphasis on the
787 basic path of simply calling `DockSpaceOverViewport()`.
788- Viewports:
789 - Fixed a regression in 1.92.4 where partially moving a floating docking node
790 with horizontal/vertical split over the main viewport would set the window in
791 an invalid state in some situations, making user unable to further interact
792 with the window.
793 - Fixed a regression in 1.92.4 which could cause combos/popups window from
794 appearing under their parent viewport if their geometry overlapped the main
795 viewport. (#8948, #9172, #9131, #9128)
796 - Fixed an assert in background dimming code, which could trigger after using
797 gamepad/keyboard to move a window to another viewport. (#9053) [@lut0pia, @ocornut]
798- Backends:
799 - GLFW: dynamically load X11 functions to avoid `-lx11` linking requirement introduced
800 in 1.92.3. (#9116, #9109) [@ramenguy99]
801 - GLFW: improve workarounds for cases where GLFW is unable to provide reliable monitor
802 info. Preserve existing monitor list when none of the new one is valid. (#9195, #7902, #5683)
803 - SDL2, SDL3: adjust IME offset to match other backends and master branch. (#6071, #1953)
804 - Win32: viewports created by backend forcefully direct messages to
805 `DefWindowProcW()` in order to support Unicode text input. (#9099, #3653, #5961) [@ulhc]
806 - Win32: fixed an issue from 1.90.5 where newly appearing windows that are not parented
807 to the main viewport didn't have their task bar icon appear before the window was
808 explicitly refocused. (#7354, #8669)
809
810
811-----------------------------------------------------------------------
812 VERSION 1.92.5 (Released 2025-11-20)
813-----------------------------------------------------------------------
814
815Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.5
816
817Breaking Changes:
818
819 - Keys: commented out legacy names which were obsoleted in 1.89.0 (August 2022).
820 - ImGuiKey_ModCtrl --> ImGuiMod_Ctrl
821 - ImGuiKey_ModShift --> ImGuiMod_Shift
822 - ImGuiKey_ModAlt --> ImGuiMod_Alt
823 - ImGuiKey_ModSuper --> ImGuiMod_Super
824 - IO: commented out legacy io.ClearInputCharacters() obsoleted in 1.89.8 (Aug 2023).
825 Using io.ClearInputKeys() is enough.
826 - BeginChild: commented out legacy names which were obsoleted in 1.90.0 (Nov 2023),
827 1.90.9 (July 2024), 1.91.1 (August 2024). (#462, #7687)
828 - ImGuiChildFlags_Border --> ImGuiChildFlags_Borders
829 - ImGuiWindowFlags_NavFlattened --> ImGuiChildFlags_NavFlattened (moved to ImGuiChildFlags).
830 - ImGuiWindowFlags_AlwaysUseWindowPadding --> ImGuiChildFlags_AlwaysUseWindowPadding (moved to ImGuiChildFlags).
831 So:
832 - BeginChild(name, size, 0, ImGuiWindowFlags_NavFlattened) --> BeginChild(name, size, ImGuiChildFlags_NavFlattened, 0)
833 - BeginChild(name, size, 0, ImGuiWindowFlags_AlwaysUseWindowPadding) --> BeginChild(name, size, ImGuiChildFlags_AlwaysUseWindowPadding, 0)
834 - Commented out legacy SetItemAllowOverlap() obsoleted in 1.89.7: this never worked right.
835 Use SetNextItemAllowOverlap() _before_ item instead.
836
837Other Changes:
838
839- Windows:
840 - Config flag io.ConfigWindowsMoveFromTitleBarOnly is now latched during
841 Begin(), effectively allowing to change the value on a per-window basis.
842 (although there is a better internal mechanism for it).
843 - Fixed single-axis auto-sizing (via double-clicking a border or passing
844 0.0f on one axis of SetNextWindowSize() call) to take account of remaining
845 scrollbar on the other axis. (#9060)
846 - Fixed an issue where repeated calls to SetNextWindowSize() using 0.0f
847 to auto-size on a given axis would keep marking ini settings as dirty.
848- Tables:
849 - Fixed a bug where nesting BeginTable()->Begin()->BeginTable() would
850 result in temporarily incorrect state, which would lead to bugs to side effects
851 in various locations, e.g. GetContentRegionAvail() calls or using clipper. (#9005)
852 EndTable() was mistakenly restoring a wrong current table.
853 - Angled headers: fixed an auto-resize feedback loop that could
854 affect tables with empty non-resizing columns using angled headers, making
855 them typically flicker back and forth between +0 and +1 pixels.
856- Disabled: fixed a bug when a previously enabled item that got nav focus
857 and then turns disabled could still be activated using keyboard. (#9036)
858- InputText:
859 - When buffer is not resizable, trying to paste contents that cannot
860 fit will now truncate text to nearest UTF-8 codepoint boundaries,
861 instead of completely ignoring the paste. (#9029)
862 - Avoid continuously overwriting ownership of ImGuiKey_Enter/_KeypadEnter
863 keys in order to allow e.g. external Shortcut override behavior. (#9004)
864 - When using a callback to reduce/manipulate the value of BufTextLen,
865 we do not require anymore that CursorPos be clamped by user code. (#9029)
866 - Fixed an assert when using ImGuiInputTextFlags_ReadOnly and making
867 underlying contents shorter while text is selected. (#9069, #3237)
868 (regression from 1.92.3)
869 - InputTextMultiline: fixed a crash when using ImGuiInputTextFlags_WordWrap and
870 resizing the parent window while keeping the multi-line field active (which is
871 most typically achieved when resizing programmatically or via a docking layout
872 reacting to a platform window resize). (#3237, #9007) [@anton-kl, @ocornut]
873- Nav:
874 - Reworked PageUp/PageDown logic to pick same-page top/bottom page based
875 on inner rectangle rather than clipping rectangle, ensuring consistent
876 (but occasionally less practical) navigation result when a window is
877 partially out of screen. (#787)
878 - Improved/clarified behavior when requesting PageUp/PageDown from a
879 focused item which is outside of visible boundaries: now ends up one
880 page away from focused item. (#9079)
881 - Clipper: fixed an issue when using up/down from an item outside of
882 visible bound and using the clipper. (#9079)
883- Fonts:
884 - Calling ImFontAtlas::Clear() mid-frame without re-adding a font will
885 lead to a more explicit crash.
886- Textures:
887 - Fixed an issue preventing multi-contexts from using each others' fonts
888 if context 2 runs after context 1's Render() function. (#9039)
889- MultiSelect: added ImGuiMultiSelectFlags_NoSelectOnRightClick to disable default
890 right-click processing, which selects item on mouse down and is designed for
891 context-menus. (#8200, #9015)
892- Groups: fixed an issue reporting IsItemEdited() signal after EndGroup() when
893 triggered by some widgets e.g. Checkbox(), Selectable() and many others, which
894 cleared ActiveId at the same time as editing. (#9028)
895 Note that IsItemDeactivatedAfterEdit() was not affected, only IsItemEdited().
896- Misc: standardized casing of keyboard mods in comments and demo, showing
897 as e.g. "Ctrl" instead of "CTRL".
898- CI: Added Dear ImGui Test Suite to CI builds. [@rokups]
899- Drag and Drop:
900 - Added ImGuiDragDropFlags_AcceptDrawAsHovered to make accepting item render
901 as hovered, which can allow using e.g. Button() as drop target. (#8632)
902 - Pressing Escape while carrying a payload automatically cancel the
903 active drag and drop. (#9071)
904 - Style: added ImGuiCol_DragDropTargetBg, style.DragDropTargetRounding,
905 style.DragDropTargetBorderSize and style.DragDropTargetPadding to configure
906 the drop target highlight. (#9056) [@aaronkirkham]
907- Demo: About Box: emit infos to convey when IM_ASSERT() macro is disabled,
908 - so users don't miss out on programming errors being reported.
909 - so it is included in config/build info submitted in new GitHub Issues.
910- Debug Tools:
911 - Fixed DebugTextEncoding() potentially reading out of bounds when
912 provided a trailing truncated UTF-8 sequence.
913 - Metrics: fixed table and columns rect highlight from display when
914 debug/metrics window is not in the same viewport as the table.
915- Backends:
916 - NULL: added imgui_impl_null platform/renderer backend.
917 This is designed if you need to run e.g. context with no input or no output.
918 - GLFW: fixed building on Linux platforms where Wayland headers
919 are not available. (#9024, #8969, #8921, #8920) [@jagot]
920 - GLFW: lower minimum requirement from GLFW 3.1 to GLFW 3.0. Though
921 a recent version e.g GLFW 3.4 is highly recommended! (#9055) [@Clownacy]
922 - GLFW: fixed last `ImGui_ImplGlfw_Shutdown()` not immediately clearing the context
923 map, which would be detected by leak trackers. (#9075, #8676, #8239, #8069) [@erincatto]
924 - SDL3: fixed Platform_OpenInShellFn() return value (the return value
925 was unused in core but might be used by a direct caller). (#9027) [@achabense]
926 - SDL3: fixed an issue with missing characters events when an already active text
927 field changes viewports. (#9054)
928 - Vulkan: added IMGUI_IMPL_VULKAN_VOLK_FILENAME to configure path to
929 Volk (default to "volk.h"). (#9008, #7722, #6582, #4854) [@mwlasiuk]
930 - WebGPU: update to compile with Dawn and Emscripten's 4.0.10+
931 '--use-port=emdawnwebgpu' ports. (#8381, #8898, #7435) [@brutpitt, @trbabb]
932 When using Emscripten 4.0.10+, backend now defaults to IMGUI_IMPL_WEBGPU_BACKEND_DAWN
933 instead of IMGUI_IMPL_WEBGPU_BACKEND_WGPU, if neither are specified.
934 - WebGPU: added various internal/optional helpers to wrap some of the
935 Dawn/WGPU/Emscripten debacle quirks: (#8381) [@brutpitt]
936 - ImGui_ImplWGPU_CreateWGPUSurfaceHelper().
937 - ImGui_ImplWGPU_IsSurfaceStatusError(), ImGui_ImplWGPU_IsSurfaceStatusSubOptimal().
938 - ImGui_ImplWGPU_DebugPrintAdapterInfo(),
939 - ImGui_ImplWGPU_GetBackendTypeName(), ImGui_ImplWGPU_GetAdapterTypeName(),
940 ImGui_ImplWGPU_GetDeviceLostReasonName(), ImGui_ImplWGPU_GetErrorTypeName(),
941 ImGui_ImplWGPU_GetLogLevelName().
942 - Win32: Revert 1.92.4 change of comparing dwPacketNumber, which prevents
943 refreshing accurate gamepad info after focus-out + io.ClearInputKeys(). (#8556)
944- Examples:
945 - NULL: update examples_null to use imgui_impl_null (which is a bit overengineering
946 but somehow consistent).
947 - GLFW+WebGPU: update example for latest specs, to work on Emscripten 4.0.10+,
948 latest Dawn-Native and WGPU-Native. (#8381, #8567, #8191, #7435) [@brutpitt]
949 - GLFW+WebGPU: removed unnecessary ImGui_ImplWGPU_InvalidateDeviceObjects() call
950 during surface resize. (#8381)
951 - SDL2+WebGPU: added new example (Emscripten + native Dawn/WGPU). (#8381) [@brutpitt]
952 - SDL3+WebGPU: added new example (Emscripten + native Dawn/WGPU). (#8381) [@brutpitt]
953 - Win32+OpenGL3: enable DPI awareness. (#9083)
954
955Docking+Viewports Branch:
956
957- Docking, Style: fixed per-window ImGuiCol_UnsavedMarker changes not being latched
958 by docked windows. (#8983, #9064)
959- Docking: fixed crash loading certain form of invalid .ini settings (e.g. nodes
960 referring to a missing parent, duplicate nodes id). (#9070)
961- Docking: added io.ConfigDockingNoDockingOver helper config flag to prevent
962 merging windows into a same tab-bar.
963- Examples:
964 - SDL2+DX11, SDL3+DX11, Win32+DX10, Win32+DX11: fixed one resource leak
965 from the use of MakeWindowAssociation() in 1.92.4. (#9010, #4350) [@o-3-o]
966- Backends:
967 - DirectX12: Fixed an issue in synchronization logic improving rendering
968 throughput for secondary viewports. (#9025, #8961)
969 - Vulkan: handle viewport surface creation failure without crashing. (#9068) [@zentia]
970
971
972-----------------------------------------------------------------------
973 VERSION 1.92.4 (Released 2025-10-14)
974-----------------------------------------------------------------------
975
976Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.4
977
978Breaking Changes:
979
980- Viewports: for consistency with other config flags, renamed
981 io.ConfigViewportPlatformFocusSetsImGuiFocus
982 to io.ConfigViewportsPlatformFocusSetsImGuiFocus. (#6299, #6462)
983 It was really a typo in the first place, and introduced in 1.92.2.
984- Backends:
985 - TreeNode, Selectable, Clipper: commented out legacy names obsoleted in
986 1.89.7 (July 2023) and 1.89.9 (Sept 2023):
987 ImGuiTreeNodeFlags_AllowItemOverlap --> ImGuiTreeNodeFlags_AllowOverlap
988 ImGuiSelectableFlags_AllowItemOverlap --> ImGuiSelectableFlags_AllowOverlap
989 ImGuiListClipper::IncludeRangeByIndices() --> ImGuiListClipper::IncludeItemsByIndex()
990 - Vulkan: moved some fields in ImGui_ImplVulkan_InitInfo:
991 init_info.RenderPass --> init_info.PipelineInfoMain.RenderPass
992 init_info.Subpass --> init_info.PipelineInfoMain.Subpass
993 init_info.MSAASamples --> init_info.PipelineInfoMain.MSAASamples
994 init_info.PipelineRenderingCreateInfo --> init_info.PipelineInfoMain.PipelineRenderingCreateInfo
995 It makes things more consistent and was desirable to introduce new settings for
996 secondary viewports. (#8946, #8110, #8111, #8686) [@ocornut, @SuperRonan, @sylmroz]
997 - Vulkan: renamed ImGui_ImplVulkan_MainPipelineCreateInfo --> ImGui_ImplVulkan_PipelineInfo
998 (introduced very recently and only used by `ImGui_ImplVulkan_CreateMainPipeline()`
999 so it should not affect many users). (#8110, #8111)
1000 - Vulkan: helper ImGui_ImplVulkanH_CreateOrResizeWindow() added a
1001 `VkImageUsageFlags image_usage` argument.
1002 It was previously hardcoded to `VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT` and defaults
1003 to that when the value is 0. In theory the function is an internal helper but
1004 since it's used by our examples some may have used it. (#8946, #8111, #8686)
1005
1006Other Changes:
1007
1008- Windows: added lower-right resize grip on child windows using both
1009 ImGuiChildFlags_ResizeX and ImGuiChildFlags_ResizeY flags. (#8501) [@aleksijuvani]
1010 The grip is not visible before hovering to reduce clutter.
1011- Style: added ImGuiCol_UnsavedMarker, color of the unsaved document marker when
1012 using ImGuiWindowFlags_UnsavedDocument/ImGuiTabItemFlags_UnsavedDocument. (#8983)
1013- IO: added ImGuiPlatformIO::ClearPlatformHandlers(), ClearRendererHandlers()
1014 helpers to null all handlers. (#8945, #2769)
1015- Tables: changed ImGuiTableFlags_NoBordersInBody behavior to not draw border in
1016 body even when resizing. (#8893)
1017- Inputs:
1018 - Shortcuts: added support for combining ImGuiInputFlags_RouteFocused
1019 (which is the default route) with ImGuiInputFlags_RouteOverActive, allowing
1020 to steal shortcuts from active item without using global routing. (#9004)
1021- InputText:
1022 - Fixed single-line InputText() not applying fine character clipping
1023 properly (regression in 1.92.3). (#8967) [@Cyphall]
1024 - Fixed an infinite loop error happening if a custom input text
1025 callback modifies/clear BufTextLen before calling InsertChars().
1026 (regression from 1.92.3). Note that this never really worked correctly, but
1027 previously it would only temporary wreck cursor position, and since 1.92.3 it
1028 would go in an infinite loop. (#8994, #3237)
1029- Textures:
1030 - Fixed a crash if texture status is set to ImTextureStatus_WantDestroy by a backend
1031 after it had already been destroyed. This would typically happen when calling
1032 ImGui_ImplXXXX_InvalidateDeviceObjects() helpers twice in a row. (#8977, #8811)
1033 - Allowed backend to destroy texture while inside the NewFrame/EndFrame
1034 scope. Basically if a backend decide to destroy a texture that we didn't request
1035 to destroy (for e.g. freeing resources) the texture is immediately set to
1036 a ImTextureStatus_WantCreate status again. (#8811)
1037 - Fixed an issue preventing multi-contexts sharing a ImFontAtlas from
1038 being possible to destroy in any order.
1039 - Fixed not updating ImTextureData's RefCount when destroying a context
1040 using a shared ImFontAtlas, leading standard backends to not properly
1041 free texture resources. (#8975) [@icrashstuff]
1042- Demo: fixed layout issue in "Layout & Scrolling -> Scrolling" section.
1043- Misc: Relaxed internal assert in MarkItemEdited() to allow for more use cases. (#8997)
1044- Misc: Debuggers: added type formatters for the LLDB debuggers (e.g. Xcode,
1045 Android Studio & more) to provide nicer display for ImVec2, ImVec4, ImVector etc.
1046 See misc/debuggers/ for details. (#8950) [@mentlerd]
1047- CI: updated Windows CI scripts to generate/use VulkanSDK. (#8925, #8778) [@yaz0r]
1048- Docs: updated FAQ with new "What is the difference between Dear ImGui and
1049 traditional UI toolkits?" entry. (#8862)
1050- Backends:
1051 - All backends call ImGuiPlatformIO::ClearPlatformHandlers() and
1052 ClearRendererHandlers() on shutdown, so as not to leave function pointers
1053 which may be dangling when using backend in e.g. DLL. (#8945, #2769)
1054 - DirectX12: reuse a command list and allocator for texture uploads instead
1055 of recreating them each time. (#8963, #8465) [@RT2Code]
1056 - DirectX12: Rework synchronization logic. (#8961) [@RT2Code]
1057 (presumably fixes old hard-to-repro crash issues such as #3463, #5018)
1058 - DirectX12: Reuse texture upload buffer and grow it only when
1059 necessary. (#9002) [@RT2Code]
1060 - DirectX12: Enable swapchain tearing if available. (#8965) [@RT2Code]
1061 - OpenGL3: fixed GL loader to work on Haiku OS which does not support
1062 `RTLD_NOLOAD`. (#8952) [@Xottab-DUTY, @threedeyes]
1063 - GLFW: fixed build on platform that are neither Windows, macOS or
1064 known Unixes (Regression in 1.92.3). (#8969, #8920, #8921) [@oktonion]
1065 - SDL2,SDL3: avoid using the SDL_GetGlobalMouseState() path when one of our
1066 window is hovered, as the event data is reliable and enough in this case.
1067 - Fix mouse coordinates issue in fullscreen apps with macOS notch. (#7919, #7786)
1068 - Essentially a workaround for SDL3 bug which will be fixed in SDL 3.3.0.
1069 - Better perf on X11 as querying global position requires a round trip to X11 server.
1070 - Win32: minor optimization not submitting gamepad io again if
1071 XInput's dwPacketNumber has not changed. (#8556) [@MidTerm-CN]
1072 - Vulkan: added a way to specify custom shaders by filling init fields
1073 CustomShaderVertCreateInfo and CustomShaderFragCreateInfo. (#8585, #8271) [@johan0A]
1074 - DX9,DX10,DX11,DX12,Metal,Vulkan,WGPU,SDLRenderer2,SDLRenderer3:
1075 ensure that a texture in ImTextureStatus_WantDestroy state always turn to
1076 ImTextureStatus_Destroyed even if your underlying graphics data was already
1077 destroyed. (#8977)
1078- Examples:
1079 - SDL2+DirectX11: Try WARP software driver if hardware driver is
1080 not available. (#5924, #5562)
1081 - SDL3+DirectX11: Added SDL3+DirectX11 example. (#8956, #8957) [@tomaz82]
1082 - Win32+DirectX12: Rework synchronization logic. (#8961) [@RT2Code]
1083 - Made examples's main.cpp consistent with returning 1 on error.
1084
1085Docking+Viewports Branch:
1086
1087- Nav, Docking, Selection: Fixed tab change from reinitializing navigation state,
1088 which would erroneously clear selection when using ImGuiSelectableFlags_SelectOnNav
1089 or clear multi-selection when not using ImGuiMultiSelectFlags_NoAutoSelect. (#8997)
1090- Nav: Fixed a crash that could occur when opening a popup following the processing
1091 of a global shortcut while no windows were focused (the fix done in 1.92.3 was
1092 incomplete for docking branch).
1093- Viewports:
1094 - Added ImGuiBackendFlags_HasParentViewport backend flag for
1095 backend to specify if it can honor the `viewport->ParentViewport`/`ParentViewportId`
1096 value by applying the corresponding parent/child relation at the Platform level. (#8948)
1097 - SDL3, Win32 backends: supported.
1098 - SDL2, GLFW, OSX backends: unsupported.
1099 - Fixed a bug where ImGuiWindowFlags_NoBringToFrontOnFocus would effectively
1100 be ignored when windows first appear and viewports are enabled. (#7008) [@jshofmann]
1101 - Changed default value of io.ConfigViewportsNoDefaultParent to true. (#8948)
1102 As a reminder, for backend honoring ParentViewportID:
1103 - Parented windows will always appear in front of the main viewport.
1104 - Non-parented windows can appear behing the main viewport.
1105 - Fixed an issue inferring Z-order when attempting to merge a viewport
1106 back in the the main/hosting viewport. (#8948)
1107 Note that for GLFW/SDL2/OSX backends, which do not support honoring ParentViewportID.
1108 Setting io.ConfigViewportsNoDefaultParent=true will align imgui's expectation
1109 with what the backend does.
1110 - Storing `ImGuiViewport* ParentViewport` pointer along with ParentViewportID.
1111 - ImGui::DestroyContext() does not call DestroyPlatformWindows() anymore at it
1112 is assumed to be unnecessary as backends should have done it and we check that
1113 backends have been shutdown since 1.90.4. Changed into asserts. (#7175, #8945)
1114- Backends:
1115 - DirectX10, DirectX11, DirectX12: Disabled DXGI's Alt+Enter default behavior on
1116 secondary viewports managed by the backend. (#4350) [@PathogenDavid]
1117 - DirectX10, DirectX11: avoid ImGui_ImplXXXX_SwapBuffers() handlers for secondary
1118 viewports crashing if SwapChain could not be created.
1119 - Vulkan: Added a way to configure secondary viewport pipeline creation by
1120 setting init_info.PipelineInfoForViewports fields. (#8946, #8110, #8111, #8686)
1121 - Vulkan: Added a way to configure secondary viewport swapchain VkImageUsageFlags
1122 to e.g. capture rendering. (#8946, #8940) [@olivier-gerard, @ocornut]
1123 Usage example: `init_info.PipelineInfoForViewports.SwapChainImageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT;`
1124 - Vulkan: pipeline created for secondary viewport automatically match
1125 surface format. (#8686) [@sylmroz]
1126 - Vulkan: Added ImGui_ImplVulkanH_GetWindowDataFromViewport() accessor/helper. (#8946, #8940) [@olivier-gerard]
1127- Docs: improve docking API comments and demo. (#9000)
1128- Examples: DX10, DX11: Disabled DXGI's Alt+Enter default behavior in examples.
1129 Applications are free to leave this enabled, but it does not work properly with
1130 multiple viewports. (#4350, #8979) [@PathogenDavid]
1131
1132
1133-----------------------------------------------------------------------
1134 VERSION 1.92.3 (Released 2025-09-17)
1135-----------------------------------------------------------------------
1136
1137Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.3
1138
1139Other Changes:
1140
1141- Fonts: fixed merging a font and specifying a font target in DstFont
1142 that's not the last added font (regression in 1.92). (#8912)
1143- Fonts: fixed an assertion failure when a rectangle entry has been reused
1144 1024 times (e.g. due to constant change of font size). (#8906) [@cfillion]
1145- Clipper, Tables: added ImGuiListClipperFlags_NoSetTableRowCounters as a way to
1146 disable the assumption that 1 clipper item == 1 table row, which breaks when
1147 e.g. using clipper with ItemsHeight=1 in order to clip in pixel units. (#8886)
1148- Scrollbar, Style: added configurable style.ScrollbarPadding value and corresponding
1149 ImGuiStyleVar_ScrollbarPadding enum, instead of an hard-coded computed default. (#8895)
1150- Nav: fixed Ctrl+Tab window appearing as empty when the sole active and focused
1151 window has the ImGuiWindowFlags_NoNavFocus flag. (#8914)
1152- Nav: fixed a crash that could occur when opening a popup following the processing
1153 of a global shortcut while no windows were focused.
1154- Bullet: fixed tessellation which looked out of place in very large sizes.
1155- InputText: added ImGuiInputTextFlags_WordWrap flag to word-wrap multi-line buffers.
1156 (#3237, #952, #1062, #7363). Current caveats:
1157 - This is marked as beta because not being tested enough.
1158 Please report any incorrect cursor movement, selection behavior etc. bug to #3237.
1159 - Wrapping style is not ideal. Wrapping of long words/sections (e.g. words
1160 larger than total available width) may be particularly unpleasing.
1161 - Wrapping width needs to always account for the possibility of a vertical scrollbar.
1162 - It is currently much slower than regular text fields:
1163 - Ballpark estimate of cost on my 2019 desktop PC:
1164 For a 100 KB text buffer: +~0.3 ms/+~1.0 ms (Optimized vs Debug builds).
1165 - The CPU cost is very roughly proportional to text length, so a 10 KB buffer
1166 should cost about ten times less.
1167- InputText, InputInt, InputFloat: fixed an issue where using Escape to revert
1168 would not write back the reverted value during the IsItemDeactivatedAfterEdit()
1169 frame if the provided input buffer doesn't store temporary edits.
1170 (regression in 1.91.7) (#8915, #8273)
1171- InputText: fixed an issue where using Escape with ImGuiInputTextFlags_EscapeClearsAll
1172 would not write back the cleared value during the IsItemDeactivatedAfterEdit()
1173 frame if the provided input buffer doesn't store temporary edits. (#8915, #8273)
1174- InputText: allow passing an empty string with buf_size==0. (#8907)
1175 In theory the buffer size should always account for a zero-terminator, but idioms
1176 such as using InputTextMultiline() with ImGuiInputTextFlags_ReadOnly to display
1177 a text blob are facilitated by allowing this.
1178- InputText: refactored internals to simplify and optimizing rendering of selection.
1179 Very large selection (e.g. 1 MB) now take less overhead.
1180- InputText: revert a change in 1.79 where pressing Down or PageDown on the last line
1181 of a multi-line buffer without a trailing carriage return would keep the cursor
1182 unmoved. We revert back to move to the end of line in this situation.
1183- InputText: fixed pressing End (without Shift) in a multi-line selection from
1184 mistakenly moving cursor based on selection start.
1185- Focus, InputText: fixed an issue where SetKeyboardFocusHere() did not work
1186 on InputTextMultiline() fields with ImGuiInputTextFlags_AllowTabInput, since
1187 they normally inhibit activation to allow tabbing through multiple items. (#8928)
1188- Selectable: added ImGuiSelectableFlags_SelectOnNav to auto-select an item when
1189 moved into, unless Ctrl is held. (automatic when in a BeginMultiSelect() block).
1190- TabBar: fixed an issue were forcefully selecting a tab using internal API would
1191 be ignored on first/appearing frame before tabs are submitted (#8929, #6681)
1192- DrawList: fixed CloneOutput() unnecessarily taking a copy of the ImDrawListSharedData
1193 pointer, which could to issue when deleting the cloned list. (#8894, #1860)
1194- DrawList: made AddCallback() assert when passing a null callback.
1195- Debug Tools: ID Stack Tool: fixed using fixed-size buffers preventing long identifiers
1196 from being displayed in the tool. (#8905, #4631)
1197- Debug Tools: ID Stack Tool: when ### is used, uncontributing prefix before the ###
1198 is now skipped. (#8904, #4631)
1199- Debug Tools: ID Stack Tool: added option to hex-encode non-ASCII characters in
1200 output path. (#8904, #4631)
1201- Debug Tools: ID Stack Tool: fixed a crash when using PushOverrideID(0) during
1202 a query. (#8937, #4631)
1203- Debug Tools: Fixed assertion failure when opening a combo box while using
1204 io.ConfigDebugBeginReturnValueOnce/ConfigDebugBeginReturnValueLoop. (#8931) [@harrymander]
1205- Demo: tweaked ShowFontSelector() and ShowStyleSelector() to update selection
1206 while navigating and to not close popup automatically.
1207- CI: Updates Windows CI to use a more recent VulkanSDK. (#8925, #8778) [@yaz0r]
1208- Examples: Android: Android+OpenGL3: update Gradle project (#8888, #8878) [@scribam]
1209- Examples: GLFW+OpenGL2, GLFW+Vulkan, GLFW+Metal, Win32+Vulkan: Fixed not applying
1210 content scale consistently with other examples. (#8921, #8756)
1211- Backends: GLFW: distinguish X11 vs Wayland to fix various scaling issues.
1212 (#8920, #8921) [@TheBrokenRail, @pthom, @ocornut]
1213 - window/monitor content scales are always reported as 1.0 on Wayland.
1214 - framebuffer scales are always reported as 1.0 on X11.
1215- Backends: SDL2: window/monitor content scales are always reported as 1.0 on Wayland.
1216 (#8920, #8921) [@TheBrokenRail, @pthom, @ocornut]
1217- Backends: SDL3: use SDL_GetWindowDisplayScale() on Mac to obtain DisplayFrameBufferScale,
1218 fixing incorrect values during resolution changes e.g. going fullscreen.
1219 (#8703, #4414) [@jclounge]
1220- Backends: SDL_GPU: Added ImGui_ImplSDLGPU3_InitInfo::SwapchainComposition and
1221 PresentMode to configure how secondary viewports are created. Currently only used
1222 multi-viewport mode. (#8892) [@PTSVU]
1223- Backends: Vulkan: added ImGui_ImplVulkan_CreateMainPipeline() to recreate pipeline
1224 without reinitializing backend. (#8110, #8111) [@SuperRonan]
1225
1226Docking+Viewports Branch:
1227
1228- DPI: fixed io.ConfigDpiScaleFonts from ever working since 1.92 (the irony
1229 being that it is when it started to make sense!). As a reminder, the option
1230 automatically copy the _current_ viewport DpiScale to style.FontScaleDpi.
1231 This is why we separated the style.FontScaleMain and style.FontScaleDpi scaling
1232 factor, as the later is meant to be overwritten. (#8832, #8465)
1233- DPI: Fixed obsoleted ImGuiConfigFlags_DpiEnableScaleFonts/_DpiEnableScaleViewports
1234 names from setting the equivalent io.ConfigDpiScaleFonts/io.ConfigDpiScaleViewports
1235 flag correctly (regression in 1.92).
1236- Docking, Style: added style.DockingNodeHasCloseButton option to hide the
1237 Close Button attached to each docking node. (#8933)
1238- Backends: GLFW: improve multi-viewport behavior in tiling WMs on X11.
1239 Note: using GLFW backend on Linux/BSD etc. requires linking with `-lX11`.
1240 (#8884, #8474, #8289, #2117) [@Ikos3k, @Madman10K]
1241
1242
1243-----------------------------------------------------------------------
1244 VERSION 1.92.2b (Released 2025-08-13)
1245-----------------------------------------------------------------------
1246
1247Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.2b
1248
1249Changes:
1250
1251- Fixed IsItemHovered() failing on disabled items and items that have no
1252 identifier (e.g. Text() calls) when holding mouse button. (#8877, #8883)
1253 [Regression in 1.92.2].
1254- Made IsItemHovered() on holding mouse button down on disabled items not
1255 leak between items when the window cannot be moved.
1256- Backends: Allegro5: Fixed texture format setup which didn't work on all
1257 setups/drivers. (#8770, #8465)
1258- Backends: Allegro5: Added ImGui_ImplAllegro5_SetDisplay() function to
1259 change current ALLEGRO_DISPLAY, as Allegro applications often need to do that.
1260- Backends: Allegro5: Fixed missing support for ImGuiKey_PrintScreen
1261 under Windows, as raw Allegro 5 does not receive it.
1262
1263Docking+Viewports Branch:
1264
1265- Fixed a bug where closing a viewport using OS facility (e.g. ALT+F4, Close Button)
1266 would erroneously close all windows located in the viewport, even ones docked
1267 into nested dockspaces. Only top-most windows should be closed. (#8887) [@lailoken]
1268
1269
1270-----------------------------------------------------------------------
1271 VERSION 1.92.2 (Released 2025-08-11)
1272-----------------------------------------------------------------------
1273
1274Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.2
1275
1276Breaking Changes:
1277
1278- Tabs: Renamed ImGuiTabBarFlags_FittingPolicyResizeDown to ImGuiTabBarFlags_FittingPolicyShrink.
1279 Kept inline redirection enum (will obsolete). (#261, #351)
1280- Backends: SDL_GPU3: changed ImTextureID type from SDL_GPUTextureSamplerBinding* to SDL_GPUTexture*,
1281 which is more natural and easier for user to manage. If you need to change the current sampler,
1282 you can access the ImGui_ImplSDLGPU3_RenderState struct. (#8866, #8163, #7998, #7988)
1283
1284Other Changes:
1285
1286- Fixed an old inconsistency between IsItemHovered() and internal hovering check,
1287 where IsItemHovered() would return true to mouse was first clicked on the
1288 background of a non-moveable window then moved over the item or button.
1289 Note that while it is consistent with other logic, there is a possibility
1290 that some third-party code may accidentally relied on this. One can always use
1291 ImGuiHoveredFlags_AllowWhenBlockedByActiveItem to bypass the active id check.
1292 (#8877) [@achabense, @ocornut]
1293- Fonts: fixed an issue when a font using MergeMode has a reference size
1294 specified but the target font doesn't. Usually either all fonts should
1295 have a reference size (only required when specifying e.g. GlyphOffset),
1296 or none should have a reference size.
1297- Fonts: fixed a crash when changing texture format when using a legacy
1298 backend. Most commonly would happen when calling GetTexDataAsRGBA32()
1299 then immediately calling GetTexDataAsAlpha8(). (#8824)
1300- Windows: fixed an issue where resizable child windows would emit border
1301 logic when hidden/non-visible (e.g. when in a docked window that is not
1302 selected), impacting code not checking for BeginChild() return value. (#8815)
1303- Textures: Fixed support for `#define ImTextureID_Invalid` to non-zero value:
1304 ImFontAtlas() was incorrectly cleared with zeroes. (#8860, #8745) [@cfillion]
1305- Tables: fixed TableGetRowIndex() which never correctly worked when using
1306 a clipper (it exists for consistency but is almost never used, as it is
1307 often more convenient to use index in caller-code, whereas TableGetRowIndex()
1308 includes header rows).
1309- Tables: fixed imgui_internal.h's TableGetHoveredRow() the same way. (#7350, #6588, #6250)
1310- Tabs: added new fitting policy ImGuiTabBarFlags_FittingPolicyMixed
1311 and made it the default. This policy shrink tab width down to a given amount,
1312 and then beyond that it enable scrolling buttons. (#3421, #8800)
1313- Tabs: added style.TabMinWidthShrink, ImGuiStyleVar_TabMinWidthShrink to
1314 control the width to shrink to in ImGuiTabBarFlags_FittingPolicyMixed mode.
1315 (#3421, #8800).
1316- Tabs: when scrolling is enabled, track selected tabs when resizing down
1317 parent container. This does not prevent to horizontally scroll it out of
1318 view during normal operations. (#3421, #8800)
1319- Tabs: added style.TabMinWidthBase, ImGuiStyleVar_TabMinWidthBase to control
1320 the base minimum width of a tab (default to 1.0f). This is the size before
1321 any potential shrinking is applied.
1322- Tabs: fixed tab bar underline not drawing below scroll buttons, when
1323 they are enabled (minor regression from 1.90). (#6820, #4859, #5022, #5239)
1324- Tabs: made scrolling buttons never keyboard/gamepad navigation candidates.
1325- Nav, Tables: fixed navigation within scrolling tables when item boundaries
1326 goes beyond columns limits. The fix done in 1.89.6 didn't work correctly
1327 on scrolling windows. (#8816, #2221)
1328- Nav: fixed a bug where ImGuiKey_NavGamepadMenu (==ImGuiKey_GamepadFaceLeft)
1329 button couldn't toggle between main and menu layers while navigating a Modal
1330 window. (#8834)
1331- Error Handling: minor improvements to error handling for TableGetSortSpecs()
1332 and TableSetBgColor() calls. (#1651, #8499)
1333- Misc: fixed building with IMGUI_DISABLE_DEBUG_TOOLS only. (#8796)
1334- Misc: fixed building with IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION. (#8794)
1335- Misc: removed more redundant inline static linkage from imgui_internal.h to
1336 facilitate using in C++ modules. (#8813, #8682, #8358) [@stripe2933]
1337- Misc: ImVector: skip memcpy in operator= if `Data` isn't initialized in order
1338 to play nice with -fsanitize=undefined. (#8874) [@i25e]
1339- CI: Added SDL3 builds to MacOS and Windows. (#8819, #8778) [@scribam]
1340- CI: Updated Windows CI to use a more recent SDL2. (#8819, #8778) [@scribam]
1341- Examples: SDL3+Metal: added SDL3+Metal example. (#8827, #8825) [@shi-yan]
1342- Examples: SDL3+SDL_GPU: use SDL_WaitAndAcquireGPUSwapchainTexture() instead
1343 of SDL_AcquireGPUSwapchainTexture(). (#8830) [@itsdanott]
1344- Examples: SDL3+SDL_GPU: use SDL_GPU_PRESENTMODE_VSYNC present mode.
1345- Backends: OpenGL3: add and call embedded loader shutdown in ImGui_ImplOpenGL3_Shutdown()
1346 to facilitate multiple init/shutdown cycles in same process. (#8792) [@tim-rex]
1347- Backends: OpenGL2, OpenGL3: set GL_UNPACK_ALIGNMENT to 1 before updating
1348 textures. (#8802) [@Daandelange]
1349- Backends: SDL_GPU3: expose current SDL_GPUSampler* in the ImGui_ImplSDLGPU3_RenderState
1350 struct. (#8866, #8163, #7998, #7988)
1351- Backends: Vulkan: Fixed texture update corruption introduced in 1.92.0,
1352 affecting some drivers/setups. (#8801, #8755, #8840) [@Retro52, @Miolith]
1353- Backends: Vulkan: Avoid calling vkCmdBindDescriptorSets() when texture
1354 has not changed. (#8666) [@micb25]
1355
1356Docking+Viewports Branch:
1357
1358- Windows, Viewport: fixed an issue where interrupting a viewport move with
1359 e.g. a ClearActiveID() call would leave the dragged viewport with the
1360 normally temporary ImGuiViewportFlags_NoInputs flag, preventing further
1361 interactions with the viewport. (#5324) (thanks @mdelaharpe)
1362- Viewports: added io.ConfigViewportPlatformFocusSetsImGuiFocus to opt-out
1363 of focusing imgui windows When a platform window is focused (e.g. using Alt+Tab,
1364 clicking Platform Title Bar). In principle this is better enabled but we
1365 provide an opt-out because some Linux window managers tend to eagerly focus
1366 windows (on e.g. mouse hover, or even on a simple window pos/size change).
1367 (#6299, #6462)
1368
1369
1370-----------------------------------------------------------------------
1371 VERSION 1.92.1 (Released 2025-07-09)
1372-----------------------------------------------------------------------
1373
1374Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.1
1375
1376Changes:
1377
1378- Fonts: added ImFontAtlas::SetFontLoader() to dynamically change font
1379 loader at runtime without using internal API. (#8752, #8465)
1380- Fonts: fixed a bug where dynamically changing font loader would lose
1381 the Fallback and Ellipsis glyphs under some circumstance. (#8763)
1382- Fonts: for large size fonts, layout/size calculation only load glyphs metrics.
1383 Actual glyphs are renderer+packed when used by drawing functions. (#8758, #8465)
1384- Fonts: set a maximum font size of 512.0f at ImGui:: API level to reduce
1385 edge cases (e.g. out of memory errors). ImDrawList:: API doesn't have the
1386 constraint. (#8758)
1387- Fonts: Restore ImFontConfig::FontNo being a 32-bits value as this is needed
1388 to pass full range of information into e.g. FreeType's face_index, as higher
1389 bits are used from FreeType 2.6.1. (#8775) [@Valakor]
1390 (the field has been erroneously reduced from 32-bits to 8-bit in 1.92.0)
1391- Fonts, Tables: fixed PushFont() having no effect when called after submitting
1392 a hidden column. (#8865)
1393- Textures: Fixed support for `#define ImTextureID_Invalid` to non-zero value:
1394 ImTextureData() was incorrectly cleared with zeroes. (#8745) [@rachit7645]
1395- Demo: Added "Text -> Font Size" demo section. (#8738) [@Demonese]
1396- CI: Fixed dllimport/dllexport tests. (#8757) [@AidanSun05]
1397- CI: Updated to use latest Windows image + VS2022.
1398- Debug Tools: added IMGUI_DEBUG_HIGHLIGHT_ALL_ID_CONFLICTS to detect
1399 id conflicts _before_ hovering. This is very slow and should only be used
1400 temporarily. (#8651, #7961, #7669)
1401- Examples: GLFW+OpenGL3, GLFW+WGPU: Emscripten Makefiles uses GLFW port
1402 'contrib.glfw3' which offers better HiDPI support. (#8742) [@pthom]
1403- Backends: GLFW, SDL2 made ImGui_ImplGLFW_GetContentScaleXXX() and
1404 ImGui_ImplSDL2_GetContentScaleXXXX() helpers return 1.0f on Emscripten
1405 and Android platforms, matching macOS logic. (#8742, #8733) [@pthom]
1406- Backends: SDL3: avoid calling SDL_StartTextInput() again if already active.
1407 (fixes e.g.: an issue on iOS where the keyboard animation will popup every
1408 time the user types a key + probably other things) (#8727) [@morrazzzz]
1409- Backends: OSX: added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress
1410 mouse cursor support. (#8739) [@cfillion]
1411- Backends: Allegro5: fixed texture update broken on some platforms where
1412 ALLEGRO_LOCK_WRITEONLY needed all texels to be rewritten. (#8770)
1413- Backends: Vulkan: use nonCoherentAtomSize to align upload_size, fixing
1414 validation error on some setups. (#8743, #8744) [@tquante]
1415- Backends: Vulkan: fixed texture synchronization issue introduced in 1.92.0,
1416 leading to validation layers reacting. (#8772) [@Majora320]
1417
1418Docking+Viewports Branch:
1419
1420- Backends: OSX: Fixed multi-viewport handling broken in 1.92.0. (#8644, #8777) [@cfillion]
1421
1422
1423-----------------------------------------------------------------------
1424 VERSION 1.92.0 (Released 2025-06-25)
1425-----------------------------------------------------------------------
1426
1427Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.92.0
1428
1429THIS VERSION CONTAINS THE LARGEST AMOUNT OF BREAKING CHANGES SINCE 2015!
1430I TRIED REALLY HARD TO KEEP THEM TO A MINIMUM, REDUCE THE AMOUNT OF INTERFERENCE,
1431BUT INEVITABLY SOME USERS OR THIRD-PARTY EXTENSIONS WILL BE AFFECTED.
1432
1433For instructions to upgrade your custom backend:
1434--> See https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md
1435
1436IN ORDER TO HELP US IMPROVE THE TRANSITION PROCESS, INCL. DOCUMENTATION AND COMMENTS,
1437PLEASE REPORT **ANY** DOUBT, CONFUSION, QUESTIONS, FEEDBACK TO:
1438 https://github.com/ocornut/imgui/issues/
1439If you are using custom widgets, internals or third-party extension that are somehow
1440breaking and aren't obvious how to solve, please post in Issues so we can gather
1441data and share solutions that may help others.
1442
1443As part of the plan to reduce impact of API breaking changes, several unfinished
1444changes/features/refactors related to font and text systems and scaling will be
1445part of subsequent releases (1.92.1+).
1446
1447If you are updating from an old version, and expecting a massive or difficult update,
1448consider first updating to 1.91.9 to reduce the amount of changes.
1449
1450Breaking changes:
1451
1452- Fonts: **IMPORTANT**: if your app was solving the OSX/iOS Retina screen specific
1453 logical vs display scale problem by setting io.DisplayFramebufferScale (e.g. to 2.0f)
1454 + setting io.FontGlobalScale (e.g. to 1.0f/2.0f) + loading fonts at scaled sizes (e.g. size X * 2.0f):
1455 - This WILL NOT map correctly to the new system! Because font will rasterize as requested size.
1456 - With a legacy backend (< 1.92):
1457 - Instead of setting io.FontGlobalScale = 1.0f/N -> set ImFontCfg::RasterizerDensity = N.
1458 - This already worked before, but is now pretty much required.
1459 - With a new backend (1.92+),
1460 - This should be all automatic.
1461 - FramebufferScale is automatically used to set current font RasterizerDensity.
1462 - FramebufferScale is a per-viewport property provided by backend through the
1463 Platform_GetWindowFramebufferScale() handler in 'docking' branch.
1464- Fonts: **IMPORTANT** on Font Sizing:
1465 - Before 1.92, fonts were of a single size. They can now be dynamically sized.
1466 - PushFont() API now has a REQUIRED size parameter.
1467 void PushFont(ImFont* font) --> void PushFont(ImFont* font, float size);
1468 - PushFont(font, 0.0f) // Change font and keep current size
1469 - PushFont(NULL, 20.0f) // Keep font and change current size
1470 - PushFont(font, 20.0f) // Change font and set size to 20.0f
1471 - PushFont(font, style.FontSizeBase * 2.0f) // Change font and set size to be twice bigger than current size.
1472 - PushFont(font, font->LegacySize) // Change font and set size to size passed to AddFontXXX() function. Same as pre-1.92 behavior, for fixed size fonts.
1473 - To use old behavior use 'ImGui::PushFont(font, font->LegacySize)' at call site.
1474 We intentionally didn't add a default parameter because it would make the long-term
1475 transition more difficult.
1476 - Kept inline redirection font. Will obsolete.
1477 - Global scale factors may be applied over the provided size.
1478 This is why it is called 'FontSizeBase' in the style structure.
1479 - Global scale factors are: 'style.FontScaleMain', 'style.FontScaleDpi' and maybe more.
1480 - ImFont::FontSize was removed and does not make sense anymore.
1481 - ImFont::LegacySize is the size passed to AddFont().
1482 - Removed support for old PushFont(NULL) which was a shortcut for "revert to default font".
1483 `PushFont(NULL, some_size)` now keeps current change and changes size.
1484 - Renamed/moved 'io.FontGlobalScale' to 'style.FontScaleMain'.
1485- Fonts: **IMPORTANT** on Font Merging:
1486 - When searching for a glyph in multiple merged fonts: we search for the FIRST font source
1487 which contains the desired glyph. Because the user doesn't need to provide glyph ranges
1488 any more, it is possible that a glyph that you expected to fetch from a secondary/merged
1489 icon font may be erroneously fetched from the primary font.
1490 - We added `ImFontConfig::GlyphExcludeRanges[]` to specify ranges to exclude from a given font source:
1491 // Add Font Source 1 but ignore ICON_MIN_FA..ICON_MAX_FA range
1492 static ImWchar exclude_ranges[] = { ICON_MIN_FA, ICON_MAX_FA, 0 };
1493 ImFontConfig cfg1;
1494 cfg1.GlyphExcludeRanges = exclude_ranges;
1495 io.Fonts->AddFontFromFileTTF("segoeui.ttf", 0.0f, &cfg1);
1496 // Add Font Source 2, which expects to use the range above
1497 ImFontConfig cfg2;
1498 cfg2.MergeMode = true;
1499 io.Fonts->AddFontFromFileTTF("FontAwesome4.ttf", 0.0f, &cfg2);
1500 - You can use `Metrics/Debugger->Fonts->Font->Input Glyphs Overlap Detection Tool` to
1501 see list of glyphs available in multiple font sources. This can facilitate understanding
1502 which font input is providing which glyph.
1503- Fonts: **IMPORTANT** on Thread Safety:
1504 - A few functions such as font->CalcTextSizeA() were by sheer luck (== accidentally)
1505 thread-safe even though we had never provided that guarantee before. They are
1506 definitively not thread-safe anymore as new glyphs may be loaded.
1507
1508- Textures:
1509 - All API functions taking a 'ImTextureID' parameter are now taking a 'ImTextureRef':
1510 - ImTextureRef ais small composite structure which may be constructed from a ImTextureID.
1511 (or constructed from a ImTextureData* which represent a texture which will generally
1512 be ready by the time of rendering).
1513 - Affected functions are:
1514 - ImGui::Image(), ImGui::ImageWithBg(), ImGui::ImageButton(),
1515 - ImDrawList::AddImage(), ImDrawList::AddImageQuad(), ImDrawList::AddImageRounded().
1516 - We suggest that C users and any higher-level language bindings generators may
1517 facilitate converting this in some way, aka emulating the trivial C++ constructor.
1518- Fonts: obsoleted ImFontAtlas::GetTexDataAsRGBA32(), GetTexDataAsAlpha8(), Build(), SetTexID()
1519 and IsBuilt() functions. The new protocol for backends to handle textures doesn't need them.
1520 Kept redirection functions (will obsolete).
1521 - A majority of old backends should still work with new code (behaving like they did before).
1522 - For instructions to upgrade your custom backend:
1523 https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md
1524 - Calling ImFontAtlas::Build() before initializing new backends will erroneously trigger
1525 preloading all glyphs. Will be detected with an assertion after the backend is initialized.
1526- Fonts: ImFontConfig::OversampleH/OversampleV default to automatic (== 0)
1527 since v1.91.8. It is quite important you keep it automatic until we decide if we want
1528 to provide a way to express finer policy, otherwise you will likely waste texture space
1529 when using large glyphs. Note that the imgui_freetype backend doesn't use and does not
1530 need oversampling.
1531- Fonts: specifying glyph ranges is now unnecessary.
1532 - The value of ImFontConfig::GlyphRanges[] is only useful for legacy backends.
1533 - All GetGlyphRangesXXXX() functions are now marked obsolete:
1534 - GetGlyphRangesDefault(), GetGlyphRangesGreek(), GetGlyphRangesKorean(),
1535 GetGlyphRangesJapanese(), GetGlyphRangesChineseSimplifiedCommon(),
1536 GetGlyphRangesChineseFull(), GetGlyphRangesCyrillic(),
1537 GetGlyphRangesThai(), GetGlyphRangesVietnamese().
1538- Fonts: removed ImFontAtlas::TexDesiredWidth to enforce a texture width. (#327)
1539 (it vaguely made sense with the old system as if unspecified textures width maxed up
1540 to 4096 but that limit isn't necessary anymore, and Renderer_TextureMaxWidth covers this)
1541 However you may set TexMinWidth = TexMaxWidth for the same effect.
1542- Fonts: if you create and manage ImFontAtlas instances yourself (instead of relying on
1543 ImGuiContext to create one), you'll need to call ImFontAtlasUpdateNewFrame() yourself.
1544 An assert will trigger if you don't.
1545- Fonts: obsoleted ImGui::SetWindowFontScale() which is not useful anymore. Prefer using
1546 PushFont(NULL, style.FontSizeBase * factor) or to manipulate other scaling factors.
1547- Fonts: obsoleted ImFont::Scale which is not useful anymore.
1548- Fonts: changed ImFont::CalcWordWrapPositionA() to ImFont::CalcWordWrapPosition():
1549 - old: const char* CalcWordWrapPositionA(float scale, const char* text, ....);
1550 - new: const char* CalcWordWrapPosition (float size, const char* text, ....);
1551 The leading 'float scale' parameters was changed to 'float size'.
1552 This was necessary as 'scale' is assuming a unique font size.
1553 Kept inline redirection function assuming using font->LegacySize.
1554- Fonts: generally reworked Internals of ImFontAtlas and ImFont.
1555 While in theory a vast majority of users shouldn't be affected, some use cases or
1556 extensions might be. Among other things:
1557 - ImDrawCmd::TextureId has been changed to ImDrawCmd::TexRef.
1558 - ImFontAtlas::TexID has been changed to ImFontAtlas::TexRef.
1559 - ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[].
1560 - ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourceCount.
1561 - Each ImFont has a number of ImFontBaked instances corresponding to actively used
1562 sizes. ImFont::GetFontBaked(size) retrieves the one for a given size.
1563 - Fields moved from ImFont to ImFontBaked:
1564 - ImFont::IndexAdvanceX[] -> ImFontBaked::IndexAdvanceX[]
1565 - ImFont::Glyphs[] -> ImFontBaked::Glyphs[]
1566 - ImFont::Ascent, Descent -> ImFontBaked::Ascent, Descent
1567 - ImFont::FindGlyph() -> ImFontBaked::FindGlyph()
1568 - ImFont::FindGlyphNoFallback() -> ImFontBaked::FindGlyphNoFallback()
1569 - ImFont::GetCharAdvance() -> ImFontBaked::GetCharAdvance()
1570 - Widget code may use ImGui::GetFontBaked() instead of ImGui::GetFont() to
1571 access font data for current font at current font size.
1572 (and you may use font->GetFontBaked(size) to access it for any other size.)
1573 g.Font == ImGui::GetFont()
1574 g.FontSize == ImGui::GetFontSize()
1575 g.FontBaked == ImGui::GetFontBaked() == ImGui::GetFont()->GetFontBaked(ImGui::GetFontSize())
1576 - Fields moved from ImFontAtlas to ImTextureData
1577 - ImFontAtlas->TexWidth -> ImFontAtlas->TexData->Width
1578 - ImFontAtlas->TexHeight -> ImFontAtlas->TexData->Height
1579 - ImFontAtlas->TexPixelsAlpha8 -> ImFontAtlas->TexData->GetPixels() (when ImFontAtlas::TexDesiredFormat == ImTextureFormat_Alpha8)
1580 - ImFontAtlas->TexPixelsRGBA32 -> ImFontAtlas->TexData->GetPixels() (when ImFontAtlas::TexDesiredFormat == ImTextureFormat_RGBA32)
1581 Please report if you are affected!
1582- Fonts: (users of imgui_freetype)
1583 - renamed ImFontAtlas::FontBuilderFlags to ImFontAtlas::FontLoaderFlags.
1584 - renamed ImFontConfig::FontBuilderFlags to ImFontConfig::FontLoaderFlags.
1585 - renamed ImGuiFreeTypeBuilderFlags to ImGuiFreeTypeLoaderFlags.
1586 - if you used runtime imgui_freetype selection rather than the default compile-time
1587 option provided by IMGUI_ENABLE_FREETYPE:
1588 - renamed/reworked ImFontBuilderIO into ImFontLoader,
1589 - renamed ImGuiFreeType::GetBuilderForFreeType() to ImGuiFreeType::GetFontLoader()
1590 - old: io.Fonts->FontBuilderIO = ImGuiFreeType::GetBuilderForFreeType()
1591 - new: io.Fonts->FontLoader = ImGuiFreeType::GetFontLoader()
1592- DrawList: Renamed ImDrawList::PushTextureID()/PopTextureID() to PushTexture()/PopTexture().
1593- Fonts: (users of custom rectangles)
1594 - Renamed AddCustomRectRegular() to AddCustomRect(). (#8466)
1595 - Added GetCustomRect() as a replacement for GetCustomRectByIndex() + CalcCustomRectUV(). (#8466)
1596 - The output type of GetCustomRect() is now ImFontAtlasRect, which include UV coordinates.
1597 - ImFontAtlasCustomRect::X --> ImFontAtlasRect::x
1598 - ImFontAtlasCustomRect::Y --> ImFontAtlasRect::y
1599 - ImFontAtlasCustomRect::Width --> ImFontAtlasRect::w
1600 - ImFontAtlasCustomRect::Height --> ImFontAtlasRect::h
1601 Before:
1602 const ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(custom_rect_id);
1603 ImVec2 uv0, uv1;
1604 atlas->GetCustomRectUV(r, &uv0, &uv1);
1605 ImGui::Image(atlas->TexRef, ImVec2(r->w, r->h), uv0, uv1);
1606 After:
1607 ImFontAtlasRect r;
1608 atlas->GetCustomRect(custom_rect_id, &r);
1609 ImGui::Image(atlas->TexRef, ImVec2(r.w, r.h), r.uv0, r.uv1);
1610 We added a redirecting typedef but haven't attempted to magically redirect
1611 the field names, as this API is rarely used and the fix is simple.
1612 - Obsoleted AddCustomRectFontGlyph() as the API does not make sense for scalable fonts:
1613 - Kept existing function which uses the font "default size" (Sources[0]->LegacySize).
1614 - Added a helper AddCustomRectFontGlyphForSize() which is immediately marked obsolete,
1615 but can facilitate transitioning old code.
1616 - Prefer adding a font source (ImFontConfig) using a custom/procedural loader.
1617- Backends: removed ImGui_ImplXXXX_CreateFontsTexture()/ImGui_ImplXXXX_DestroyFontsTexture()
1618 for all backends that had them. They should not be necessary any more.
1619 - removed ImGui_ImplMetal_CreateFontsTexture(), ImGui_ImplMetal_DestroyFontsTexture().
1620 - removed ImGui_ImplOpenGL2_CreateFontsTexture(), ImGui_ImplOpenGL2_DestroyFontsTexture().
1621 - removed ImGui_ImplOpenGL3_CreateFontsTexture(), ImGui_ImplOpenGL3_DestroyFontsTexture().
1622 - removed ImGui_ImplSDLGPU3_CreateFontsTexture(), ImGui_ImplSDLGPU3_DestroyFontsTexture().
1623 - removed ImGui_ImplSDLRenderer2_CreateFontsTexture(), ImGui_ImplSDLRenderer2_DestroyFontsTexture().
1624 - removed ImGui_ImplSDLRenderer3_CreateFontsTexture(), ImGui_ImplSDLRenderer3_DestroyFontsTexture().
1625 - removed ImGui_ImplVulkan_CreateFontsTexture(), ImGui_ImplVulkan_DestroyFontsTexture().
1626- Layout: commented out legacy ErrorCheckUsingSetCursorPosToExtendParentBoundaries() fallback
1627 obsoleted in 1.89 (August 2022) which allowed a SetCursorPos()/SetCursorScreenPos() call WITHOUT AN ITEM
1628 to extend parent window/cell boundaries. Replaced with assert/tooltip that would already happens if
1629 previously using IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#5548, #4510, #3355, #1760, #1490, #4152, #150)
1630 - Incorrect way to make a window content size 200x200:
1631 Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End();
1632 - Correct ways to make a window content size 200x200:
1633 Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End();
1634 Begin(...) + Dummy(ImVec2(200,200)) + End();
1635 - TL;DR; if the assert triggers, you can add a Dummy({0,0}) call to validate extending parent boundaries.
1636- TreeNode: renamed ImGuiTreeNodeFlags_NavLeftJumpsBackHere to ImGuiTreeNodeFlags_NavLeftJumpsToParent
1637 for clarity. Kept inline redirection enum (will obsolete). (#1079, #8639)
1638- Commented out PushAllowKeyboardFocus()/PopAllowKeyboardFocus() which was obsoleted
1639 in 1.89.4 (March 2023). (#3092)
1640 - PushAllowKeyboardFocus(bool tab_stop) --> PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop);
1641 - PopAllowKeyboardFocus() --> PopItemFlag().
1642- Commented out ImGuiListClipper::ForceDisplayRangeByIndices() which was obsoleted
1643 in 1.89.6 (June 2023).
1644 - ForceDisplayRangeByIndices() --> IncludeItemsByIndex()
1645- Backends: SDL3: Fixed casing typo in function name: (#8509, #8163, #7998, #7988) [@puugz]
1646 - Imgui_ImplSDLGPU3_PrepareDrawData() --> ImGui_ImplSDLGPU3_PrepareDrawData()
1647- Internals: RenderTextEllipsis() function removed the 'float clip_max_x' parameter directly
1648 preceding 'float ellipsis_max_x'. Values were identical for a vast majority of users. (#8387)
1649- [Docking] renamed/moved ImGuiConfigFlags_DpiEnableScaleFonts -> bool io.ConfigDpiScaleFonts.
1650- [Docking] renamed/moved ImGuiConfigFlags_DpiEnableScaleViewports -> bool io.ConfigDpiScaleViewports.
1651 **Neither of those flags are very useful in current code. They will be useful once we merge font changes.**
1652
1653Non-breaking Fonts/Textures related changes:
1654
1655- Textures: added partial texture update protocol. (#8465, #3761)
1656 - The Renderer Backend needs to set io.BackendFlags |= ImGuiBackendFlags_RendererHasTextures
1657 and handle texture updates requests.
1658 - New structs: ImTextureData, ImTextureRect.
1659 - New enums: ImTextureStatus, ImTextureFormat.
1660 - During its ImGui_ImplXXXX_RenderDrawData() call, the backend can now access a texture list
1661 in ImDrawData::Textures[]. Textures may have four distinct states:
1662 - ImTextureStatus_WantCreate: requesting backend to create a texture.
1663 - ImTextureStatus_WantUpdates: requesting backend to copy given blocks from the CPU side
1664 copy of the texture to your graphics pipeline.
1665 A 'tex->Updates[]' list of update is provided as well as a single 'tex->UpdatesRect' bounding box.
1666 - ImTextureStatus_WantDestroy: requesting backend to destroy the texture.
1667 - A 'int UnusedFrames' value is provided to conveniently defer destroying.
1668 - Backend is generally free to destroy textures whenever they like.
1669 - ImTextureStatus_OK: nothing to do.
1670 - Almost all standard backends have been updated to support this.
1671 - Backends have allowed to destroy textures at any time if they desire so.
1672 A list is available in platform_io.Textures[] for this purpose and for backend shutdown.
1673 - Both stb_truetype and FreeType backends have been updated to work with the new
1674 system, and they now share more code than before.
1675 - Added '#define IMGUI_HAS_TEXTURES' to facilitate compile-time checks for third-party
1676 extensions until this is merged with a definitive version number to check.
1677- Fonts: font backend/loader may easily be changed dynamically, allowing users to compare
1678 rasterizers outputs and features. imgui_freetype is generally beneficial.
1679- Fonts: ImFontAtlas::AddFontXXX() functions may be called at any time during the frame.
1680- Fonts: ImFontAtlas::AddFontXXX() can fail more gracefully if error handling is configured
1681 to not assert (this will be better exposed via future font flags).
1682- Fonts: added style.FontScaleBase scaling factor (previously called io.FontGlobalScale).
1683- Fonts: added style.FontScaleDpi scaling factor. This is designed to be be changed on
1684 per-monitor/per-viewport basis, which `io.ConfigDpiScaleFonts` does automatically.
1685 (which is why it is separate from FontScaleBase).
1686- Fonts: added optional font_size parameter to ImGui::PushFont() function.
1687- Fonts: added ImFontAtlas::RemoveFont() function.
1688- Fonts: added ImFontAtlas::CompactCache() function.
1689- Fonts: added ImFontAtlas::TexDesiredFormat field (default to ImTextureFormat_RGBA32,
1690 can be changed to ImTextureFormat_Alpha8).
1691- Fonts: added ImFontAtlas::TexMinWidth, TexMinHeight, TexMaxWidth, TexMaxHeight fields.
1692- Fonts: added ImFontConfig::PixelSnapV to align scaled GlyphOffset.y to pixel boundaries.
1693- Fonts: added ImFontConfig::GlyphExcludeRanges[], which behave similarly to
1694 ImFontConfig::GlyphRanges[], but has the opposite meaning. It is tailored to situations
1695 where merged fonts have overlapping characters.
1696- Fonts: added "Input Glyphs Overlap Detection Tool" which dumps a list of glyphs
1697 provided by merged sources, which may help setting up a GlyphExcludeRanges[] filter.
1698- Fonts: added ImFontAtlas::FontBackendName (which is surfaced in the "About Dear ImGui"
1699 window and other locations).
1700- Fonts: added ImFontFlags (currently needs to be passed through ImFontConfig until
1701 we revamp font loading API):
1702 - ImFontFlags_NoLoadError: disable erroring/assert when calling AddFontXXX()
1703 with missing file/data. Calling code is expected to check AddFontXXX() return value.
1704 - ImFontFlags_NoLoadGlyphs: disable loading new glyphs.
1705 - ImFontFlags_LockBakedSizes: disable loading new baked sizes, disable garbage
1706 collecting current ones. e.g. if you want to lock a font to a single size.
1707- Fonts: the general design has changed toward meaning that a ImFont doesn't have
1708 have a specific size: it may be bound and drawn with any size.
1709 - We store ImFontBaked structures internally, which are a cache of information
1710 for a given size being drawn. You should not need to deal with ImFontBaked directly.
1711 - ImFontBaked structures may be cleaned up between frames when unused, pointers
1712 to them are only valid for the current frame.
1713 - Added ImFontBaked::IsGlyphLoaded() function.
1714- Fonts: Custom Rect packing has generally been reworked. (#8107, #7962, #1282)
1715 - ImFontAtlas::AddCustomRect() (previously AddCustomRectRegular()/AddCustomRectFontGlyph())
1716 functions will immediately return a packed rectangle identifier, and you can write your
1717 pixels immediately - previously had to wait for Build() to be called.
1718 This is also the case when using a legacy backend.
1719 - Custom packed rectangles may be moved during a texture change, aka practically anytime.
1720 Always refer to latest uvs/position returned by GetCustomRect().
1721 - AddCustomRect() returns ImFontAtlasRectId_Invalid on failure.
1722 - Added ImFontAtlas::RemoveCustomRect() function.
1723 - GetCustomRect() can safely return false and not crash when passed an invalid or removed id.
1724- Fonts: texture is now stored in a single format CPU side (save ~25% when using RGBA).
1725- Fonts: changing current font to one from a different atlas is supported. (#8080)
1726- Fonts: automatic baking of an "..." ellipsis works better with monospace fonts.
1727- Fonts: each ImFontConfig font source may provide a custom backend/loader.
1728- Fonts: added platform_io.Renderer_TextureMaxWidth/Renderer_TextureMaxHeight fields
1729 for Renderer Backend to specify if there is a maximum accepted texture size (not yet used).
1730- Fonts: added compile-time overridable '#define ImTextureID_Invalid 0' if you need 0
1731 to be a valid low-level texture identifier.
1732- Fonts: reworked text ellipsis logic to ensure a "..." is always displayed instead
1733 of a single character. (#7024)
1734- Fonts: word-wrapping code handle ideographic comma & full stop (U+3001, U+3002). (#8540)
1735- Fonts: fixed CalcWordWrapPosition() fallback when width is too small to wrap:
1736 would use a +1 offset instead of advancing to the next UTF-8 codepoint. (#8540)
1737- Debug Tools: Fonts section: add font preview, add "Remove" button, add "Load all glyphs"
1738 button, add selection to change font backend when both are compiled in.
1739- Renderer Backends:
1740 - Backends: DX9/DX10/DX11/DX12, Vulkan, OpenGL2/3, Metal, SDLGPU3, SDLRenderer2/3, WebGPU, Allegro5:
1741 - Added ImGuiBackendFlags_RendererHasTextures support for all backends. (#8465, #3761, #3471)
1742 [@ocornut, @ShironekoBen, @thedmd]
1743 - Added ImGui_ImplXXXX_UpdateTexture(ImTextureData* tex) functions for all backends.
1744 Available if you want to start uploading textures right after ImGui::Render() and without
1745 waiting for the call to ImGui_ImplXXXX_RenderDrawData(). Also useful if you use a staged or
1746 multi-threaded rendering schemes, where you might want to set ImDrawData::Textures = NULL. (#8597, #1860)
1747- Special thanks for fonts/texture related feedback to: @thedmd, @ShironekoBen, @rodrigorc,
1748 @pathogendavid, @itamago, @rokups, @DucaRii, @Aarkham, @cyfewlp.
1749
1750Other Changes:
1751
1752- IO: variations in analog-only components of gamepad events do not interfere
1753 with trickling of mouse position events (#4921, #8508)
1754- Windows: fixed SetNextWindowCollapsed()/SetWindowCollapsed() bypassing the
1755 codepath that preserve last contents size when collapsed, resulting in
1756 programmatically uncollapsing auto-sizing windows having them flicker size
1757 for a frame. (#7691) [@achabense]
1758- Windows: clicking on a window close button doesn't claim focus and bring to front. (#8683)
1759- Windows: loosened code to allow hovering of resize grips, borders, and table
1760 borders while hovering a sibling child window, so that the code in master matches
1761 one in docking (they accidentally diverged). (#8554)
1762- Windows: BeginChild(): fixed being unable to combine manual resize on one axis
1763 and automatic resize on the other axis. (#8690)
1764 e.g. neither ImGuiChildFlags_ResizeX | ImGuiChildFlags_AutoResizeY
1765 or ImGuiChildFlags_ResizeY | ImGuiChildFlags_AutoResizeX worked before.
1766- TreeNode: added experimental flags to draw tree hierarchy outlines linking
1767 parent and tree nodes: (#2920)
1768 - ImGuiTreeNodeFlags_DrawLinesNone: No lines drawn (default value in style.TreeLinesFlags).
1769 - ImGuiTreeNodeFlags_DrawLinesFull: Horizontal lines to child nodes. Vertical line drawn down to TreePop() position: cover full contents.
1770 - ImGuiTreeNodeFlags_DrawLinesToNodes: Horizontal lines to child nodes. Vertical line drawn down to bottom-most child node.
1771 - Added style.TreeLinesFlags which stores the default setting,
1772 which may be overridden in individual TreeNode() calls.
1773 - Added style.TreeLinesSize (default to 1.0f).
1774 - Added style.TreeLinesRadius (default to 0.0f).
1775 - Added ImGuiCol_TreeLines (in default styles this is the same as ImGuiCol_Border).
1776 - Caveats:
1777 - Tree nodes may be used in many creative ways (manually positioning openable
1778 nodes in unusual ways, using indent to create tree-looking structures, etc.)
1779 and the feature may not accurately represent them in every cases.
1780 - The feature adds a little cost as extra data needs to be stored.
1781 (ImGuiTreeNodeFlags_DrawLinesToNodes is slower than ImGuiTreeNodeFlags_DrawLinesFull
1782 which may be meaningful on very large trees, as it needs to record bottom-most
1783 Y position even for clipped nodes).
1784 - The feature is unlikely to ever work properly when using a coarse clipper
1785 such as ImGuiListClipper.
1786- TreeNode: fixed incorrect clipping of arrow/bullet when using ImGuiTreeNodeFlags_SpanAllColumns.
1787- InputText: fixed cursor positioning issue using up/down keys near end of lines while
1788 editing non-ASCII text. (Regression from 1.91.2) (#8635, #7925)
1789- InputText: fixed a buffer overrun that could happen when using dynamically resizing
1790 buffers (e.g. imgui_stdlib.cpp for std::string, or ImGuiInputTextFlags_CallbackRezize)
1791 and programmatically making an insertion. (#8689) [@ocornut, @m9710797]
1792- Tables: fixed TableHeader() eager vertical clipping of text which may be noticeable
1793 with FramePadding.y was too small. (#6236)
1794- Tables: fixed an assert when combining Tables, Frozen Rows, Clipper and BeginMultiSelect()
1795 in a certain order. (#8595, #8250)
1796- Tabs: fixes small issues with how "..." ellipsis moved depending on visibility
1797 of Close Button or Unsaved Document marker. (#8387)
1798- Tooltips: tooltips have a maximum size corresponding to host display/monitor size,
1799 which mitigates edge case issues in multi-viewport scenarios where abnormally large
1800 windows (e.g. determined programmatically) can lead to renderer backend trying to
1801 create abnormally large framebuffers.
1802- TextLinkOpenURL(): added bool return value on click. (#8645, #8451, #7660)
1803- Scroll: fixed contents size, scrollbar visibility and scrolling resetting issues
1804 with abnormally large contents ranges. (#3609, #8215)
1805- Clipper: some mitigation/improvements for abnormally large contents ranges. (#3609, #8215)
1806- Nav: fixed assertion when holding gamepad FaceLeft/West button to open
1807 CTRL+Tab windowing + pressing a keyboard key. (#8525)
1808- Nav: fixed scroll fallback (when there are no interactive widgets to jump to) not
1809 being enabled on windows with menu or title bar.
1810- Nav: fixed an issue handling PageUp/PageDown on windows with abnormally large contents
1811 range which could lead to clipper requesting very large ranges.
1812- Error Handling: added better error report and recovery for extraneous
1813 EndPopup() call. (#1651, #8499)
1814- Error Handling: added better error report and recovery when calling EndFrame()
1815 or Render() without NewFrame(). Was previously only an assert.
1816- Style, InputText: added ImGuiCol_InputTextCursor to configure color of
1817 the InputText cursor/caret. (#7031)
1818- Platform IME: added ImGuiPlatformImeData::ViewportId info (backported from Docking branch).
1819- Platform IME: added ImGuiPlatformImeData::WantTextInput which might set independently
1820 of WantVisible. This is set in the same structure because activating text input generally
1821 requires providing a window to the backend. (#8584, #6341)
1822- DrawList: Fixed a regression from 1.91.1 where a Begin()/PushFont()/AddImage() sequence
1823 would not restore the correct atlas Texture Identifier when the PushFont() call used
1824 a font from a different atlas. (#8694, caused by #3224, #3875, #6398, #7903)
1825- Misc: added extra operators to ImVec4 in IMGUI_DEFINE_MATH_OPERATORS block. (#8510) [@gan74]
1826- Misc: removed static linkage from operators to facilitate using in C++ modules. (#8682, #8358) [@johmani]
1827- Demo: changed default framed item width to use Min(GetFontSize() * 12, GetContentRegionAvail().x * 0.40f).
1828- Renderer Backends:
1829 - Backends: SDLGPU3: Fixed creating atlas texture earlier than other backends, preventing
1830 to load fonts between the Init and NewFrames calls.
1831 - Backends: SDLGPU3: Made ImGui_ImplSDLGPU3_PrepareDrawData() reuse GPU Transfer Buffers which
1832 were unusually slow to recreate every frame. Much faster now. (#8534) [@ocornut, @TheMode]
1833 - Backends: SDLGPU3: added support for ImDrawCallback_ResetRenderState. (#8599)
1834 - Backends: OpenGL3: made GLES 3.20 contexts not access GL_CONTEXT_PROFILE_MASK nor
1835 GL_PRIMITIVE_RESTART. (#8664) [@DyXel]
1836 - Backends: DirectX12: Fixed build on MinGW. (#8702, #4594) [@playday3008]
1837 - Backends: DirectX10, DirectX11, DirectX12: Honor FramebufferScale to allow for custom
1838 platform backends and experiments using it (consistently with other renderer backends,
1839 even though in normal condition it is not set under Windows). (#8412) [@WSSDude]
1840 - Backends: Vulkan: Deep-copy ImGui_ImplVulkan_InitInfo::PipelineRenderingCreateInfo's
1841 pColorAttachmentFormats buffer when set, in order to reduce common user-error of
1842 specifying a pointer to data that gets out of scope. (#8282)
1843 - Backends: Vulkan: Load dynamic rendering functions using vkGetDeviceProcAddr()
1844 + try both non-KHR and KHR versions. (#8600, #8326, #8365) [@ChrisTom-94]
1845 - Backends: Vulkan: fixed validation errors in window create/resize helpers used by examples
1846 and by multi-viewports implementation, which would typically trigger errors while detaching
1847 secondary viewports. (#8600, #8176) [@ChrisTom-94]
1848- Platform Backends:
1849 - Backends: GLFW: added ImGui_ImplGlfw_GetContentScaleForMonitor(), ImGui_ImplGlfw_GetContentScaleForWindow()
1850 helpers. They are wrappers to glfwGetMonitorContentScale()/glfwGetWindowContentScale(), with compile-time
1851 GLFW version checks + returning 1.0f on Apple platform.
1852 - Backends: GLFW: Added support for multiple Dear ImGui contexts. (#8676, #8239, #8069)
1853 - Backends: SDL2: added ImGui_ImplSDL2_GetDpiScaleForDisplay() and ImGui_ImplSDL2_GetContentScaleForWindow()
1854 helpers. They are wrappers to SDL_GetDisplayDPI(), with compile-time SDL version checks + returning 1.0f
1855 on Apple platforms. SDL3 already does this by default.
1856 - Backends: Win32: Fixed an issue where externally losing mouse capture (due to e.g. focus loss)
1857 would fail to claim it again the next subsequent click. (#8594)
1858 - Backends: SDL2, SDL3, OSX: Fill gamepad inputs and set ImGuiBackendFlags_HasGamepad
1859 regardless of ImGuiConfigFlags_NavEnableGamepad being set. (#8508)
1860 - Backends: SDL2, SDL3: don't attempt to call SDL_CaptureMouse() on drivers where we don't
1861 call SDL_GetGlobalMouseState(). This is specifically for Wayland but we currently use
1862 the same white-list as SDL_GetGlobalMouseState(). (#8561) [@vs49688]
1863 - Backends: GLFW, SDL2, SDL3: include GLFW/SDL version number in io.BackendPlatformName.
1864 - Backends: SDL3: Update for SDL3 api changes: revert SDL_GetClipboardText()
1865 memory ownership change. (#8530, #7801) [@Green-Sky]
1866 - Backends: SDL3: honor ImGuiPlatformImeData::WantTextInput as an alternative
1867 way to call SDL_StartTextInput(), without IME being necessarily visible. (#8584)
1868 - Backends: SDL3: fixed pulling SDL_PROP_WINDOW_COCOA_WINDOW_POINTER into
1869 viewport->PlatformHandleRaw. (#8725, #8726) [@eertbleyen]
1870 - Backends: OSX: ImGui_ImplOSX_HandleEvent() only process event for window containing
1871 our view. (#8644) [@BingoXuan]
1872- Examples:
1873 - Examples: Made many examples DPI aware by default.
1874 The single-viewport is basically:
1875 - Query monitor DPI scale. Helpers are provided in some backends.
1876 - Call style.ScaleAllSizes() and set style.FontScaleDpi with this factor.
1877 Multi-viewport applications may set both of those flags:
1878 - io.ConfigDpiScaleFonts = true;
1879 - io.ConfigDpiScaleViewports = true;
1880 Which will scale fonts but NOT style padding/spacings/thicknesses yet.
1881 - Examples: Apple+Metal, Apple+OpenGL: add Makefile (CLion opens them nicely). (#8637) [@pthom]
1882 - Examples: DirectX12+Win32: also test for IsIconic() for sleeping since we don't seem to
1883 get a DXGI_STATUS_OCCLUDED signal when minimized. (#8603) [@dooann]
1884
1885Docking+Viewports Branch:
1886
1887- Viewports: added per-viewport FramebufferScale for Retina display multi-monitor support.
1888 Backend must provide platform_io.platform_io.Platform_GetWindowFramebufferScale handler.
1889 This effectively fixes clipping/rendering on multi-monitors with varying Retina scale.
1890 (#1065, #1542, #1676, #1786, #2826, #3757, #5081, #5580, #5592, #6465, #7273, #7779 etc.)
1891- Viewports: fixed handling of simultaneous move + resize (e.g. toggling maximized)
1892 when ImGuiConfigFlags_DpiEnableScaleViewports is enabled.
1893- Backends: Win32: Viewports: fixed an issue when closing a window from
1894 the OS close button (with io.ConfigViewportsNoDecoration=false) while
1895 user code is discarding the 'bool *p_open=false output' from Begin().
1896 Because we allowed the Win32 window to close early, Windows destroyed
1897 it and our imgui window became not visible even though user code was
1898 still submitting it. (#8670)
1899- Backends: Win32: Viewports: handle WM_DPICHANGED in backend when
1900 ImGuiConfigFlags_DpiEnableScaleViewports is enabled.
1901- Backends: GLFW, SDL2, SDL3, Apple: provide Platform_GetWindowFramebufferScale handler,
1902 (#1065, #1542, #1676, #1786, #2826, #3757, #5081, #5580, #5592, #6465, #7273, #7779 etc.)
1903- Backends: SDLGPU3 for SDL3: added multi-viewport support. (#8573) [@Lekoopapaul]
1904- Backends: SDL2, SDL3: revert updating monitors and work areas info every
1905 frame. Only do it on Windows to detect task-bar resize until we get an
1906 adequate event for it. (#8415, #8558)
1907- Backends: SDL3: macOS: Fixed secondary-viewports not appearing on a different
1908 monitor than the main viewport. Because SDL_SetWindowParent() seems to restrict it.
1909- Backends: GLFW: Disable multi-viewports under Wayland (require GLFW 3.4). (#8587)
1910- Backends: GLFW: Fixed an issue where Win32 specific WndProc hook was not installed
1911 for all GLFW version, preventing mouse vs touch detection from working on
1912 secondary viewports.
1913
1914
1915-----------------------------------------------------------------------
1916 VERSION 1.91.9b (Released 2025-03-17)
1917-----------------------------------------------------------------------
1918
1919Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.9b
1920
1921- Tables: Fixed assert when loading .ini settings with reordered columns. (#8496, #7934)
1922- Tables: Fixed issues when loading .ini settings for a table with columns using
1923 ImGuiTableColumnFlags_DefaultHide or ImGuiTableColumnFlags_DefaultSort. (#8496, #7934)
1924
1925
1926-----------------------------------------------------------------------
1927 VERSION 1.91.9 (Released 2025-03-14)
1928-----------------------------------------------------------------------
1929
1930Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.9
1931
1932Breaking changes:
1933
1934- Image: removed 'tint_col' and 'border_col' parameter from Image() function. (#8131, #8238)
1935 - Old function signature:
1936 void Image (ImTextureID tex_id, ImVec2 image_size, ImVec2 uv0 = (0,0), ImVec2 uv1 = (1,1), ImVec4 tint_col = (1,1,1,1), ImVec4 border_col = (0,0,0,0));
1937 - New function signatures:
1938 void Image (ImTextureID tex_id, ImVec2 image_size, ImVec2 uv0 = (0,0), ImVec2 uv1 = (1,1));
1939 void ImageWithBg(ImTextureID tex_id, ImVec2 image_size, ImVec2 uv0 = (0,0), ImVec2 uv1 = (1,1), ImVec4 bg_col = (0,0,0,0), ImVec4 tint_col = (1,1,1,1));
1940 - TL;DR: 'border_col' had misleading side-effect on layout, 'bg_col' was missing, parameter order couldn't be consistent with ImageButton().
1941 - New behavior always use ImGuiCol_Border color + style.ImageBorderSize / ImGuiStyleVar_ImageBorderSize.
1942 - Old behavior altered border size (and therefore layout) based on border color's
1943 alpha, which caused variety of problems.
1944 - Old behavior used a fixed value of 1.0f for border size which was not tweakable.
1945 - Kept legacy signature (will obsolete), which mimics the old behavior,
1946 but uses Max(1.0f, style.ImageBorderSize) when border_col is specified.
1947 - Added ImageWithBg() function which has both 'bg_col' (which was missing) and 'tint_col'.
1948 It was impossible to add 'bg_col' to Image() with a parameter order consistent with
1949 other functions, so we decided to remove 'tint_col' and introduce ImageWithBg().
1950- Renamed ImFontConfig::GlyphExtraSpacing.x option to GlyphExtraAdvanceX. (#242)
1951- Renamed style.TabMinWidthForCloseButton to style.TabCloseButtonMinWidthUnselected.
1952- Backends: Vulkan: Added 'uint32_t api_version' argument to ImGui_ImplVulkan_LoadFunctions().
1953 Note that it was also added to ImGui_ImplVulkan_InitInfo but for the later it is optional.
1954 (#8326, #8365, #8400)
1955- Internals: Fonts: ImFontAtlas::ConfigData[] has been renamed to ImFontAtlas::Sources[],
1956- Internals: Fonts: ImFont::ConfigData[], ConfigDataCount has been renamed to Sources[], SourcesCount.
1957- Internals: Menus: reworked mangling of menu windows to use "###Menu_00" etc. instead
1958 of "##Menu_00", allowing them to also store the menu name before it. This shouldn't
1959 affect code unless directly accessing menu window from their mangled name.
1960
1961Other changes:
1962
1963- Fixed IsItemDeactivatedAfterEdit() signal being broken for Checkbox(),
1964 RadioButton(), Selectable(). Regression from 2025/01/13. (#8370)
1965- Windows: Fixed an issue where BeginChild() inside a collapsed Begin()
1966 wouldn't inherit the SkipItems flag, resulting in missing coarse clipping
1967 opportunities for code not checking the BeginChild() return value.
1968- Windows, Style: Added style.WindowBorderHoverPadding setting to configure
1969 inner/outer padding applied to hit-testing of windows borders and detection
1970 of hovered window.
1971- InputText: Allow CTRL+Shift+Z to redo even outside of OSX. (#8389) [@tanksdude]
1972- InputText: Pasting a multi-line buffer into a single-line edit replaces
1973 carriage return by spaces. (#8459)
1974- InputTextWithHint(): Fixed buffer-overflow (luckily often with no visible effect)
1975 when a user callback modified the buffer contents in a way that altered the
1976 visibility of the preview/hint buffer. (#8368) [@m9710797, @ocornut]
1977- Scrollbar: Rework logic that fades-out scrollbar when it becomes too small,
1978 which amusingly made it disappear when using very big font/frame size.
1979- Scrollbar: Automatically stabilize ScrollbarX visibility when detecting a
1980 feedback loop manifesting with ScrollbarX visibility toggling on and off
1981 repeatedly. (#8488, #3285, #4539)
1982 (feedback loops of this sort can manifest in various situations, but combining
1983 horizontal + vertical scrollbar + using a clipper with varying width items is
1984 one frequent cause. The better solution is to, either: (1) enforce visibility
1985 by using ImGuiWindowFlags_AlwaysHorizontalScrollbar or (2) declare stable
1986 contents width with SetNextWindowContentSize(), if you can compute it.)
1987- Tables: fixed calling SetNextWindowScroll() on clipped scrolling table
1988 to not leak the value into a subsequent window. (#8196)
1989- Tables: fixed an issue where Columns Visible/Width state wouldn't be correctly
1990 restored when hot-reloading .ini state. (#7934)
1991- Tables: tamed some .ini settings optimizations to more accurately allow
1992 overwriting/hot-reloading settings in more situations. (#7934)
1993- Tables, Error Handling: Recovery from invalid index in TableSetColumnIndex(). (#1651)
1994- Image: Added ImageWithBg() variant with bg color and tint color. (#8131, #8238)
1995- Image, Style: Added style.ImageBorderSize, ImGuiStyleVar_ImageBorderSize. (#8131, #8238)
1996- Selectable: Fixed horizontal label alignment with SelectableTextAlign.x > 0 and
1997 specifying a selectable size. (#8338)
1998- Tabs, Style: made the Close Button of selected tabs always visible by default,
1999 without requiring to hover the tab. (#8387)
2000 - Added style.TabCloseButtonMinWidthSelected/TabCloseButtonMinWidthUnselected settings
2001 to configure visibility of the Close Button for selected and unselected tabs.
2002 (-1: always visible. 0.0f: visible when hovered. >0.0f: visible when hovered if minimum width)
2003 - Default for selected tabs: TabCloseButtonMinWidthSelected = -1.0f (always visible)
2004 - Default for unselected tabs: TabCloseButtonMinWidthUnselected = 0.0f (visible when hovered)
2005- Tabs: fixed middle-mouse-button to close tab not checking that close button
2006 is hovered, merely its visibility. (#8399, #8387) [@nicovanbentum]
2007- TextLink(), TextLinkOpenURL(): fixed honoring text baseline alignment.
2008 (#8451, #7660) [@achabense]
2009- TextLinkOpenURL(): fixed default Win32 io.PlatformOpenInShellFn handler to
2010 handle UTF-8 regardless of system regional settings. (#7660) [@achabense]
2011- Disabled: Fixed an issue restoring Alpha in EndDisabled() when using nested
2012 BeginDisabled() calls with PushStyleVar(ImGuiStyleVar_DisabledAlpha) within. (#8454, #7640)
2013- Clipper: Fixed an issue where passing an out of bound index to IncludeItemByIndex()
2014 could incorrectly offset the final cursor, even if that index was not iterated through.
2015 One case where it would manifest was calling Combo() with an out of range index. (#8450)
2016- Debug Tools: Added io.ConfigDebugHighlightIdConflictsShowItemPicker (defaults to true)
2017 to allow disabled Item Picker suggestion in user facing builds. (#7961, #7669)
2018- Debug Tools: Tweaked layout of ID Stack Tool and always display full path. (#4631)
2019- imgui_freetype: update lunasvg API to support v3.0+. (#8656, #6842, #6591) [@moretromain]
2020- Misc: Various zealous warning fixes for newer version of Clang.
2021- Misc: Added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress mouse cursors
2022 (busy/wait/hourglass shape, with or without an arrow cursor).
2023- Demo: Reorganized "Widgets" section to be alphabetically ordered and split in more functions.
2024- Demo: Combos: demonstrate a very simple way to add a filter to a combo,
2025 by showing the filter inside the combo contents. (#718)
2026- Examples: SDL3: Added comments to clarify setup for users of the unfortunate
2027 SDL_MAIN_USE_CALLBACKS feature. (#8455)
2028- IO: Added ImGuiKey_Oem102 to ImGuiKey enum. (#7136, #7201, #7206, #7306, #8468)
2029- Backends: reworked key handlers to use/prioritize untranslated scancodes instead of
2030 translated keycodes when dealing with OEM keys which are too difficult to find a reliable
2031 translated mapping on all systems, backends and keyboard layout.
2032 (#7136, #7201, #7206, #7306, #7670, #7672, #8468)
2033 - The affected keys are: ImGuiKey_Apostrophe, ImGuiKey_Comma, ImGuiKey_Minus, ImGuiKey_Period,
2034 ImGuiKey_Slash, ImGuiKey_Semicolon, ImGuiKey_Equal, ImGuiKey_LeftBracket, ImGuiKey_RightBracket,
2035 ImGuiKey_Backslash, ImGuiKey_GraveAccent, and newly introduced ImGuiKey_Oem102.
2036 - This is NOT affecting characters used the text inputs.
2037 - Fixes many cases of keys not emitting a ImGuiKey value with certain keyboard layouts.
2038 - Makes emitted ImGuiKey values more consistent regardless of keyboard mapping,
2039 but you may be getting different values as before.
2040 - Win32, SDL2, SDL3: Use scancodes for OEM keys.
2041 - GLFW: GLFW_KEY_WORLD_1 and GLFW_KEY_WORLD_2 are emitting ImGuiKey_Oem102.
2042- Backends: GLFW: Fixed clipboard handler assertion when using GLFW <= 3.2.1 compiled
2043 with asserts enabled. (#8452)
2044- Backends: SDL2, SDL3: Using SDL_OpenURL() in platform_io.Platform_OpenInShellFn
2045 handler. (#7660) [@achabense]
2046- Backends: SDL2, SDL3: Use display bounds when SDL_GetDisplayUsableBounds()
2047 fails or return a zero size. (#8415, #3457)
2048- Backends: SDL2, SDL3, Win32, Allegro5: Added support for ImGuiMouseCursor_Wait
2049 and ImGuiMouseCursor_Progress cursors.
2050- Backends: SDL2, SDL3: Avoid calling SDL_GetGlobalMouseState() when mouse is in
2051 relative mode. (#8425, #8407) [@TheMode]
2052- Backends: SDL2, SDL3: Only start SDL_CaptureMouse() when mouse is being dragged,
2053 to mitigate issues with e.g. Linux debuggers not claiming capture back on debug
2054 break. (#6410, #3650)
2055- Backends: OpenGL3: Lazily reinitialize embedded GL loader for when calling backend
2056 from e.g. other DLL boundaries. (#8406)
2057- Backends: DirectX12: Fixed an issue where pre-1.91.5 legacy ImGui_ImplDX12_Init()
2058 signature started breaking in 1.91.8 due to missing command queue. (#8429)
2059- Backends: Metal: Fixed a crash on application resources. (#8367, #7419) [@anszom]
2060- Backends: Vulkan: Added ApiVersion field in ImGui_ImplVulkan_InitInfo.
2061 Default to header version if unspecified. (#8326, #8365) [@mklefrancois]
2062- Backends: Vulkan: Dynamic rendering path loads "vkCmdBeginRendering/vkCmdEndRendering"
2063 (without -KHR suffix) on API 1.3. (#8326, #8365) [@mklefrancois]
2064- Backends: WebGPU: Recreate image bind groups during render to allow reuse of
2065 WGPUTextureView pointers. (#8426, #8046, #7765, #8027) [@pplux, @Jairard]
2066- Backends: WebGPU: Fix for DAWN API change WGPUProgrammableStageDescriptor -> WGPUComputeState.
2067 [@PhantomCloak] (#8369)
2068- Backends: WebGPU: Fix for webgpu-native API changes. (#8426) [@pplux]
2069
2070Docking+Viewports Branch:
2071
2072- Docking: Removed legacy assert preventing to call DockBuilderSplitNode() on an existing
2073 split node. This makes using DockBuilder a little more flexible and bearable! (#8472) [@MegaMech]
2074- Viewports: fixed an issue where in certain cases, a window repositioning leading
2075 to a monitor change could have the window incorrectly get clamped within the boundaries
2076 of its previous monitor. Would happen e.g. when loading .ini data during runtime. (#8484)
2077- Viewports: fixed an assert when a window load settings with a position outside
2078 monitor bounds, when there are multiple monitors. (#8393, #8385) [@gaborodriguez]
2079- Viewports + Backends: Win32: Fixed setting title bar text when application
2080 is compiled without UNICODE. (#7979, #5725) [@lailoken]
2081- Backends: GLFW, SDL2/SDL3: Update monitors and work areas information every frame,
2082 as the later may change regardless of monitor/display changes. (#8415)
2083- Backends: Win32: WM_SETTINGCHANGE's SPI_SETWORKAREA message also triggers a refresh
2084 of monitor list, as they contain work area information. (#8415) [@PathogenDavid, @lailoken]
2085
2086
2087-----------------------------------------------------------------------
2088 VERSION 1.91.8 (Released 2025-01-31)
2089-----------------------------------------------------------------------
2090
2091Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.8
2092
2093Breaking changes:
2094
2095- ColorEdit, ColorPicker: redesigned how alpha is displayed in the preview
2096 square. (#8335, #1578, #346)
2097 - Removed ImGuiColorEditFlags_AlphaPreview (made value 0): it is now the default behavior.
2098 - Prior to 1.91.8: alpha was made opaque in the preview by default _unless_ using ImGuiColorEditFlags_AlphaPreview.
2099 - We now display the preview as transparent by default. You can use ImGuiColorEditFlags_AlphaOpaque to use old behavior.
2100 - The new flags may be combined better and allow finer controls:
2101 - ImGuiColorEditFlags_AlphaOpaque: disable alpha in the preview, but alpha value still editable.
2102 - ImGuiColorEditFlags_AlphaNoBg: disable rendering a checkerboard background behind transparent color.
2103 - ImGuiColorEditFlags_AlphaPreviewHalf: display half opaque / half transparent preview.
2104- Backends: SDLGPU3: Renamed ImGui_ImplSDLGPU3_InitInfo::GpuDevice to Device
2105 for consistency. (#8163, #7998, #7988)
2106
2107Other changes:
2108
2109- imgui_freetype: fixed issue where glyph advances would incorrectly be
2110 snapped to pixels. Effectively it would only be noticeable when hinting
2111 is disabled with ImGuiFreeTypeBuilderFlags_NoHinting, as hinting itself
2112 snaps glyph advances.
2113- Inputs: added IsMouseReleasedWithDelay() helper. (#8337, #8320)
2114 Use if you absolutely need to distinguish single-click from double-clicks
2115 by introducing a delay. This is a very rarely used UI idiom, but some apps
2116 use this: e.g. MS Explorer single-click on an icon triggers a rename.
2117 Generally use with 'delay >= io.MouseDoubleClickTime' + combine with a
2118 'GetMouseClickedCount() == 1' check.
2119- Windows: legacy SetWindowFontScale() is properly inherited by nested child
2120 windows. Note that an upcoming major release should make this obsolete,
2121 but in the meanwhile it works better now. (#2701, #8138, #1018)
2122- Windows, Style: Fixed small rendering issues with menu bar, resize grip and
2123 scrollbar when using thick border sizes. (#8267, #7887)
2124- Windows: Fixed IsItemXXXX() functions not working on append-version of EndChild(). (#8350)
2125 Also made some of the fields accessible after BeginChild() to match Begin() logic.
2126- Error Handling: Recovery from missing EndMenuBar() call. (#1651)
2127- Tables, Menus: Fixed using BeginTable() in menu layer (any menu bar). (#8355)
2128 It previously overrode the current layer back to main layer, which caused an issue
2129 with MainMenuBar attempted to release focus when leaving the menu layer.
2130- Tables, Menus: Fixed tables or child windows submitted inside BeginMainMenuBar()
2131 being unable to save their settings, as the main menu bar uses _NoSavedSettings. (#8356)
2132- ColorEdit, ColorPicker: Fixed alpha preview broken in 1.91.7. (#8336, #8241). [@PathogenDavid]
2133- Tabs, Style: reworked selected overline rendering to better accommodate
2134 for rounded tabs. Reduced default thickness (style.TabBarOverlineSize),
2135 increased default rounding (style.TabRounding). (#8334) [@Kian738, @ocornut]
2136- Debug Tools: Tweaked font preview.
2137- ImDrawList: texture baked storage for thick line reduced from ~64x64 to ~32x32. (#3245)
2138- Fonts: IndexLookup[] table hold 16-bit values even in ImWchar32 mode,
2139 as it accounts for number of glyphs in same font. This is favorable to
2140 CalcTextSize() calls touching less memory.
2141- Fonts: OversampleH/OversampleV defaults to 0 for automatic selection.
2142 - OversampleH == 0 --> use 1 or 2 depending on font size and use of PixelSnapH.
2143 - OversampleV == 0 --> always use 1.
2144- ImFontAtlas: made calling ClearFonts() call ClearInputData(), as calling
2145 one without the other is never correct. (#8174, #6556, #6336, #4723)
2146- Examples: DirectX12: Reduced number of frame in flight from 3 to 2 in
2147 provided example, to reduce latency.
2148- Backends+Examples: Vulkan: better handle VK_SUBOPTIMAL_KHR being returned by
2149 vkAcquireNextImageKHR() or vkQueuePresentKHR(). (#7825, #7831) [@NostraMagister]
2150- Backends: SDL2: removed assert preventing using ImGui_ImplSDL2_SetGamepadMode()
2151 with ImGui_ImplSDL2_GamepadMode_Manual and an empty array. (#8329)
2152- Backends: SDL3: removed assert preventing using ImGui_ImplSDL3_SetGamepadMode()
2153 with ImGui_ImplSDL3_GamepadMode_Manual and an empty array. (#8329)
2154- Backends: SDLGPU3: Exposed ImGui_ImplSDLGPU3_CreateDeviceObjects()/_DestroyDeviceObjects().
2155 Removed return value from ImGui_ImplSDLGPU3_CreateFontsTexture(). (#8163, #7998, #7988)
2156- Backends: SDL_Renderer2/3: Use endian-dependent RGBA32 texture format, to match
2157 SDL_Color. (#8327) [@dkosmari]
2158- Backends: DirectX12: Texture upload use the command queue provided in
2159 ImGui_ImplDX12_InitInfo instead of creating its own.
2160- Backends: OSX: Removed notification observer when shutting down. (#8331) [@jrachele]
2161
2162Docking+Viewports Branch:
2163
2164- Docking: Fixed an issue in 1.91.7 where using legacy ImGuiWindowFlags_NavFlattened
2165 flag (instead of ImGuiChildFlags_NavFlattened) in docking branch would conflict
2166 with internal docking flags. (#8357) [@DanielGibson]
2167- Backends: SDL3: new viewport windows are created with the SDL_WINDOW_HIDDEN flag
2168 before calling SDL_ShowWindow(). (#8328) [@PathogenDavid]
2169
2170
2171-----------------------------------------------------------------------
2172 VERSION 1.91.7 (Released 2025-01-14)
2173-----------------------------------------------------------------------
2174
2175Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.7
2176
2177Breaking changes:
2178
2179- TreeNode: renamed ImGuiTreeNodeFlags_SpanTextWidth to ImGuiTreeNodeFlags_SpanLabelWidth
2180 for consistency with other names. Kept redirection enum (will obsolete). (#6937)
2181
2182Other changes:
2183
2184- Fixed issues with IsItemDeactivated() and IsItemDeactivatedAfterEdit() not
2185 emitting a reliable signal when an item is deactivated externally: e.g.
2186 via an explicit clear of focus, clear of active id, opening of modal etc.
2187 (#5184, #5904, #6766, #8303, #8004)
2188 - It used to work when the interruption happened in the frame before the
2189 active item as submitted, but not after. It should work in both cases now.
2190 - While this is not specific to a certain widgets, typically it would
2191 mostly be noticeable on InputText() because it keeps ActiveId for a
2192 longer time while allowing other interaction to happen.
2193- Error Handling: Fixed bugs recovering from within a table that created
2194 a child window, and from nested child windows. (#1651)
2195- Error Handling: Turned common EndTable() and other TableXXX functions
2196 fail cases into a recoverable error. (#1651, #8314)
2197- Error Handling: Basic error handling options in Demo->Tools->Debug Options. (#1651)
2198- InputText: Fixed a bug where character replacements performed from a callback
2199 were not applied when pasting from clipboard. (#8229)
2200- InputText: Fixed issue when activating a ReadOnly field when the underlying
2201 value is being modified. (#8242)
2202- InputText: Added sanity check to detect some cases of passing a non
2203 zero-terminated input buffer.
2204- InputText: Fixed not calling CallbackEdit on revert/clear with Escape key,
2205 although IsItemEdited() was behaving correctly. (#8273)
2206- Tables: Fixed TableAngledHeadersRow() creating an infinite horizontal
2207 scrolling region when the table is hosted in a viewport with negative
2208 coordinates (left of primary monitor, with multi-viewports enabled).
2209- Tables, MultiSelect: Fixed an issue where column width may be mismeasured
2210 when calling BeginMultiSelect() while inside a table. (#8250)
2211- TreeNode, Tables: Added ImGuiTreeNodeFlags_LabelSpanAllColumns to make
2212 the label (not only the highlight/frame) also spans all columns. This is
2213 useful for table rows where you know nothing else is submitted. (#8318, #3565)
2214 Obviously best used with ImGuiTableFlags_NoBordersInBodyUntilResize.
2215- Selectable: Fixed horizontal label alignment when combined with using
2216 ImGuiSelectableFlags_SpanAllColumns. (#8338)
2217- Drags: Added ImGuiSliderFlags_NoSpeedTweaks flag to disable keyboard
2218 modifiers altering the tweak speed. Useful if you want to alter tweak speed
2219 yourself based on your own logic. (#8223)
2220- Nav: Fixed an issue where Alt key would clear current active item on
2221 windows with the ImGuiWindowFlags_NoNavInputs flag. (#8231)
2222- Debug Tools: Debug Log: hovering 0xXXXXXXXX values in log is allowed even
2223 if a popup is blocking mouse access to the debug log window. (#5855)
2224- Debug Tools: Item Picker: Always available in Tools menu regardless of value
2225 of io.ConfigDebugIsDebuggerPresent. (#2673)
2226- Fonts: Fixed miscalculation of Ellipsis ("...") character width when automatically
2227 created from a single comma character, affecting some fonts/settings (not all).
2228- Demo: Added label edition to Property Editor demo + fix an ID issue. (#8266) [@moritz-h]
2229- Misc: Fixed misc/cpp/imgui_stdlib.h/.cpp not supporting IMGUI_DISABLE. (#8294) [@juur]
2230- Misc: Fixed MinGW builds not using UTF-8 friendly _wfopen(). (#8300)
2231- Backends: SDLGPU3 for SDL3: Added backend for SDL_GPU! (#8163, #7998, #7988) [@DeltaW0x].
2232- Backends: SDL3: Added ImGui_ImplSDL3_InitForSDLGPU() for consistency, even
2233 though it is currently not doing anything particular. (#8163, #7998, #7988)
2234- Backends: Allegro5: Avoid calling al_set_mouse_cursor() repeatedly since it appears
2235 to leak on on X11 (#8256). [@Helodity]
2236- Backends: Metal: Fixed leaks when using metal-cpp. (#8276, #8166) [@selimsandal]
2237- Backends: Metal: Fixed resource leak when using multiple contexts. (#7419) [@anszom]
2238- Backends: Vulkan: Fixed setting VkSwapchainCreateInfoKHR::preTransform for
2239 platforms not supporting VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR. (#8222) [@Zer0xFF]
2240- Backends: Vulkan: Added a few more ImGui_ImplVulkanH_XXX helper functions
2241 primarily for the purpose of making our examples simpler.
2242- Backends: Vulkan: Added IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE to clarify
2243 how many image sampler descriptors are expected to be available in the provided
2244 descriptor pool. Current backend needs 1 but it is expected that by end of Q1 2025
2245 this number will grow (will stay a small number). (#6642)
2246- Backends: DX11: Expose vertex constant buffer in ImGui_ImplDX11_RenderState.
2247 Reset projection matrix in ImDrawCallback_ResetRenderState handlers. (#6969, #5834, #7468, #3590)
2248- Backends: DX10: Expose ImGui_ImplDX10_RenderState for completeness. (#6969, #5834, #7468, #3590)
2249- Examples: Added Win32+Vulkan example for completeness. (#8180) [@jristic]
2250
2251
2252-----------------------------------------------------------------------
2253 VERSION 1.91.6 (Released 2024-12-11)
2254-----------------------------------------------------------------------
2255
2256Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.6
2257
2258Breaking changes:
2259
2260- Backends: DX12: Changed ImGui_ImplDX12_Init() signature to take a
2261 ImGui_ImplDX12_InitInfo struct.
2262 - Using the new API, application is now required to pass function pointers
2263 to allocate/free SRV Descriptors.
2264 - We provide convenience legacy fields to pass a single descriptor,
2265 matching the old API, but upcoming features will want multiple.
2266 - Legacy ImGui_ImplDX12_Init() signature is still supported (will obsolete).
2267- Misc: changed CRC32 table from CRC32-adler to CRC32c polynomial in order to
2268 be compatible with the result of SSE 4.2 instructions. (#8169, #4933) [@Teselka]
2269 - As a result, some .ini data may be partially lost when storing checksums
2270 (docking and tables information particularly).
2271 - Because some users have crafted and storing .ini data as a way to workaround
2272 limitations of the docking API, we are providing a '#define IMGUI_USE_LEGACY_CRC32_ADLER'
2273 compile-time option to keep using old CRC32 tables if you cannot afford invalidating
2274 old .ini data.
2275
2276Other changes:
2277
2278- Error Handling: fixed cases where recoverable error handling would crash when
2279 processing errors outside of the NewFrame()..EndFrame() scope. (#1651)
2280- Tables: fixed SetNextWindowScroll() value being ignored by BeginTable() during
2281 the first frame or when scrolling flags have changed. (#8196)
2282- InputText: added ImGuiInputTextFlags_ElideLeft to elide left side and ensure right side
2283 of contents is visible when whole text is not fitting (useful for paths/filenames).
2284 (#1442, #1440, #4391, #7208, #8216) [@kucoman, @ocornut]
2285- InputText: reactivating last activated InputText() doesn't restore horizontal scrolling
2286 (which was disabled during deactivation anyway).
2287- Misc: changed embedded ProggyClean encoding to save a bit of binary space (~12kb to 9.5kb).
2288- Misc: added IMGUI_DISABLE_DEFAULT_FONT to strip embedded font from binary. (#8161)
2289 [@demonese]
2290- Demo: example tree used by Property Editor & Selection demos properly freed
2291 on application closure. (#8158) [@Legulysse]
2292- Fonts: fixed AddCustomRect() not being packed with TexGlyphPadding + not accounted
2293 for surface area used to determine best-guess texture size. (#8107) [@YarikTH, @ocornut]
2294- Misc: use SSE 4.2 crc32 instructions when available. (#8169, #4933) [@Teselka]
2295- Tools: binary_to_compressed_c: added -u8/-u32/-base85 export options.
2296- Backends: DirectX12: Let user specifies the DepthStencilView format by setting
2297 ImGui_ImplDX12_InitInfo::DSVFormat. (#8217) [@bmarques1995]
2298- Backends: Vulkan: Make user-provided descriptor pool optional. As a convenience,
2299 when setting init_info->DescriptorPoolSize then the backend will create and manage
2300 one itself. (#8172, #4867) [@zeux]
2301- Examples: Win32+DX12: Using a basic free-list allocator to manage multiple
2302 SRV descriptors.
2303
2304Docking+Viewports Branch:
2305
2306- Docking: Added an assert to clarify that ImGuiDockNodeFlags_CentralNode flag
2307 (from internals) does not need to be passed to DockSpace(), as it causes general
2308 havoc. (#8145)
2309- Backends: Win32: Fixed a crash/regression in 1.91.5 when running two processes
2310 with multi-viewports (was using GetProp() to query property which could have
2311 belonged to another process). (#8162, #8069) [@sammyfreg, @ocornut]
2312
2313
2314-----------------------------------------------------------------------
2315 VERSION 1.91.5 (Released 2024-11-07)
2316-----------------------------------------------------------------------
2317
2318Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.5
2319
2320Breaking changes:
2321
2322- Commented out pre-1.87 IO system (equivalent to using IMGUI_DISABLE_OBSOLETE_KEYIO or IMGUI_DISABLE_OBSOLETE_FUNCTIONS before).
2323 - io.KeyMap[] and io.KeysDown[] are removed (obsoleted February 2022). Use IsKeyDown() instead.
2324 - io.NavInputs[] and ImGuiNavInput are removed (obsoleted July 2022).
2325 - GetKeyIndex() is removed (obsoleted March 2022). The indirection is now unnecessary.
2326 - Pre-1.87 backends are not supported:
2327 - backends need to call io.AddKeyEvent(), io.AddMouseEvent() instead of writing to io.KeysDown[], io.MouseDown[] fields.
2328 - backends need to call io.AddKeyAnalogEvent() for gamepad values instead of writing to io.NavInputs[] fields.
2329 - you can use IsKeyDown() instead of reading from io.KeysDown[].
2330 - For more references:
2331 - read 1.87 and 1.88 part of API BREAKING CHANGES in imgui.cpp or read Changelog for 1.87 and 1.88.
2332 - read https://github.com/ocornut/imgui/issues/4921
2333 - If you have trouble updating a very old codebase using legacy backend-specific key codes:
2334 consider updating to 1.91.4 first, then #define IMGUI_DISABLE_OBSOLETE_KEYIO, then update to latest.
2335 - Obsoleted ImGuiKey_COUNT (it is unusually error-prone/misleading since valid keys don't start at 0).
2336 Probably use ImGuiKey_NamedKey_BEGIN/ImGuiKey_NamedKey_END?
2337- Fonts: removed const qualifiers from most font functions in prevision for upcoming fonts improvements.
2338
2339Other changes:
2340
2341- Selectable: selected Selectables use ImGuiCol_Header instead of an arbitrary lerp
2342 between _Header and _HeaderHovered which was introduced v1.91 (#8106, #1861)
2343- Buttons: using ImGuiItemFlags_ButtonRepeat makes default button behavior use
2344 PressedOnClick instead of PressedOnClickRelease when unspecified.
2345 - This is intended to make the +/- buttons of InputInt/InputFloat react on the
2346 initial mouse down event.
2347 - Note that it may reveal incorrect usage if you were using InputInt/InputFloat
2348 without persistent storage by relying solely on e.g. IsItemDeactivatedAfterEdit():
2349 this was never supported and didn't work consistently (see #8149).
2350- InputText: fixed a bug (regression in 1.91.2) where modifying text buffer within
2351 a callback would sometimes prevents further appending to the buffer.
2352- Tabs, Style: made ImGuiCol_TabDimmedSelectedOverline alpha 0 (not visible) in default
2353 styles as the current look is not right (but ImGuiCol_TabSelectedOverline stays the same).
2354- Log/Capture: added experimental io.ConfigWindowsCopyContentsWithCtrlC option to
2355 automatically copy window contents into clipboard using CTRL+C. This is experimental
2356 because (1) it currently breaks on nested Begin/End, (2) text output quality varies,
2357 and (3) text output comes in submission order rather than spatial order.
2358- Log/Capture: better decorating of BeginMenu() and TabItem() output.
2359- Log/Capture: a non terminated log ends automatically in the window which called it.
2360- imgui_freetype: Fixed a crash in build font atlas when using merged fonts and the
2361 first font in a merged set has no loaded glyph. (#8081)
2362- Backends: DX12: Unmap() call specify written range. The range is informational and
2363 may be used by debug tools.
2364- Backends: SDL2: Replace SDL_Vulkan_GetDrawableSize() forward declaration with the
2365 actual include. (#8095, #7967, #3190) [@sev-]
2366- Backends: SDL2, SDL3: SDL_EVENT_MOUSE_WHEEL event doesn't require dividing
2367 by 100.0f on Emscripten target. (#4019, #6096, #1463)
2368- Examples: SDL3+Vulkan: Added example. (#8084, #8085)
2369- Examples: Android+OpenGL: Using ALooper_pollOnce() instead of ALooper_pollAll()
2370 which has been deprecated. (#8013) [@feather179]
2371
2372Docking+Viewports Branch:
2373
2374- Backends: GLFW: added Linux workaround for spurious mouse up events emitted while dragging
2375 and creating new viewports. Generally they would be interrupting a dragging operations.
2376 (#3158, #7733, #7922) [@rokups, @ocornut]
2377- Docking: fixed using ImGuiDockNodeFlags_KeepAliveOnly with DockSpaceOverViewport():
2378 the normally invisible space did erroneously claim mouse hover and could be potentially
2379 focused. (#8125) [@kcbanner]
2380
2381
2382-----------------------------------------------------------------------
2383 VERSION 1.91.4 (Released 2024-10-18)
2384-----------------------------------------------------------------------
2385
2386Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.4
2387
2388Breaking changes:
2389
2390- Style: renamed ImGuiCol_NavHighlight to ImGuiCol_NavCursor, for consistency with
2391 newly exposed and reworked features. Kept inline redirection enum (will obsolete).
2392- The typedef for ImTextureID now defaults to ImU64 instead of void*. (#1641)
2393 - This removes the requirement to redefine it for backends which are e.g. storing
2394 descriptor sets or other 64-bits structures when building on 32-bits archs
2395 (namely our DX12 and Vulkan backends). It therefore simplify various building scripts/helpers.
2396 - You may have compile-time warnings if you were casting to 'void*' instead of 'ImTextureID'
2397 when passing your types to functions taking ImTextureID values, e.g. ImGui::Image().
2398 In doubt it is almost always better to do an intermediate intptr_t cast, since it
2399 allows casting any pointer/integer type without warning:
2400 - May warn: ImGui::Image((void*)MyTextureData, ...);
2401 - May warn: ImGui::Image((void*)(intptr_t)MyTextureData, ...);
2402 - Won't warn: ImGui::Image((ImTextureID)(intptr_t)MyTextureData, ...);
2403 - Note that you can always define ImTextureID to be your own high-level structures
2404 (with dedicated constructors and extra render parameters) if you like.
2405- IO: moved ImGuiConfigFlags_NavEnableSetMousePos to standalone io.ConfigNavMoveSetMousePos bool.
2406- IO: moved ImGuiConfigFlags_NavNoCaptureKeyboard to standalone io.ConfigNavCaptureKeyboard bool
2407 (note the inverted value!). (#2517, #2009)
2408 Kept legacy names (will obsolete) + code that copies settings once the first time.
2409 Dynamically changing the old value won't work. Switch to using the new value!
2410
2411Other changes:
2412
2413- IO: added 'void* platform_io.Renderer_RenderState' which is set during the
2414 ImGui_ImplXXXX_RenderDrawData() of standard backends to expose selected render
2415 states to your draw callbacks. (#6969, #5834, #7468, #3590)
2416- IO: io.WantCaptureKeyboard is never set when ImGuiConfigFlags_NoKeyboard is enabled. (#4921)
2417- Error Handling: turned a few more functions into recoverable errors. (#1651)
2418- Nav (Keyboard/Gamepad navigation):
2419 - Nav: added io.ConfigNavCursorVisibleAuto and io.ConfigNavCursorVisibleAlways to configure
2420 visibility of navigation cursor. (#1074, #2048, #7237, #8059, #3200, #787)
2421 - Set io.ConfigNavCursorVisibleAuto = true (default) to enable automatic toggling
2422 of cursor visibility (mouse click hide the cursor, arrow keys makes it visible).
2423 - Set io.ConfigNavCursorVisibleAlways to keep cursor always visible.
2424 - Nav: added SetNavCursorVisible(bool visible) function to manipulate visibility of
2425 navigation cursor (e.g. set default state, or after some actions). (#1074, #2048, #7237, #8059)
2426 - Nav: added io.ConfigNavEscapeClearFocusItem and io.ConfigNavEscapeClearFocusWindow to change
2427 how pressing Escape affects navigation. (#8059, #2048, #1074, #3200)
2428 - Set io.ConfigNavEscapeClearFocusItem = true (default) to clear focused item and highlight.
2429 - Set io.ConfigNavEscapeClearFocusItem = false for Escape to not have an effect.
2430 - Set io.ConfigNavEscapeClearFocusWindow = true to completely unfocus the dear imgui window,
2431 is for some reason your app relies on imgui focus to take other decisions.
2432 - Nav: pressing escape to hide the navigation cursor doesn't clear location, so it may be
2433 restored when Ctrl+Tabbing back into the same window later.
2434 - Nav: fixed Ctrl+Tab initiated with no focused window from skipping the top-most window. (#3200)
2435 - Nav: navigation cursor is not rendered for items with `ImGuiItemFlags_NoNav`. Can be relevant
2436 when e.g activating a _NoNav item with mouse, then Ctrl+Tabbing back and forth.
2437- Disabled: clicking a disabled item focuses parent window. (#8064)
2438- InvisibleButton, Nav: fixed an issue when InvisibleButton() would be navigable into but
2439 not display navigation highlight. Properly navigation on it by default. (#8057)
2440- InvisibleButton: added ImGuiButtonFlags_EnableNav to enable navigation. (#8057)
2441- Tooltips: fixed incorrect tooltip positioning when using keyboard/gamepad navigation
2442 (1.91.3 regression). (#8036)
2443- DrawList: AddCallback() added an optional size parameter allowing to copy and
2444 store any amount of user data for usage by callbacks: (#6969, #4770, #7665)
2445 - If userdata_size == 0: we copy/store the 'userdata' argument as-is (existing behavior).
2446 It will be available unmodified in ImDrawCmd::UserCallbackData during render.
2447 - If userdata_size > 0, we copy/store 'userdata_size' bytes pointed to by 'userdata' (new behavior).
2448 We store them in a buffer stored inside the drawlist. ImDrawCmd::UserCallbackData
2449 will point inside that buffer so you have to retrieve data from there. Your callback
2450 may need to use ImDrawCmd::UserCallbackDataSize if you expect dynamically-sized data.
2451 - Note that we use a raw type-less copy.
2452- Tables: fixed initial auto-sizing issue with synced-instances. (#8045, #7218)
2453- InputText: fixed an issue with not declaring ownership of Delete/Backspace/Arrow keys,
2454 preventing use of external shortcuts that are not guarded by an ActiveId check. (#8048)
2455 [@geertbleyen]
2456- InputText: ensure mouse cursor shape is set regardless of whether keyboard mode is
2457 enabled or not. (#6417)
2458- InputScalar: added an assert to clarify that ImGuiInputTextFlags_EnterReturnsTrue is not
2459 supported by InputFloat, InputInt, InputScalar etc. widgets. It actually never was. (#8065, #3946)
2460- imgui_freetype: Added support for plutosvg (as an alternative to lunasvg) to render
2461 OpenType SVG fonts. Requires defining IMGUI_ENABLE_FREETYPE_PLUTOSVG along with IMGUI_ENABLE_FREETYPE.
2462 Providing headers/libraries for plutosvg + plutovg is up to you (see #7927 for help).
2463 (#7927, #7187, #6591, #6607) [@pthom]
2464- Backends: DX11, DX12, SDLRenderer2/3. Vulkan, WGPU: expose selected state in
2465 ImGui_ImplXXXX_RenderState structures during render loop user draw callbacks.
2466 (#6969, #5834, #7468, #3590)
2467- Backends: DX9, DX10, DX11, DX12, OpenGL, Vulkan, WGPU: Changed default texture sampler
2468 to Clamp instead of Repeat/Wrap. (#7468, #7511, #5999, #5502, #7230)
2469
2470Docking+Viewports Branch:
2471
2472- Backends: changed all backends to allow enabling ImGuiConfigFlags_ViewportsEnable
2473 after initialization. (#5371)
2474
2475
2476-----------------------------------------------------------------------
2477 VERSION 1.91.3 (Released 2024-10-04)
2478-----------------------------------------------------------------------
2479
2480Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.3
2481
2482Breaking changes:
2483
2484- Drags: treat v_min==v_max as a valid clamping range when != 0.0f. Zero is still a special
2485 value due to legacy reasons, unless using ImGuiSliderFlags_ClampZeroRange. (#7968, #3361, #76)
2486- Drags: extended behavior of ImGuiSliderFlags_AlwaysClamp to include _ClampZeroRange.
2487 It considers v_min==v_max==0.0f as a valid clamping range (aka edits not allowed).
2488 Although unlikely, it you wish to only clamp on text input but want v_min==v_max==0.0f
2489 to mean unclamped drags, you can use _ClampOnInput instead of _AlwaysClamp. (#7968, #3361, #76)
2490
2491Other changes:
2492
2493- Error Handling: Enabled/improved error recovery systems. (#1651, #5654)
2494 - Error recovery is provided as a way to facilitate:
2495 - Recovery after a programming error. Native code or scripting language (the later
2496 tends to facilitate iterating on code while running).
2497 - Recovery after running an exception handler or any error processing which may skip code
2498 after an error has been detected.
2499 - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
2500 You not are not supposed to rely on it in the course of a normal application run.
2501 - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
2502 - By design, we do not allow error recovery to be 100% silent. One of the options needs to be enabled!
2503 - Possible usage: facilitate recovery from errors triggered from a scripting language or
2504 after specific exceptions handlers. Surface errors to programmers in less aggressive ways.
2505 - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled
2506 when making direct imgui API calls! Otherwise it would severely hinder your ability to
2507 catch and correct mistakes!
2508 - Added io.ConfigErrorRecovery to enable error recovery support.
2509 - Added io.ConfigErrorRecoveryEnableAssert to assert on recoverable errors.
2510 - Added io.ConfigErrorRecoveryEnableDebugLog to output to debug log on recoverable errors.
2511 - Added io.ConfigErrorRecoveryEnableTooltip to enable displaying an error tooltip on recoverable errors.
2512 The tooltip include a way to enable asserts if they were disabled.
2513 - All options are enabled by default.
2514 - Read https://github.com/ocornut/imgui/wiki/Error-Handling for a bit more details.
2515- Windows: BeginChild(): made it possible to call SetNextWindowSize() on a child window
2516 using ImGuiChildFlags_ResizeX,ImGuiChildFlags_ResizeY in order to override its current
2517 size. (#1710, #8020)
2518- Scrollbar: Shift+Click scroll to clicked location (pre-1.90.8 default). (#8002, #7328)
2519- Scrollbar: added io.ConfigScrollbarScrollByPage setting (default to true). (#8002, #7328)
2520 Set io.ConfigScrollbarScrollByPage=false to enforce always scrolling to clicked location.
2521- Drags: split ImGuiSliderFlags_AlwaysClamp into two distinct flags: (#7968, #3361, #76)
2522 - ImGuiSliderFlags_AlwaysClamp = ImGuiSliderFlags_ClampOnInput + ImGuiSliderFlags_ClampZeroRange.
2523 - Previously _AlwaysClamp only did the equivalent of _ClampOnInput.
2524 - Added ImGuiSliderFlags_ClampOnInput which is now a subset of AlwaysClamp.
2525 (note that it was the old name of AlwaysClamp, but we are reintroducing that name).
2526 - Added ImGuiSliderFlags_ClampZeroRange to enforce clamping even when v_min==v_max==0.0f
2527 in drag functions. Sliders are not affected.
2528- Tooltips, Drag and Drop: Fixed an issue where the fallback drag and drop payload tooltip
2529 appeared during drag and drop release.
2530- Tooltips, Drag and Drop: Stabilized name of drag and drop tooltip window so that
2531 transitioning from an item tooltip to a drag tooltip doesn't leak window auto-sizing
2532 info from one to the other. (#8036)
2533- Tooltips: Tooltips triggered from touch inputs are positioned above the item. (#8036)
2534- Backends: SDL3: Update for API changes: SDL_bool removal. SDL_INIT_TIMER removal.
2535- Backends: WebGPU: Fixed DAWN api change using WGPUStringView in WGPUShaderSourceWGSL.
2536 (#8009, #8010) [@blitz-research]
2537
2538Docking+Viewports Branch:
2539
2540- Backends: SDL2, SDL3: Fixed building for UWP platforms. (#8008)
2541- Backends: Win32: Use ResisterClassW()/CreateWindowExW() for secondary viewports, to
2542 ensure correct IME input even if the backend was compiled in MBCS mode. (#7979, #5725)
2543
2544
2545-----------------------------------------------------------------------
2546 VERSION 1.91.2 (Released 2024-09-19)
2547-----------------------------------------------------------------------
2548
2549Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.2
2550
2551Breaking changes:
2552
2553 - Internals: using multiple overlaid ButtonBehavior() with same ID will now have the
2554 io.ConfigDebugHighlightIdConflicts=true feature emit a warning. (#8030)
2555 It was one of the rare case where using same ID is legal. Workarounds:
2556 - use single ButtonBehavior() call with multiple _MouseButton flags
2557 - or surround the calls with PushItemFlag(ImGuiItemFlags_AllowDuplicateId, true); ... PopItemFlag()
2558
2559Other changes:
2560
2561- Added io.ConfigDebugHighlightIdConflicts debug feature! (#7961, #7669)
2562 THIS DETECTS THE MOST COMMON USER ERROR BY FIRST-TIME DEAR IMGUI PROGRAMMERS!
2563 - The tool detects when multiple items are sharing the same identifier, due to not
2564 using PushID/PopID in loops, or not using ID stack facilities such as "##" suffixes.
2565 Very frequently it happens when using empty "" labels.
2566 - When hovering an item with a conflicting ID, all visible items with the same ID will
2567 be highlighted and an explanatory tooltip is made visible.
2568 - The feature may be disabled and is exposed in Demo->Tools menu.
2569 - I've been wanting to add this tool for a long time, but was stalled by finding a way to
2570 not make it spammy + make it practically zero cost. After @pthom made various proposals to
2571 solve the same problem (thanks for pushing me!), I decided it was time to finish it.
2572 - Added ImGuiItemFlags_AllowDuplicateId to use with PushItemFlag()/PopItemFlag() if for some
2573 reason you intend to have duplicate identifiers.
2574 - (#74, #96, #480, #501, #647, #654, #719, #843, #894, #1057, #1173, #1390, #1414, #1556, #1768,
2575 #2041, #2116, #2330, #2475, #2562, #2667, #2807, #2885, #3102, #3375, #3526, #3964, #4008,
2576 #4070, #4158, #4172, #4199, #4375, #4395, #4471, #4548, #4612, #4631, #4657, #4796, #5210,
2577 #5303, #5360, #5393, #5533, #5692, #5707, #5729, #5773, #5787, #5884, #6046, #6093, #6186,
2578 #6223, #6364, #6387, #6567, #6692, #6724, #6939, #6984, #7246, #7270, #7375, #7421, #7434,
2579 #7472, #7581, #7724, #7926, #7937 and probably more..)
2580- Nav: pressing any keyboard key while holding Alt disable toggling nav layer on Alt release. (#4439)
2581- MultiSelect+Tables: fixed an issue where box-select would skip items while drag-scrolling
2582 in a table with outer borders. (#7970, #7821).
2583- Inputs: SetNextItemShortcut() with ImGuiInputFlags_Tooltip doesn't show tooltip when item is active.
2584- InputText: internal refactoring to simplify and optimize the code. The ImWchar buffer has been
2585 removed. Simplifications allowed to implement new optimizations for handling very large text buffers
2586 (e.g. in our testing, handling of a 1 MB text buffer is now 3 times faster in VS2022 Debug build).
2587 This is the first step toward more refactoring. (#7925) [@alektron, @ocornut]
2588- InputText: added CJK double-width punctuation to list of separators considered for CTRL+Arrow.
2589- Tables: fixed auto-width columns when using synced-instances of same table. The previous fix
2590 done in v1.90.5 was incomplete. (#7218)
2591- Tables: fixed assertion related to inconsistent outer clipping when sizes are not rounded. (#7957) [@eclbtownsend]
2592- Tables: fixed assertion with tables with borders when clipped by parent. (#6765, #3752, #7428)
2593- Windows: fixed an issue where double-click to collapse could be triggered even while another
2594 item is active, if the item didn't use the left mouse button. (#7841)
2595- Misc: Made it accepted to call SetMouseCursor() with any out-of-bound value, as a way to allow
2596 hacking in custom cursors if desirable.
2597- Fonts: fixed ellipsis "..." rendering width miscalculation bug introduced in 1.91.0. (#7976) [@DDeimos]
2598- TextLinkOpenURL(): modified tooltip to display a verb "Open 'xxxx'". (#7885, #7660)
2599- Backends: SDL2: use SDL_Vulkan_GetDrawableSize() when available. (#7967, #3190) [@scribam]
2600- Backends: GLFW+Emscripten: use OSX behaviors automatically when using contrib glfw port. (#7965, #7915)
2601 [@ypujante]
2602- Backends: WebGPU: Added support for optional IMGUI_IMPL_WEBGPU_BACKEND_DAWN / IMGUI_IMPL_WEBGPU_BACKEND_WGPU
2603 defines to handle ever-changing native implementations. (#7977, #7969, #6602, #6188, #7523) [@acgaudette]
2604
2605Docking+Viewports Branch:
2606
2607- Viewports: fixed an issue where a window manually constrained to the main viewport while crossing
2608 over main viewport bounds isn't translated properly. (#7985)
2609- Backends: SDL2, SDL3, Win32: ensure that ImGuiPlatformMonitor list is available after backend Init call. (#7995)
2610- Backends: Win32: fixed direct calls to platform_io.Platform_SetWindowPos()/Platform_SetWindowSize()
2611 on windows created by application (typically main viewport).
2612- Backends: Win32: fixed an issue where a viewport destroyed while clicking would hog
2613 mouse tracking and temporary lead to incorrect update of HoveredWindow. (#7971)
2614- Backends: SDL3: added support for viewport->ParentViewportId field to support parenting
2615 windows at OS level. (#7973, #7989) [@RT2code]
2616
2617-----------------------------------------------------------------------
2618 VERSION 1.91.1 (Released 2024-09-04)
2619-----------------------------------------------------------------------
2620
2621Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.1
2622
2623Breaking changes:
2624
2625- BeginChild(): renamed ImGuiChildFlags_Border to ImGuiChildFlags_Borders for consistency. [@cfillion]
2626 Kept inline redirection flag (will obsolete).
2627- IO: moved clipboard functions from ImGuiIO to ImGuiPlatformIO:
2628 - io.GetClipboardTextFn -> platform_io.Platform_GetClipboardTextFn
2629 - io.SetClipboardTextFn -> platform_io.Platform_SetClipboardTextFn
2630 - in function signatures, changed 'void* user_data' to 'ImGuiContext* ctx' for consistency
2631 with other functions. Pull your user data from platform_io.ClipboardUserData if used.
2632 - as this is will affect all users of custom engines/backends, we are providing proper
2633 legacy redirection (will obsolete).
2634- IO: moved other functions from ImGuiIO to ImGuiPlatformIO:
2635 - io.PlatformOpenInShellFn -> platform_io.Platform_OpenInShellFn (#7660)
2636 - io.PlatformSetImeDataFn -> platform_io.Platform_SetImeDataFn
2637 - io.PlatformLocaleDecimalPoint -> platform_io.Platform_LocaleDecimalPoint (#7389, #6719, #2278)
2638 - access those via GetPlatformIO() instead of GetIO().
2639 (Because PlatformOpenInShellFn and PlatformSetImeDataFn were introduced very recently and
2640 often automatically set by core library and backends, we are exceptionally not maintaining
2641 a legacy redirection symbol for those two.)
2642- Commented the old ImageButton() signature obsoleted in 1.89 (~August 2022). (#5533, #4471, #2464, #1390)
2643 - old ImageButton() used ImTextureId as item id (created issue with e.g. multiple buttons in same scope, transient texture id values, opaque computation of ID)
2644 - new ImageButton() requires an explicit 'const char* str_id'
2645 - old ImageButton() had frame_padding' override argument.
2646 - new ImageButton() always use style.FramePadding, which you can modify using PushStyleVar()/PopStyleVar().
2647
2648Other changes:
2649
2650- IO: Added GetPlatformIO() and ImGuiPlatformIO, pulled from 'docking' branch, which
2651 is a centralized spot to connect os/platform/renderer related functions.
2652 Clipboard, IME and OpenInShell hooks are moved here. (#7660)
2653- IO, InputText: fixed an issue where typing text in an InputText() would defer character
2654 processing by one frame, because of the trickling input queue. Reworked interleaved
2655 keys<>char trickling to take account for keys known to input characters. (#7889, #4921, #4858)
2656- Windows: adjust default ClipRect to better match rendering of thick borders (which are in
2657 theory not supported). Compensate for the fact that borders are centered around the windows
2658 edge rather than inner. (#7887, #7888 + #3312, #7540, #3756, #6170, #6365)
2659- Made BeginItemTooltip() and IsItemHovered() with delay flag infer an implicit ID (for
2660 ID-less items such as Text element) in a way that works when item resizes. (#7945, #1485)
2661- MultiSelect+TreeNode+Drag and Drop: fixed an issue where carrying a drag and drop payload
2662 over an already open tree node using multi-select would incorrectly select it. (#7850)
2663- MultiSelect+TreeNode: default open behavior is _OpenOnDoubleClick + _OpenOnArrow when
2664 used in a multi-select context without any ImGuiTreeNode_OpenOnXXX flags set. (#7850)
2665- Tables: fixes/revert a 1.90 change were outer border would be moved bottom and right
2666 by an extra pixel + rework the change so that contents doesn't overlap the bottom and
2667 right border in a scrolling table. (#6765, #3752, #7428)
2668- Tables: fixed an issue resizing columns or querying hovered column/row when using multiple
2669 synced instances that are laid out at different X positions. (#7933)
2670- Tabs: avoid queuing a refocus when tab is already focused, which would have the
2671 side-effect of e.g. closing popup on a mouse release. (#7914)
2672- InputText: allow callback to update buffer while in read-only mode. (imgui_club/#46)
2673- InputText: fixed an issue programmatically refocusing a multi-line input which was just active. (#4761, #7870)
2674- TextLink(), TextLinkOpenURL(): change mouse cursor to Hand shape when hovered. (#7885, #7660)
2675- Tooltips, Drag and Drop: made it possible to override BeginTooltip() position while inside
2676 a drag and drop source or target: a SetNextWindowPos() call won't be overridden. (#6973)
2677- PlotHistogram, PlotLines: register item ID and use button behavior in a more idiomatic manner,
2678 fixes preventing e.g. GetItemID() and other ID-based helper to work. (#7935, #3072)
2679- Style: added PushStyleVarX(), PushStyleVarY() helpers to conveniently modify only
2680 one component of a ImVec2 var.
2681- Fonts: made it possible to use PushFont()/PopFont() calls across Begin() calls. (#3224, #3875, #6398, #7903)
2682- Backends:
2683 - Backends: GLFW: added ImGui_ImplGlfw_Sleep() helper function because GLFW does not
2684 provide a way to do a portable sleep. (#7844)
2685 - Backends: GLFW+Emscripten: Use OpenURL() from GLFW3 contrib port when available and using
2686 the contrib port instead of Emscripten own GLFW3 implementation. (#7647, #7915, #7660) [@ypujante]
2687 - Backends: SDL2, SDL3: ignore events of other SDL windows. (#7853) [@madebr, @ocornut]
2688 - Backends: SDL2, SDL3: storing SDL_WindowID inside ImGuiViewport::PlatformHandle instead of SDL_Window*.
2689 - Backends: SDL3: Update for API changes: SDL_GetGamepads() memory ownership logic was reverted back
2690 by SDL3 on July 27. (#7918, #7898, #7807) [@cheyao, @MattGuerrette]
2691 - Backends: GLFW: passing null window to glfwGetClipboardString()/glfwSetClipboardString()
2692 since GLFW own tests are doing that and it seems unnecessary.
2693 - Backends: SDL2, SDL3, GLFW, OSX, Allegro: update to set function handlers in ImGuiPlatformIO
2694 instead of ImGuiIO.
2695- Examples:
2696 - Examples: GLFW (all), SDL2 (all), SDL3 (all), Win32+OpenGL3: rework examples main loop
2697 to handle minimization without burning CPU or GPU by running unthrottled code. (#7844)
2698 - Examples: SDL3: Update for API changes: SDL_Init() returns 0 on failure.
2699
2700Docking+Viewports Branch:
2701
2702- Viewports: added optional platform_io.Platform_GetWindowWorkAreaInsets() hook
2703 to allow backends to alter the default per-viewport work-area. (#7823)
2704- Backends: don't report monitors with DpiScale of 0, which seemed to be reported for
2705 virtual monitors instead by accessibility drivers. (#7902) [@nicolasnoble, @ocornut]
2706- Backends: SDL2, SDL3: using SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN to support the
2707 ImGuiViewportFlags_NoFocusOnAppearing flag, instead of using a Win32-specific hack.
2708 (#7896) [@RT2Code]
2709
2710-----------------------------------------------------------------------
2711 VERSION 1.91.0 (Released 2024-07-30)
2712-----------------------------------------------------------------------
2713
2714Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.91.0
2715
2716Breaking changes:
2717
2718- IO, IME: renamed platform IME hook and added explicit context for consistency and future-proofness.
2719 - old: io.SetPlatformImeDataFn(ImGuiViewport* viewport, ImGuiPlatformImeData* data);
2720 - new: io.PlatformSetImeDataFn(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data);
2721 It is expected that for a vast majority of users this is automatically set by core
2722 library and/or platform backend so it won't have any effect.
2723- Obsoleted GetContentRegionMax(), GetWindowContentRegionMin() and GetWindowContentRegionMax(). (#7838)
2724 You should never need those functions! You can do everything in less a confusing manner by only
2725 using GetCursorScreenPos() and GetContentRegionAvail(). Also always consider that if you are using
2726 GetWindowPos() and GetCursorPos() you may also be making things unnecessarily complicated.
2727 I repeat: You can do everything with GetCursorScreenPos() and GetContentRegionAvail()!
2728 - GetWindowContentRegionMax().x - GetCursorPos().x --> GetContentRegionAvail().x
2729 - GetWindowContentRegionMax().x + GetWindowPos().x --> GetCursorScreenPos().x + GetContentRegionAvail().x // when called from left edge of window
2730 - GetContentRegionMax() --> GetContentRegionAvail() + GetCursorScreenPos() - GetWindowPos() // right edge in local coordinates
2731 - GetWindowContentRegionMax().x - GetWindowContentRegionMin().x --> GetContentRegionAvail() // when called from left edge of window
2732- Item flag changes:
2733 - Obsoleted PushButtonRepeat()/PopButtonRepeat() in favor of using new PushItemFlag()/PopItemFlag()
2734 with ImGuiItemFlags_ButtonRepeat. Kept inline redirecting functions (will obsolete).
2735 - Obsoleted PushTabStop()/PopTabStop() in favor of using new PushItemFlag()/PopItemFlag()
2736 with ImGuiItemFlags_NoTabStop. Kept inline redirecting functions (will obsolete).
2737 - Renamed ImGuiSelectableFlags_DontClosePopups to ImGuiSelectableFlags_NoAutoClosePopups for
2738 consistency. Kept inline redirecting functions (will obsolete).
2739 + Internals: changed/inverted ImGuiItemFlags_SelectableDontClosePopup (default==false) to
2740 ImGuiItemFlags_AutoClosePopups (default==true), same logic, only inverted behavior.
2741 (#1379, #1468, #2200, #4936, #5216, #7302, #7573)
2742- Commented out obsolete ImGuiModFlags (renamed to ImGuiKeyChord in 1.89). (#4921, #456)
2743- Commented out obsolete ImGuiModFlags_XXX values (renamed to ImGuiMod_XXX in 1.89). (#4921, #456)
2744 - ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl, ImGuiModFlags_Shift -> ImGuiMod_Shift etc.
2745- Backends: GLFW+Emscripten: Renamed ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback() to
2746 ImGui_ImplGlfw_InstallEmscriptenCallbacks(), with an additional GLFWWindow* parameter. (#7647) [@ypujante]
2747
2748Other changes:
2749
2750- Added TextLink(), TextLinkOpenURL() hyperlink widgets. (#7660)
2751- IO: added io.PlatformOpenInShellFn handler to open a link/folder/file in OS shell. (#7660)
2752 (*EDIT* From next version 1.91.1 we moved this to platform_io.Platform_OpenInShellFn *EDIT**)
2753 Added IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS to disable default Windows/Linux/Mac implementations.
2754- IO: added io.ConfigNavSwapGamepadButtons to swap Activate/Cancel (A<>B) buttons, to match the
2755 typical "Nintendo/Japanese consoles" button layout when using Gamepad navigation. (#787, #5723)
2756- Added PushItemFlag()/PopItemFlags(), ImGuiItemFlags to modify shared item flags:
2757 - Added ImGuiItemFlags_NoTabStop to disable tabbing through items.
2758 - Added ImGuiItemFlags_NoNav to disable any navigation and focus of items. (#787)
2759 - Added ImGuiItemFlags_NoNavDefaultFocus to disable item being default focus. (#787)
2760 - Added ImGuiItemFlags_ButtonRepeat to enable repeat on any button-like behavior.
2761 - Added ImGuiItemFlags_AutoClosePopups to disable menu items/selection auto closing parent popups.
2762 Disabling this was previously possible for Selectable() via a direct flag but not for MenuItem().
2763 (#1379, #1468, #2200, #4936, #5216, #7302, #7573)
2764 - This was mostly all previously in imgui_internal.h.
2765- Multi-Select: added multi-select API and demos. (#1861, #6518)
2766 - This system implements standard multi-selection idioms (CTRL+mouse click, CTRL+keyboard moves,
2767 SHIFT+mouse click, SHIFT+keyboard moves, etc.) with support for clipper (not submitting non-visible
2768 items), box-selection with scrolling, and many other details.
2769 - In the spirit of Dear ImGui design, your code owns both items and actual selection data.
2770 This is designed to allow all kinds of selection storage you may use in your application
2771 (e.g. set/map/hash, intrusive selection, interval trees, up to you).
2772 - The supported widgets are Selectable(), Checkbox(). TreeNode() is also technically supported but...
2773 using this correctly is more complicated. You need some sort of linear/random access to your tree,
2774 which is suited to advanced trees setups already implementing filters and clipper.
2775 We will work toward simplifying our existing demo for trees.
2776 - A helper ImGuiSelectionBasicStorage is provided to facilitate getting started in a typical app
2777 (likely to suit a majority of users).
2778 - Documentation:
2779 - Wiki page https://github.com/ocornut/imgui/wiki/Multi-Select for API overview.
2780 - Demo code + headers are well commented.
2781 - Added BeginMultiSelect(), EndMultiSelect(), SetNextItemSelectionUserData().
2782 - Added IsItemToggledSelection() for use if you need latest selection update during current iteration.
2783 - Added ImGuiMultiSelectIO and ImGuiSelectionRequest structures:
2784 - BeginMultiSelect() and EndMultiSelect() return a ImGuiMultiSelectIO structure, which
2785 is mostly an array of ImGuiSelectionRequest actions (clear, select all, set range, etc.)
2786 - Other fields are helpful when using a clipper, or wanting to handle deletion nicely.
2787 - Added ImGuiSelectionBasicStorage helper to store and maintain a selection (optional):
2788 - This is similar to if you used e.g. a std::set<ID> to store a selection, with all the right
2789 glue to honor ImGuiMultiSelectIO requests. Most applications can use that.
2790 - Added ImGuiSelectionExternalStorage helper to maintain an externally stored selection (optional):
2791 - Helpful to easily bind multi-selection to e.g. an array of checkboxes.
2792 - Added ImGuiMultiSelectFlags options:
2793 - ImGuiMultiSelectFlags_SingleSelect
2794 - ImGuiMultiSelectFlags_NoSelectAll
2795 - ImGuiMultiSelectFlags_NoRangeSelect
2796 - ImGuiMultiSelectFlags_NoAutoSelect
2797 - ImGuiMultiSelectFlags_NoAutoClear
2798 - ImGuiMultiSelectFlags_NoAutoClearOnReselect (#7424)
2799 - ImGuiMultiSelectFlags_BoxSelect1d
2800 - ImGuiMultiSelectFlags_BoxSelect2d
2801 - ImGuiMultiSelectFlags_BoxSelectNoScroll
2802 - ImGuiMultiSelectFlags_ClearOnEscape
2803 - ImGuiMultiSelectFlags_ClearOnClickVoid
2804 - ImGuiMultiSelectFlags_ScopeWindow (default), ImGuiMultiSelectFlags_ScopeRect
2805 - ImGuiMultiSelectFlags_SelectOnClick (default), ImGuiMultiSelectFlags_SelectOnClickRelease
2806 - ImGuiMultiSelectFlags_NavWrapX
2807 - Demo: Added "Examples->Assets Browser" demo.
2808 - Demo: Added "Widgets->Selection State & Multi-Select" section, with:
2809 - Multi-Select
2810 - Multi-Select (with clipper)
2811 - Multi-Select (with deletion)
2812 - Multi-Select (dual list box) (#6648)
2813 - Multi-Select (in a table)
2814 - Multi-Select (checkboxes)
2815 - Multi-Select (multiple scopes)
2816 - Multi-Select (tiled assert browser)
2817 - Multi-Select (trees) (#1861)
2818 - Multi-Select (advanced)
2819- Inputs: added SetItemKeyOwner(ImGuiKey key) in public API.
2820 This is a simplified version of a more complete set of function available in imgui_internal.h.
2821 One common use-case for this is to allow your widgets to disable standard inputs behaviors such
2822 as Tab or Alt handling, Mouse Wheel scrolling, etc.
2823 (#456, #2637, #2620, #2891, #3370, #3724, #4828, #5108, #5242, #5641)
2824 // Hovering or activating the button will disable mouse wheel default behavior to scroll
2825 InvisibleButton(...);
2826 SetItemKeyOwner(ImGuiKey_MouseWheelY);
2827- Nav: fixed clicking window decorations (e.g. resize borders) from losing focused item when
2828 within a child window using ImGuiChildFlags_NavFlattened.
2829- InputText: added '\' and '/' as word separator. (#7824, #7704) [@reduf]
2830- TreeNode: added SetNextItemStorageID() to specify/override the identifier used for persisting
2831 open/close storage. Useful if needing to often read/write from storage without manipulating
2832 the ID stack. (#7553, #6990, #3823, #1131)
2833- Selectable: added ImGuiSelectableFlags_Highlight flag to highlight items independently from
2834 the hovered state. (#7820) [@rerilier]
2835- Clipper: added SeekCursorForItem() function. When using ImGuiListClipper::Begin(INT_MAX) you can
2836 can use the clipper without knowing the amount of items beforehand. (#1311)
2837 In this situation, call ImGuiListClipper::SeekCursorForItem(items_count) at the end of your iteration
2838 loop to position the layout cursor correctly. This is done automatically if provided a count to Begin().
2839- Groups, Tables: fixed EndGroup() failing to correctly capture current table occupied size. (#7543)
2840- Style, TabBar: added style.TabBarOverlineSize / ImGuiStyleVar_TabBarOverlineSize to manipulate
2841 thickness of the horizontal line over selected tabs. [@DctrNoob]
2842- Style: close button and collapse/window-menu button hover highlight made rectangular instead of round.
2843- Misc: added GetID(int) variant for consistency. (#7111)
2844- Debug Tools:
2845 - Debug Log: Added IMGUI_DEBUG_LOG(), ImGui::DebugLog() in public API. (#5855)
2846 Printed entries include imgui frame counter prefix + are redirected to ShowDebugLogWindow() and
2847 other configurable locations. Always call IMGUI_DEBUG_LOG() for maximum stripping in caller code.
2848 - Debug Log: Added "Configure Outputs.." button. (#5855)
2849 - Debug Log: Fixed incorrect checkbox layout when partially clipped.
2850- Demo: Reworked "Property Editor" demo in a manner that more resemble the tree data and
2851 struct description data that a real application would want to use.
2852- Backends:
2853 - Backends: Win32: Fixed ImGuiMod_Super being mapped to VK_APPS instead of (VK_LWIN || VK_RWIN).
2854 (#7768, #4858, #2622) [@Aemony]
2855 - Backends: SDL3: Update for API changes: SDL_GetGamepads() memory ownership change. (#7807)
2856 - Backends: SDL3: Update for API changes: SDL_GetClipboardText() memory ownership change. (#7801)
2857 - Backends: SDL3: Update for API changes: SDLK_x renames and SDLK_KP_x removals (#7761, #7762)
2858 - Backends: SDL3: Update for API changes: SDL_GetProperty() change to SDL_GetPointerProperty(). (#7794) [@wermipls]
2859 - Backends: SDL2,SDL3,OSX: Update for io.SetPlatformImeDataFn() -> io.PlatformSetImeDataFn() rename.
2860 - Backends: GLFW,SDL2: Added io.PlatformOpenInShellFn handler for web/Emscripten versions. (#7660)
2861 [@ypujante, @ocornut]
2862 - Backends: GLFW+Emscripten: Added support for GLFW3 contrib port which fixes many of the things
2863 not supported by the embedded GLFW: gamepad support, mouse cursor shapes, copy to clipboard,
2864 workaround for Super/Meta key, different ways of resizing, multi-window (glfw/canvas) support.
2865 (#7647) [@ypujante]
2866 - Backends: GLFW+Emscripten: Fixed Emscripten warning when using mouse wheel on some setups
2867 "Unable to preventDefault inside passive event listener". (#7647, #7600) [@ypujante]
2868
2869Docking+Viewports Branch:
2870
2871- Viewports: Always update fallback monitor to primary monitor if there's one.
2872- Backends: OSX: Fixed NSAppKitVersion version limit for setWantsBestResolutionOpenGLSurface
2873 usage. (#7814) [@YGXXD]
2874- Backends: SDL3: Fixed a bug preventing ImGuiViewportFlags_NoFocusOnAppearing support from
2875 working (Windows only).
2876- Backends: Vulkan: ImGui_ImplVulkan_SwapBuffers() used by secondary viewports still proceeds
2877 increasing frame counters on VK_SUBOPTIMAL_KHR. (#7825, #3881) [@NostraMagister]
2878
2879
2880-----------------------------------------------------------------------
2881 VERSION 1.90.9 (Released 2024-07-01)
2882-----------------------------------------------------------------------
2883
2884Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.9
2885
2886Breaking changes:
2887
2888- Removed old nested structure: renaming ImGuiStorage::ImGuiStoragePair type to
2889 ImGuiStoragePair (simpler for many languages). No significant nested type left.
2890- BeginChild: added ImGuiChildFlags_NavFlattened as a replacement for the window
2891 flag ImGuiWindowFlags_NavFlattened: the feature only ever made sense for
2892 BeginChild() calls anyhow. (#7687) [@cfillion]
2893 - old: BeginChild("Name", size, 0, ImGuiWindowFlags_NavFlattened);
2894 - new: BeginChild("Name", size, ImGuiChildFlags_NavFlattened, 0)
2895 Kept inline redirection flag (will obsolete).
2896- Style: renamed tab colors for clarity and consistency with other changes: (#261, #351)
2897 - ImGuiCol_TabActive -> ImGuiCol_TabSelected
2898 - ImGuiCol_TabUnfocused -> ImGuiCol_TabDimmed
2899 - ImGuiCol_TabUnfocusedActive -> ImGuiCol_TabDimmedSelected
2900 Kept inline redirecting enums (will obsolete).
2901- IO: io.ClearInputKeys() (first exposed in 1.89.8) doesn't clear mouse data.
2902 Newly added io.ClearInputMouse() does. (#4921)
2903- Drag and Drop: renamed ImGuiDragDropFlags_SourceAutoExpirePayload to
2904 ImGuiDragDropFlags_PayloadAutoExpire. Kept inline redirecting enum (will obsolete). (#1725, #143)
2905
2906Other changes:
2907
2908- IO: do not disable io.ConfigWindowsResizeFromEdges (which allow resizing from borders
2909 and lower-left corner) when ImGuiBackendFlags_HasMouseCursors is not set by backend.
2910 The initial reasoning is that resizing from borders feels better when correct mouse cursor
2911 shape change as honored by backends. Keeping this enabling will hopefully increase pressure
2912 on third-party backends to set ImGuiBackendFlags_HasMouseCursors and honor changes of
2913 ImGui::GetMouseCursor() value. (#1495)
2914- IO: do not claim io.WantCaptureMouse=true on the mouse release frame of a button
2915 which was pressed over void/underlying app, which is consistent/needed to allow the
2916 mouse up event of a drag over void/underlying app to catch release. (#1392) [@Moka42]
2917- IO: Added io.ClearInputMouse() to clear mouse state. (#4921)
2918- IO: Added ImGuiConfigFlags_NoKeyboard for consistency and convenience. (#4921)
2919- Windows: BeginChild(): fixed a glitch when during a resize of a child window which is
2920 tightly close to the boundaries of its parent (e.g. with zero WindowPadding), the child
2921 position could have temporarily be moved around by erroneous padding application. (#7706)
2922- TabBar, Style: added ImGuiTabBarFlags_DrawSelectedOverline option to draw a horizontal
2923 line over selected tabs to increase visibility. This is used by docking.
2924 Added corresponding ImGuiCol_TabSelectedOverline and ImGuiCol_TabDimmedSelectedOverline colors.
2925- Tables: added TableGetHoveredColumn() to public API, as an alternative to testing for
2926 'TableGetColumnFlags(column) & ImGuiTableColumnFlags_IsHovered' on each column. (#3740)
2927- Disabled, Inputs: fixed using Shortcut() or SetNextItemShortcut() within a disabled block
2928 bypassing the disabled state. (#7726)
2929- Disabled: Reworked 1.90.8 behavior of Begin() not inheriting current BeginDisabled() state,
2930 to make it that only tooltip windows are temporarily clearing it. (#211, #7640)
2931- Drags: added ImGuiSliderFlags_WrapAround flag for DragInt(), DragFloat() etc. (#7749)
2932- Drag and Drop: BeginDragDropSource() with ImGuiDragDropFlags_SourceExtern sets
2933 active id so a multi-frame extern source doesn't interfere with hovered widgets. (#143)
2934- Drag and Drop: BeginDragDropSource() with ImGuiDragDropFlags_SourceExtern does not assume
2935 a mouse button being pressed. Facilitate implementing cross-context drag and drop. (#143)
2936- Drag and Drop: Added ImGuiDragDropFlags_PayloadNoCrossContext/_PayloadNoCrossProcess flags
2937 as metadata to specify that a payload may not be copied outside the context/process by
2938 some logic aiming to copy payloads around.
2939- Drag and Drop: Fixes an issue when elapsing payload would be based on last payload
2940 frame instead of last drag source frame, which makes a difference if not resubmitting
2941 payload every frame. (#143)
2942- Debug Tools: Metrics/Debugger: Browsing a Storage perform hover lookup on identifier.
2943- Viewports: Backported 'void* ImGuiViewport::PlatformHandle' from docking branch for
2944 use by backends.
2945- imgui_freetype: Fixed divide by zero while handling FT_PIXEL_MODE_BGRA glyphs. (#7267, #3369)
2946- Backends: OpenGL2, OpenGL3: ImGui_ImplOpenGL3_NewFrame() recreates font texture if it
2947 has been destroyed by ImGui_ImplOpenGL3_DestroyFontsTexture(). (#7748) [@mlauss2]
2948- Backends: SDL3: Update for API removal of keysym field in SDL_KeyboardEvent. (#7728)
2949- Backends: SDL3: Update for SDL_StartTextInput()/SDL_StopTextInput() API changes. (#7735)
2950- Backends: SDL3: Update for SDL_SetTextInputRect() API rename. (#7760, #7754) [@maxortner01]
2951- Backends: SDLRenderer3: Update for SDL_RenderGeometryRaw() API changes. (SDL#9009).
2952- Backends: Vulkan: Remove Volk/ from volk.h #include directives. (#7722, #6582, #4854)
2953 [@martin-ejdestig]
2954- Examples: SDL3: Remove use of SDL_HINT_IME_NATIVE_UI since new SDL_HINT_IME_IMPLEMENTED_UI
2955 values has a more suitable default for our case case.
2956- Examples: GLFW+Vulkan, SDL+Vulkan: handle swap chain resize even without Vulkan
2957 returning VK_SUBOPTIMAL_KHR, which doesn't seem to happen on Wayland. (#7671)
2958 [@AndreiNego, @ocornut]
2959
2960Docking+Viewports Branch:
2961
2962- Windows, Menus: Fixed an issue where the size of sub-menu in their own viewport
2963 would be erroneously clamped to the size of main viewport. (#7730)
2964- Merged GetBackgroundDrawList() and GetBackgroundDrawList(ImGuiViewport* viewport)
2965 api entry points into a same one GetBackgroundDrawList(ImGuiViewport* viewport = NULL);
2966- Merged GetForegroundDrawList() and GetForegroundDrawList(ImGuiViewport* viewport)
2967 api entry points into a same one GetForegroundDrawList(ImGuiViewport* viewport = NULL);
2968- Backends: SDL3: Update for introduction of SDL_GLContext from void*. (#7701, #7702)
2969 [@bcsanches]
2970- Backends: Win32: Secondary viewports WndProc handler retrieve/set imgui context from
2971 the HWND, allowing WndProc dispatch to work in multi-context setups.
2972
2973
2974-----------------------------------------------------------------------
2975 VERSION 1.90.8 (Released 2024-06-06)
2976-----------------------------------------------------------------------
2977
2978Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.8
2979
2980Breaking changes:
2981
2982- Reordered various ImGuiInputTextFlags values. This should NOT be breaking unless
2983 you are using generated headers that have values not matching the main library.
2984- Removed ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft
2985 from imgui.h, was mostly unused and misleading.
2986
2987Other changes:
2988
2989- Inputs: fixed IsMouseClicked(..., repeat=true); broken in 1.90.7 on 2024/05/22.
2990 (due to an internal api parameter swap, repeat wouldn't be honored and
2991 ownership would be accidentally checked even though this api is meant to not
2992 check ownership). (#7657) [@korenkonder]
2993- Windows: fixed altering FramePadding mid-frame not correctly affecting logic
2994 responsible for honoring io.ConfigWindowsMoveFromTitleBarOnly. (#7576, #899)
2995- Scrollbar: made scrolling logic more standard: clicking above or below the
2996 grab scrolls by one page, holding mouse button repeats scrolling. (#7328, #150)
2997- Scrollbar: fixed miscalculation of vertical scrollbar visibility when required
2998 solely by the presence of a horizontal scrollbar. (#1574)
2999- InputScalar, InputInt, InputFloat: added ImGuiInputTextFlags_ParseEmptyRefVal
3000 to parse an empty field as zero-value. (#7305) [@supermerill, @ocornut]
3001- InputScalar, InputInt, InputFloat: added ImGuiInputTextFlags_DisplayEmptyRefVal
3002 to display a zero-value as empty. (#7305) [@supermerill, @ocornut]
3003- Popups: fixed an issue preventing to close a popup opened over a modal by clicking
3004 over void (it required clicking over the visible part of the modal). (#7654)
3005- Tables: fixed an issue where ideal size reported to parent container wouldn't
3006 correctly take account of inner scrollbar, affecting potential auto-resize of
3007 parent container. (#7651)
3008- Tables: fixed a bug where after disabling the ScrollY flag for a table,
3009 previous scrollbar width would be accounted for. (#5920)
3010- Combo: simplified Combo() API uses a list clipper (due to its api it wasn't
3011 previously trivial before we added clipper.IncludeItemByIndex() function).
3012- Disabled: nested tooltips or other non-child window within a BeginDisabled()
3013 block disable the disabled state. (#211, #7640)
3014- Misc: made ImGuiDir and ImGuiSortDirection stronger-typed enums.
3015- Backends: SDL3: Update for SDL_SYSTEM_CURSOR_xxx api renames. (#7653)
3016
3017
3018-----------------------------------------------------------------------
3019 VERSION 1.90.7 (Released 2024-05-27)
3020-----------------------------------------------------------------------
3021
3022Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.7
3023
3024Breaking changes:
3025
3026- Inputs: on macOS X, Cmd and Ctrl keys are now automatically swapped by io.AddKeyEvent(),
3027 as this naturally align with how macOS X uses those keys. (#2343, #4084, #5923, #456)
3028 - Effectively it means that e.g. ImGuiMod_Ctrl | ImGuiKey_C is a valid idiomatic shortcut
3029 for both Windows and Mac style users.
3030 - It shouldn't really affect your code unless you had explicit/custom shortcut swapping in
3031 place for macOS X apps in your input logic.
3032 - Removed ImGuiMod_Shortcut which was previously dynamically remapping to Ctrl or Cmd/Super.
3033 It is now unnecessary to specific cross-platform idiomatic shortcuts.
3034 Kept symbols redirecting ImGuiMod_Shortcut to ImGuiMod_Ctrl (will obsolete).
3035- Commented out obsolete symbols renamed in 1.88 (May 2022):
3036 CaptureKeyboardFromApp() -> SetNextFrameWantCaptureKeyboard()
3037 CaptureMouseFromApp() -> SetNextFrameWantCaptureMouse()
3038- Backends: SDL_Renderer2/SDL_Renderer3: ImGui_ImplSDLRenderer2_RenderDrawData() and
3039 ImGui_ImplSDLRenderer3_RenderDrawData() now takes a SDL_Renderer* parameter. This was previously
3040 overlooked from the API but it will allow eventual support for multi-viewports.
3041
3042Other changes:
3043
3044- Windows: BeginChild(): fixed visibility of fully clipped child windows and tables to Test Engine.
3045- Windows: BeginChild(): fixed auto-fit calculation when using either (not both) ResizeX/ResizeY
3046 and double-clicking on a border. Calculation incorrectly didn't always account for scrollbar as
3047 it assumed the other axis would also be auto-fit. (#1710)
3048- Inputs: added shortcut and routing system in public API. (#456, #2637) [BETA]
3049 - The general idea is that several callers may register interest in a shortcut, and only one owner gets it.
3050 - in Parent: call Shortcut(Ctrl+S) // When Parent is focused, Parent gets the shortcut.
3051 - in Child1: call Shortcut(Ctrl+S) // When Child1 is focused, Child1 gets the shortcut (Child1 overrides Parent shortcuts)
3052 - in Child2: no call // When Child2 is focused, Parent gets the shortcut.
3053 The whole system is order independent, so if Child1 makes its calls before Parent, results will be identical.
3054 This is an important property as it facilitate working with foreign code or larger codebase.
3055 - Added Shortcut() function:
3056 e.g. Using ImGui::Shortcut(ImGuiMod_Ctrl | ImGuiKey_C); with default policy:
3057 - checks that CTRL+C is pressed,
3058 - and that current window is in focus stack,
3059 - and that no other requests for CTRL+C have been made from higher priority locations
3060 (e.g. deeper in the window/item stack).
3061 - Added SetNextItemShortcut() to set a shortcut to locally or remotely press or activate
3062 an item (depending on specified routing policy: using ImGuiInputFlags_RouteGlobal the item
3063 shortcut may be executed even if its window is not in focus stack).
3064 Items like buttons are not fully activated, in the sense that they get pressed but another
3065 active item, e.g. InputText() won't be deactivated.
3066 - Added routing policies for Shortcut(), SetNextItemShortcut(): (#456, #2637)
3067 - ImGuiInputFlags_RouteFocused: focus stack route (default)
3068 - ImGuiInputFlags_RouteActive: only route to active item
3069 - ImGuiInputFlags_RouteGlobal: route globally, unless a focus route claim shame shortcut.
3070 - ImGuiInputFlags_RouteAlways: no routing submission, no routing check.
3071 - Added other shortcut/routing options: (#456, #2637)
3072 - ImGuiInputFlags_Repeat: for use by Shortcut() and by upcoming rework of various
3073 input functions (which are still internal for now).
3074 - ImGuiInputFlags_Tooltip: for SetNextItemShortcut() to show a tooltip when hovering item.
3075 - ImGuiInputFlags_RouteOverFocused: global route takes priority over focus route.
3076 - ImGuiInputFlags_RouteOverActive: global route takes priority over active item.
3077 - ImGuiInputFlags_RouteUnlessBgFocused: global route disabled if no imgui window focused.
3078 - ImGuiInputFlags_RouteFromRootWindow: route evaluated from the point of view of root window rather than current window.
3079- Inputs: (OSX) Fixes variety of code which inconsistently required using Ctrl instead of Cmd.
3080 - e.g. Drags/Sliders now use Cmd+Click to input a value. (#4084)
3081 - Some shortcuts still uses Ctrl on Mac: e.g. Ctrl+Tab to switch windows. (#4828)
3082- Inputs: (OSX) Ctrl+Left Click alias as a Right click. (#2343) [@haldean, @ocornut]
3083- Inputs: Fixed ImGui::GetKeyName(ImGuiKey_None) from returning "N/A" or "None" depending
3084 on value of IMGUI_DISABLE_OBSOLETE_KEYIO. It always returns "None".
3085- Nav: fixed holding Ctrl or gamepad L1 from not slowing down keyboard/gamepad tweak speed.
3086 Broken during a refactor refactor for 1.89. Holding Shift/R1 to speed up wasn't broken.
3087- Tables: fixed cell background of fully clipped row overlapping with header. (#7575, #7041) [@prabuinet]
3088- Demo: Added "Inputs & Focus -> Shortcuts" section. (#456, #2637)
3089- Demo: Documents: Added shortcuts and renaming tabs/documents. (#7233)
3090- Examples: Win32+DX9,DX10,DX11,DX12: rework main loop to handle minimization and screen
3091 locking without burning resources by running unthrottled code. (#2496, #3907, #6308, #7615)
3092- Backends: all backends + demo now call IMGUI_CHECKVERSION() to verify ABI compatibility between caller
3093 code and compiled version of Dear ImGui. If you get an assert it most likely mean you have a build issue,
3094 read comments near the assert. (#7568)
3095- Backends: Win32: undo an assert introduced in 1.90.6 which didn't allow WndProc
3096 handler to be called before backend initialization. Because of how ::CreateWindow()
3097 calls in WndProc this is facilitating. (#6275) [@MennoVink]
3098- Backends, Examples: SDL3: updates for latest SDL3 API changes. (#7580) [@kuvaus, @ocornut]
3099
3100Breaking changes IF you were using imgui_internal.h versions of Shortcut() or owner-aware
3101versions of IsKeyPressed(), IsKeyChordPressed(), IsMouseClicked() prior to this version:
3102
3103- Inputs (Internals): Renamed ImGuiKeyOwner_None to ImGuiKeyOwner_NoOwner, to make use more
3104 explicit and reduce confusion with the fact it is a non-zero value and cannot be a default.
3105- Inputs (Internals): Renamed symbols global routes:
3106 Renamed ImGuiInputFlags_RouteGlobalLow -> ImGuiInputFlags_RouteGlobal (this is the suggested global route)
3107 Renamed ImGuiInputFlags_RouteGlobal -> ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteOverFocused
3108 Renamed ImGuiInputFlags_RouteGlobalHigh -> ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteOverFocused | ImGuiInputFlags_RouteOverActive
3109- Inputs (Internals): Shortcut(), SetShortcutRouting(): swapped last two parameters order
3110 in function signatures:
3111 Before: Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0);
3112 After: Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0, ImGuiID owner_id = 0);
3113- Inputs (Internals): owner-aware versions of IsKeyPressed(), IsKeyChordPressed(), IsMouseClicked():
3114 swapped last two parameters order in function signatures:
3115 Before: IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0);
3116 After: IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id = 0);
3117 Before: IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0);
3118 After: IsMouseClicked(ImGuiMouseButton button, ImGuiInputFlags flags, ImGuiID owner_id = 0);
3119- For several reasons those changes makes sense. They were all made before making some of
3120 those API public. Only past users of imgui_internal.h with the extra parameters will be affected.
3121 Added asserts for valid flags in various functions to detect _some_ misuses, BUT NOT ALL.
3122
3123Docking+Viewports Branch:
3124
3125- Docking: *BREAKING* changed signature of DockSpaceOverViewport() to allow passing
3126 an explicit dockspace id if desired. (#7611)
3127 Before: DockSpaceOverViewport(const ImGuiViewport* viewport = NULL, ImGuiDockNodeFlags flags = 0, ...);
3128 After: DockSpaceOverViewport(ImGuiID dockspace_id = 0, const ImGuiViewport* viewport = NULL, ImGuiDockNodeFlags flags = 0, ...);
3129 Simply add a leading 0 to your existing calls to DockSpaceOverViewport() if you have any.
3130- Tables: resizing border hit-rect scales according to current monitor dpi scale.
3131
3132
3133-----------------------------------------------------------------------
3134 VERSION 1.90.6 (Released 2024-05-08)
3135-----------------------------------------------------------------------
3136
3137Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.6
3138
3139Breaking changes:
3140
3141- TreeNode: Fixed a layout inconsistency when using an empty/hidden label followed
3142 by a SameLine() call. (#7505, #282)
3143 Before: TreeNode("##Hidden"); SameLine(); Text("Hello");
3144 // This was actually incorrect! BUT appeared to look ok with the default style
3145 // where ItemSpacing.x == FramePadding.x * 2 (it didn't look aligned otherwise).
3146 After: TreeNode("##Hidden"); SameLine(0, 0); Text("Hello");
3147 // This is correct for all values in style.
3148 With the fix, IF you were successfully using TreeNode("")+SameLine(); you will now
3149 have extra spacing between your TreeNode and the following item. You'll need to change
3150 the SameLine() call to SameLine(0,0) to remove this extraneous spacing.
3151 This seemed like the more sensible fix that's not making things less consistent.
3152 (Note: when using this idiom you are likely to also use ImGuiTreeNodeFlags_SpanAvailWidth).
3153
3154Other changes:
3155
3156- Windows: Changed default ClipRect to extend to windows' left and right borders,
3157 instead of adding arbitrary WindowPadding.x * 0.5f space on left and right.
3158 That ClipRect half-padding was arbitrary/confusing and inconsistent with Y axis.
3159 It also made it harder to draw items covering whole window without pushing an
3160 extended ClipRect. Some items near windows left and right edge that used to be clipped
3161 may be partly more visible. (#3312, #7540, #3756, #6170, #6365)
3162- Windows: Fixed subsequent Begin() append calls from setting last item information
3163 for title bar, making it impossible to use IsItemHovered() on a Begin()-to-append,
3164 and causing issue bypassing hover detection on collapsed windows. (#7506, #823)
3165- Fonts: Fixed font ascent and descent calculation when a font hits exact integer values.
3166 It is possible that some prior manual use of ImFontConfig::GlyphOffset may become
3167 duplicate with this fix. (#7399, #7404) [@GamingMinds-DanielC]
3168- TreeNode: Added ImGuiTreeNodeFlags_SpanTextWidth to make hitbox and highlight only
3169 cover the label. (#6937) [@dimateos]
3170- Tables: Angled headers: fixed multi-line label display when angle is flipped. (#6917)
3171- Tables: Angled headers: added style.TableAngledHeadersTextAlign and corresponding
3172 ImGuiStyleVar_TableAngledHeadersTextAlign variable. Default to horizontal center. (#6917)
3173 [@thedmd, @ocornut]
3174- ProgressBar: Added support for indeterminate progress bar by passing an animated
3175 negative fraction, e.g. ProgressBar(-1.0f * GetTime()). (#5316, #5370, #1901)[@gan74]
3176- Text, DrawList: Improved handling of long single-line wrapped text. Faster and
3177 mitigate issues with reading vertex indexing limits with 16-bit indices. (#7496, #5720)
3178- Backends: OpenGL3: Detect ES3 contexts on desktop based on version string,
3179 to e.g. avoid calling glPolygonMode() on them. (#7447) [@afraidofdark, @ocornut]
3180- Backends: OpenGL3: Update loader for Linux to support EGL/GLVND. (#7562) [@ShadowNinja, @vanfanel]
3181- Backends: Vulkan: Added convenience support for Volk via IMGUI_IMPL_VULKAN_USE_VOLK define.
3182 (you could always use IMGUI_IMPL_VULKAN_NO_PROTOTYPES + ImGui_ImplVulkan_LoadFunctions() as well).
3183 (#6582, #4854) [@adalsteinnh, @kennyalive, @ocornut]
3184- Backends: SDL3: Fixed text inputs. Re-enable calling SDL_StartTextInput()/SDL_StopTextInput()
3185 as SDL3 no longer enables it by default. (#7452, #6306, #6071, #1953) [@Green-Sky]
3186- Examples: GLFW+Vulkan, SDL+Vulkan: Added optional support for Volk. (#6582, #4854)
3187- Examples: GLFW+WebGPU: Added support for WebGPU-native/Dawn (#7435, #7132) [@eliasdaler, @Zelif]
3188- Examples: GLFW+WebGPU: Renamed example_emscripten_wgpu/ to example_glfw_wgpu/. (#7435, #7132)
3189
3190Docking+Viewports Branch:
3191
3192- Docking: when io.ConfigDockingWithShift is enabled, fixed help tooltip erroneously
3193 reading SetNextWindowXXX() data. (#6709, #4643, #7491) [@ocornut, @cfillion]
3194- Viewports: fixed outer-right edge of MenuBar clipping rectangle off by one when window
3195 is located on a monitor with negative coordinates. (#6861, #2884) [@cfillion]
3196- Backends: Vulkan: reworked swap-chain resize handling for secondary viewports, fix for
3197 typical Linux setups. (#2626, #3390, #3758, #7508, #7513) [@RoryO, @InsideBSITheSecond]
3198- Backends: Vulkan: create a custom pipeline for secondary viewports. Fixes issues
3199 when user created main viewport uses a different renderpass. (#6325, #6305, #7398,
3200 #3459, #3253, #3522) [@skaman, @FunMiles]
3201
3202
3203-----------------------------------------------------------------------
3204 VERSION 1.90.5 (Released 2024-04-11)
3205-----------------------------------------------------------------------
3206
3207Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.5
3208
3209Breaking changes:
3210
3211- More formally obsoleted GetKeyIndex() when IMGUI_DISABLE_OBSOLETE_FUNCTIONS is set.
3212 It has been unnecessary and a no-op since 1.87 (it returns the same value as passed
3213 when used with a 1.87+ backend using io.AddKeyEvent() function). (#4921)
3214 - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) --> IsKeyPressed(ImGuiKey_XXX)
3215- ImDrawList: Merged the radius_x/radius_y parameters in AddEllipse(), AddEllipseFilled()
3216 and PathEllipticalArcTo() into a single ImVec2 parameter. Exceptionally, because those
3217 functions were added recently in 1.90, we are not adding inline redirection functions.
3218 The transition is easy and should affect few users. (#2743, #7417) [@cfillion]
3219
3220Other changes:
3221
3222- Windows: Scrollbar visibility decision uses current size when both size and contents
3223 size are submitted by API. (#7252)
3224- Windows: Double-click to collapse may be disabled via key-ownership mechanism. (#7369)
3225- Windows: BeginChild(): Extend outer resize borders to the edges when there are no corner
3226 grips. Essentially affects resizable child windows. (#7440, #1710) [@cfillion]
3227- Windows: BeginChild(): Resizing logic for child windows evaluates whether per-axis clamping
3228 should be applied based on parent scrollbars, not child scrollbars. (#7440, #1710) [@cfillion]
3229 Adjust those resizing limits to match window padding rather than inner clipping rectangle.
3230- Tables: Fixed auto-width columns when using synced-instances of same table, width of
3231 one instance would bleed into next one instead of sharing their widths. (#7218)
3232- Tables: Angled headers: fixed border hit box extending beyond when used within
3233 non-scrollable tables. (#7416) [@cfillion]
3234- Tables: Angled headers: fixed borders not moving back up after TableAngleHeadersRow()
3235 stops being called. (#7416) [@cfillion]
3236- Tables: Angled headers: rounding header size to nearest integers, fixes some issues
3237 when using clipper.
3238- Menus, Popups: Fixed an issue where sibling menu popups re-opening in successive
3239 frames would erroneously close the window. While it is technically a popup issue
3240 it would generally manifest when fast moving the mouse bottom to top in a sub-menu.
3241 (#7325, #7287, #7063)
3242- ProgressBar: Fixed passing fraction==NaN from leading to a crash. (#7451)
3243- ListBox: Fixed text-baseline offset when using SameLine()+Text() after a labeled ListBox().
3244- Drags, Sliders, Inputs: Fixed io.PlatformLocaleDecimalPoint decimal point localization
3245 feature not working regression from 1.90.1. (#7389, #6719, #2278) [@GamingMinds-DanielC]
3246- Style: Added ImGuiStyleVar_TabBorderSize, ImGuiStyleVar_TableAngledHeadersAngle for
3247 consistency. (#7411) [@cfillion]
3248- DrawList: Added AddConcavePolyFilled(), PathFillConcave() concave filling. (#760) [@thedmd]
3249 Note that only simple polygons (no self-intersections, no holes) are supported.
3250- DrawList: Allow AddText() to accept null ranges. (#3615, 7391)
3251- Docs: added more wiki links to headers of imgui.h/imgui.cpp to facilitate discovery
3252 of interesting resources, because GitHub doesn't allow Wiki to be crawled by search engines.
3253 - This is the main wiki: https://github.com/ocornut/imgui/wiki
3254 - This is the crawlable version: https://github-wiki-see.page/m/ocornut/imgui/wiki
3255 Adding a link to the crawlable version, even though it is not intended for humans,
3256 to increase its search rank.
3257
3258Docking+Viewports Branch:
3259
3260- Backends: Win32: made it so that an appearing viewport showing up doesn't bring
3261 its parent to front. (#7354)
3262
3263
3264-----------------------------------------------------------------------
3265 VERSION 1.90.4 (Released 2024-02-22)
3266-----------------------------------------------------------------------
3267
3268Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.4
3269
3270Other changes:
3271
3272- Nav: Fixed SetKeyboardFocusHere() or programmatic tabbing API from not working on
3273 windows with the ImGuiWindowFlags_NoNavInputs flag (regression in 1.90.2, which
3274 among other things broke imgui_memory_editor).
3275- Menus, Popups: Fixed an issue where hovering a parent-menu upward would
3276 erroneously close the window. (#7325, #7287, #7063)
3277- Popups: Fixed resizable popup minimum size being too small. Standardized minimum
3278 size logic. (#7329).
3279- Modals: Temporary changes of ImGuiCol_ModalWindowDimBg are properly handled by
3280 BeginPopupModal(). (#7340)
3281- Tables: Angled headers: fixed support for multi-line labels. (#6917)
3282- Tables: Angled headers: various fixes to accurately handle CellPadding changes. (#6917)
3283- Tables: Angled headers: properly registers horizontal component of angled headers
3284 for auto-resizing of columns. (#6917)
3285- Tables: Angled headers: fixed TableAngledHeadersRow() incorrect background fill
3286 drawn too low, particularly visible with tables that have no scrolling. (#6917)
3287- ProgressBar: Fixed a minor tessellation issue when rendering rounded progress bars,
3288 where in some situations the rounded section wouldn't follow regular tessellation rules.
3289- Debug Tools: Item Picker: Promoted ImGui::DebugStartItemPicker() to public API. (#2673)
3290- Debug Tools: Item Picker: Menu entry visible in Demo->Tools but greyed out unless
3291 io.ConfigDebugIsDebuggerPresent is set. (#2673)
3292- Misc: Added optional alpha multiplier parameter to GetColorU32(ImU32) variant.
3293- Demo: Custom Rendering: better demonstrate PathArcTo(), PathBezierQuadraticCurveTo(),
3294 PathBezierCubicCurveTo(), PathStroke(), PathFillConvex() functions.
3295
3296Docking+Viewports Branch:
3297
3298- Backends: GLFW: enable ImGuiBackendFlags_HasMouseHoveredViewport support with GLFW 3.3.x,
3299 as required specs for it was relaxed in 1.87. This enable better viewport hovering detection
3300 without GLFW 3.4's GLFW_MOUSE_PASSTHROUGH, with less reliance on dear imgui's own heuristic
3301 of platform windows order. (#7316)
3302
3303
3304-----------------------------------------------------------------------
3305 VERSION 1.90.3 (Released 2024-02-14)
3306-----------------------------------------------------------------------
3307
3308Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.3
3309
3310Breaking changes:
3311
3312- Backends: SDL2: Removed obsolete ImGui_ImplSDL2_NewFrame(SDL_Window*) signature which
3313 was obsoleted in 1.84. Calling ImGui_ImplSDL2_NewFrame() is fine.
3314- Backends: Vulkan: Moved RenderPass parameter from ImGui_ImplVulkan_Init() function to
3315 ImGui_ImplVulkan_InitInfo structure. Not required when using dynamic rendering. (#7308) [@shawnhatori]
3316- Backends: Vulkan: Using dynamic rendering now require filling the PipelineRenderingCreateInfo
3317 structure in ImGui_ImplVulkan_InitInfo, allowing to configure color/depth/stencil formats.
3318 Removed ColorAttachmentFormat field previously provided for dynamic rendering.
3319 (#7166, #6855, #5446, #5037) [@shawnhatori]
3320
3321Other changes:
3322
3323- Menus, Popups: Fixed menus and popups with ChildWindow flag erroneously not displaying
3324 a scrollbar when contents is over parent viewport size. (#7287, #7063) [@ZingBallyhoo]
3325- Backends: SDL2, SDL3: Handle gamepad disconnection + fixed increasing gamepad reference
3326 counter continuously. Added support for multiple simultaneous gamepads.
3327 Added ImGui_ImplSDL2_SetGamepadMode()) function to select whether to automatically pick
3328 first available gamepad, all gamepads, or specific gamepads.
3329 (#3884, #6559, #6890, #7180) [@ocornut, @lethal-guitar, @wn2000, @bog-dan-ro]
3330- Backends: SDL3: Fixed gamepad handling. (#7180) [@bog-dan-ro]
3331- Backends: SDLRenderer3: query newly added SDL_RenderViewportSet() to not restore
3332 a wrong viewport if none was initially set.
3333- Backends: DirectX9: Using RGBA format when allowed by the driver to avoid CPU side
3334 conversion. (#6575) [@Demonese]
3335- Internals: Fixed ImFileOpen not working before context is created, preventing creation
3336 of a font atlas before main context creation. (#7314, #7315) [@PathogenDavid, @ocornut]
3337
3338
3339-----------------------------------------------------------------------
3340 VERSION 1.90.2 (Released 2024-02-09)
3341-----------------------------------------------------------------------
3342
3343Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.2
3344
3345Breaking changes:
3346
3347- Commented out ImGuiIO::ImeWindowHandle obsoleted in 1.87 in favor of writing
3348 to 'void* ImGuiViewport::PlatformHandleRaw'.
3349- Backends: WebGPU: ImGui_ImplWGPU_Init() now takes a ImGui_ImplWGPU_InitInfo structure
3350 instead of variety of parameters, allowing for easier further changes. (#7240)
3351
3352Other changes:
3353
3354- Nav: keyboard/gamepad activation mark widgets as held to give better visual feedback.
3355- Nav: tweak to logic marking navigated item as hovered when using keyboard, allowing
3356 the hover highlight to stay even while another item is activated.
3357- Nav: Fixed SetKeyboardFocusHere() not working when current nav focus is in different scope,
3358 regression from 1.90.1 related to code scoping Tab presses to local scope. (#7226) [@bratpilz]
3359- Nav: Fixed pressing Escape while in a child window with _NavFlattened flag. (#7237)
3360- Nav: Improve handling of Alt key to toggle menu so that key ownership may be claimed on
3361 individual left/right alt key without interfering with the other.
3362- Nav, Menus: Fixed click on a BeginMenu() followed by right-arrow from making the child menu
3363 reopen and flicker (using ImGuiPopupFlags_NoReopen).
3364- Nav: ImGuiWindowFlags_NoNavInputs is tested during scoring so NavFlattened windows can use it.
3365- Popups: OpenPopup(): added ImGuiPopupFlags_NoReopen flag to specifically not close and reopen
3366 a popup when it is already open. (#1497, #1533)
3367 (Note that this differs from specific handling we already have in place for the case of calling
3368 OpenPopup() repeatedly every frame: we already didn't reopen in that specific situation, otherwise
3369 the effect would be very disastrous in term of confusion, as reopening would steal focus).
3370- Popups: Slight change to popup closing logic (e.g. after focusing another window) which skipped
3371 over popups that are also child windows.
3372- Combo: Fixed not reusing windows optimally when used inside a popup stack.
3373- Debug Tools: Metrics: Fixed debug break in SetShortcutRouting() not handling ImGuiMod_Shortcut redirect.
3374- Debug Tools: Metrics: Improved Monitors and Viewports minimap display. Highlight on hover.
3375- Debug Tools: Debug Log: Added "Input Routing" logging.
3376- Debug Tools: Added "nop" to IM_DEBUG_BREAK macro on GCC to work around GDB bug (#7266) [@Peter0x44]
3377- Backends: Vulkan: Fixed vkAcquireNextImageKHR() validation errors in VulkanSDK 1.3.275 by
3378 allocating one extra semaphore than in-flight frames. (#7236) [@mklefrancois]
3379- Backends: Vulkan: Fixed vkMapMemory() calls unnecessarily using full buffer size. (#3957)
3380- Backends: Vulkan: Fixed handling of ImGui_ImplVulkan_InitInfo::MinAllocationSize field. (#7189, #4238)
3381- Backends: WebGPU: Added ImGui_ImplWGPU_InitInfo::PipelineMultisampleState. (#7240)
3382- Backends: WebGPU: Filling all WGPUDepthStencilState fields explicitly as a recent Dawn
3383 update stopped setting default values. (#7232) [@GrigoryGraborenko]
3384- Backends: WebGPU: Fixed pipeline layout leak. (#7245) [@rajveermalviya]
3385- Backends: OpenGL3: Backup and restore GL_PIXEL_UNPACK_BUFFER. (#7253)
3386- Internals: Many improvements related to yet unpublicized shortcut routing and input ownership systems.
3387- Internals: InputText: Added internal helpers to force reload of user-buf when active. (#2890) [@kudaba, @ocornut]
3388 Often requested in some form (#6962, #5219, #3290, #4627, #5054, #3878, #2881, #1506, #1216, #968),
3389 and useful for interactive completion/suggestions popups (#2057, #718)
3390
3391Docking+Viewports Branch:
3392
3393- Added ImGuiWindowClass::FocusRouteParentWindowId as a way to connect the focus route between
3394 a tool window to a parent document window, so that Shortcuts in the documents are routed when the
3395 tool is focused (regardless of whether the tool is docked or in a floating viewport, etc.) (#6798)
3396- Added ImGuiDockNodeFlags_DockedWindowsInFocusRoute to automatically make a dockspace connect
3397 the focus route of its docked window. This is provided a convenience in case you have windows
3398 where a connection is not explicit. (#6798)
3399- Viewports: Fixed moving accross monitors when io.ConfigWindowsMoveFromTitleBarOnly is set. (#7299, #3071)
3400- Backends: OSX: Fixed not submitting Monitors info when viewports are not enabled, leading to
3401 missing e.g. DpiScale info. (#7257) [@actboy168]
3402
3403
3404-----------------------------------------------------------------------
3405 VERSION 1.90.1 (Released 2024-01-10)
3406-----------------------------------------------------------------------
3407
3408Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90.1
3409
3410Breaking changes:
3411
3412- imgui_freetype: commented out ImGuiFreeType::BuildFontAtlas() obsoleted in 1.81.
3413 Prefer using #define IMGUI_ENABLE_FREETYPE or see commented code for manual calls.
3414- Removed CalcListClipping() marked obsolete in 1.86. (#3841)
3415 Prefer using ImGuiListClipper which can return non-contiguous ranges.
3416- Internals, Columns: commented out legacy ImGuiColumnsFlags_XXX symbols redirecting
3417 to ImGuiOldColumnsFlags_XXX, obsoleted from imgui_internal.h in 1.80.
3418- Commented out obsolete ImGuiKey_KeyPadEnter redirection to ImGuiKey_KeypadEnter. (#2625, #7143)
3419
3420Other changes:
3421
3422- Windows:
3423 - BeginChild(): Fixed auto-resizing erroneously limiting size to host viewport
3424 minus padding. There are no limit to a child width/height. (#7063) [@Devyre]
3425 - BeginChild(): Resize borders rendered even when ImGuiWindowFlags_NoBackground
3426 is specified. (#1710, #7194)
3427 - Fixed some auto-resizing path using style.WindowMinSize.x (instead of x/y)
3428 for both axes since 1.90. (#7106) [@n0bodysec]
3429 - Scrolling: internal scrolling value is rounded instead of truncated, as a way to reduce
3430 speed asymmetry when (incorrectly) attempting to scroll by non-integer amount. (#6677)
3431- Navigation (Keyboard/gamepad):
3432 - Nav, IO: SetNextFrameWantCaptureKeyboard(false) calls are not overridden back to true when
3433 navigation is enabled. SetNextFrameWantCaptureKeyboard() is always higher priority. (#6997)
3434 - Nav: Activation can also be performed with Keypad Enter. (#5606)
3435- Drag and Drop:
3436 - Fixed drop target highlight on items temporarily pushing a widened clip rect
3437 (namely Selectables and Treenodes using SpanAllColumn flag) so the highlight properly covers
3438 all columns. (#7049, #4281, #3272)
3439- InputText:
3440 - InputTextMultiline: Fixed Tab character input not repeating (1.89.4 regression).
3441 - InputTextMultiline: Tabbing through a multi-line text editor which allows Tab character inputs
3442 (using the ImGuiInputTextFlags_AllowTabInput flag) doesn't automatically activate it, in order
3443 to allow passing through multiple widgets easily. (#3092, #5759, #787)
3444- Drags, Sliders, Inputs:
3445 - DragScalarN, SliderScalarN, InputScalarN: Fixed incorrect pushes into ItemWidth
3446 stack when number of components is 1. [#7095] [@Nahor]
3447 - Drags, Sliders, Inputs: removed all attempts to filter non-numerical characters during text
3448 editing. Invalid inputs not applied to value, visibly reverted after validation. (#6810, #7096)
3449 - Drags, Sliders, Inputs: removal of filter means that "nan" and "inf" values may be input. (#7096)
3450 - DragScalarN, SliderScalarN, InputScalarN, PushMultiItemsWidths: improve multi-components
3451 width computation to better distribute the error. (#7120, #7121) [@Nahor]
3452- Menus:
3453 - Tweaked hover slack logic, adding an extra timeout to avoid situations where a slow vertical
3454 movements toward another parent BeginMenu() can keep the wrong child menu open. (#6671, #6926)
3455- Color Editors:
3456 - ColorEdit: Layout tweaks for very small sizes. (#7120, #7121)
3457 - ColorPicker: Fixed saturation/value cursor radius not scaling properly.
3458- Tabs: Added ImGuiTabItemFlags_NoAssumedClosure to enable app to react on closure attempt,
3459 without having to draw an unsaved document marker (ImGuiTabItemFlags_UnsavedDocument sets
3460 _NoAssumedClosure automatically). (#7084)
3461- Debug Tools:
3462 - Added io.ConfigDebugIsDebuggerPresent option. When enabled, this adds buttons in various
3463 locations of Metrics/Debugger to manually request a debugger break:
3464 - Request a debug break in a Begin() call.
3465 - Request a debug break in a ItemAdd() call via debug log and hovering 0xXXXXXX identifiers.
3466 - Request a debug break in a BeginTable() call.
3467 - Request a debug break in a SetShortcutRouting()/Shortcut() call. [Internal]
3468 - Metrics: Reorganize Tools menu.
3469 - Added DebugFlashStyleColor() to identify a style color. Added to Style Editor.
3470 - Debug Log: Hide its own clipper log to reduce noise in the output. (#5855)
3471 - Debug Log: Clicking any filter with SHIFT held enables it for 2 frames only,
3472 making it easier when dealing with spammy logs. (#5855)
3473- Settings: Fixed an issue marking settings as dirty when merely clicking on a border or resize
3474 grip without moving it.
3475- Misc: Added IMGUI_USER_H_FILENAME to change the path included when using
3476 IMGUI_INCLUDE_IMGUI_USER_H. (#7039) [@bryceberger]
3477- Misc: Rework debug display of texture id in Metrics window to avoid compile-error when
3478 ImTextureID is defined to be larger than 64-bits. (#7090)
3479- Misc: Added extra courtesy ==/!= operators when IMGUI_DEFINE_MATH_OPERATORS is defined.
3480- Misc: Fixed text functions fast-path for handling "%s" and "%.*s" to handle null pointers gracefully,
3481 like most printf implementations. (#7016, #3466, #6846) [@codefrog2002]
3482- Misc: Renamed some defines in imstb_textedit.h to avoid conflicts when using unity/jumbo builds
3483 on a codebase where another copy of the library is used.
3484- Misc: During shutdown, check that io.BackendPlatformUserData and io.BackendRendererUserData are NULL
3485 in order to catch cases where backend was not shut down. (#7175)
3486- Misc: Reworked Issue Template to a shinier and better form. (#5927) [@Panquesito7, @PathogenDavid, @ocornut]
3487- Backends:
3488 - GLFW, Emscripten: Added ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback() to
3489 register canvas selector and auto-resize GLFW window. (#6751) [@Traveller23, @ypujante]
3490 - GLFW: Fixed Windows specific hooks to use Unicode version of WndProc even when
3491 compiling in MBCS mode. (#7174) [@kimidaisuki22]
3492 - OpenGL3: Update GL3W based imgui_impl_opengl3_loader.h to load libGL.so variants in
3493 case of missing symlink. Fix 1.90 regression for some distros. (#6983)
3494 - Vulkan: Fixed mismatching allocator passed to vkCreateCommandPool() vs
3495 vkDestroyCommandPool(). (#7075) [@FoonTheRaccoon]
3496 - Vulkan: Added MinAllocationSize field in ImGui_ImplVulkan_InitInfo to workaround zealous
3497 "best practice" validation layer. (#7189, #4238) [@philae-ael]
3498 - Vulkan: Stopped creating command pools with VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT
3499 as we don't reset them.
3500 - WebGPU: Fixed wgpuRenderPassEncoderSetScissorRect() crash when rendering modal window's
3501 dimming layer, which has an unclipped value in ImDrawCmd::ClipRect. (#7191) [@aparis69]
3502- Examples:
3503 - Examples: GLFW+Emscripten: Fixed examples not consistently resizing according to host canvas.
3504 (#6751) [@Traveller23, @ypujante]
3505 - Examples: SDL3: Minor fixes following recent SDL3 in-progress development.
3506
3507Docking+Viewports Branch:
3508
3509- Windows: Fixed ImGuiCol_TitleBg/Active alpha being used for viewport-owned windows. (#7181) [@PathogenDavid]
3510- Backends: DX12: Changed swapchain scaling mode to DXGI_SCALING_NONE to reduce artifacts as
3511 queued frames aren't synchronized with platform window resizes. (#7152, #7153) [@SuperWangKai]
3512- Backends: OSX: Fixed monitor and window position by correctly transforming Y origin on multi-viewports
3513 multi-monitor setups. (#7028, #7101, #6009, #6432) [@dmirty-kuzmenko, @734vin]
3514- Backends: OSX: Fixed IME position in multi-monitor multi-viewports setups. (#7028) [@734vin]
3515
3516
3517-----------------------------------------------------------------------
3518 VERSION 1.90.0 (Released 2023-11-15)
3519-----------------------------------------------------------------------
3520
3521Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.90
3522
3523Breaking changes:
3524
3525 - BeginChild(): Upgraded 'bool border = false' parameter to 'ImGuiChildFlags flags = 0'.
3526 Added ImGuiChildFlags_Border value. As with our prior "bool-to-flags" API updates,
3527 the ImGuiChildFlags_Border value is guaranteed to be == true forever to ensure a
3528 smoother transition, meaning all existing calls will still work.
3529 If you want to neatly transition your call sites:
3530 Before: BeginChild("Name", size, true)
3531 After: BeginChild("Name", size, ImGuiChildFlags_Border)
3532 Before: BeginChild("Name", size, false)
3533 After: BeginChild("Name", size) or BeginChild("Name", 0) or BeginChild("Name", size, ImGuiChildFlags_None)
3534 Existing code will still work as 'ImGuiChildFlags_Border == true', but you are encouraged to update call sites.
3535 **AMEND FROM THE FUTURE: from 1.91.1, 'ImGuiChildFlags_Border' is called 'ImGuiChildFlags_Borders'**
3536 - BeginChild(): Added child-flag ImGuiChildFlags_AlwaysUseWindowPadding as a replacement for
3537 the window-flag ImGuiWindowFlags_AlwaysUseWindowPadding: the feature only ever made sense
3538 for use with BeginChild() anyhow, passing it to Begin() had no effect. Now that we accept
3539 child-flags we are moving it there. (#462)
3540 Before: BeginChild("Name", size, 0, ImGuiWindowFlags_AlwaysUseWindowPadding);
3541 After: BeginChild("Name", size, ImGuiChildFlags_AlwaysUseWindowPadding, 0);
3542 Kept inline redirection enum (will obsolete later) so existing code will work.
3543 - BeginChildFrame()/EndChildFrame(): removed functions in favor of using BeginChild() with
3544 the ImGuiChildFlags_FrameStyle flag. Kept inline redirection function (will obsolete).
3545 Those functions were merely PushStyle/PopStyle helpers and custom versions are easy to create.
3546 (The removal isn't so much motivated by needing to add the feature in BeginChild(), but by the
3547 necessity to avoid BeginChildFrame() signature mismatching BeginChild() signature and features.)
3548 - Debug Tools: Renamed ShowStackToolWindow() ("Stack Tool") to ShowIDStackToolWindow() ("ID Stack Tool"),
3549 as earlier name was misleading. Kept inline redirection function. (#4631)
3550 - IO: Removed io.MetricsActiveAllocations introduced in 1.63, was displayed in Metrics and unlikely to
3551 be accessed by end-user. Value still visible in the UI and easily to recompute from a delta.
3552 - Defining IMGUI_DISABLE_OBSOLETE_FUNCTIONS now automatically defines IMGUI_DISABLE_OBSOLETE_KEYIO. (#4921)
3553 - Removed IM_OFFSETOF() macro in favor of using offsetof() available in C++11. Kept redirection define. (#4537)
3554 - ListBox, Combo: Changed signature of "name getter" callback in old one-liner ListBox()/Combo() apis.
3555 Before:
3556 getter type: bool (*getter)(void* user_data, int idx, const char** out_text)
3557 function: bool Combo(const char* label, int* current_item, bool (*getter)(void* user_data, int idx, const char** out_text), ...);
3558 function: bool ListBox(const char* label, int* current_item, bool (*getting)(void* user_data, int idx, const char** out_text), ...);
3559 After:
3560 getter type: const char* (*getter)(void* user_data, int idx)
3561 function: bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...);
3562 function: bool ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...);
3563 Old type was unnecessarily complex and harder to wrap in e.g. a lambda. Kept inline redirection function (will obsolete).
3564 - Commented out obsolete redirecting enums/functions that were marked obsolete two years ago:
3565 - GetWindowContentRegionWidth() -> use GetWindowContentRegionMax().x - GetWindowContentRegionMin().x.
3566 Consider that generally 'GetContentRegionAvail().x' is often more correct and more useful.
3567 - ImDrawCornerFlags_XXX -> use ImDrawFlags_RoundCornersXXX names.
3568 Read 1.82 changelog for details + grep commented names in sources.
3569 - Commented out runtime support for hardcoded ~0 or 0x01..0x0F rounding flags values for
3570 AddRect()/AddRectFilled()/PathRect()/AddImageRounded(). -> Use ImDrawFlags_RoundCornersXXX flags.
3571 Read 1.82 changelog for details.
3572 - Backends: Vulkan: Removed parameter from ImGui_ImplVulkan_CreateFontsTexture(): backend now creates its own
3573 command-buffer to upload fonts. Removed ImGui_ImplVulkan_DestroyFontUploadObjects() which is now unnecessary.
3574 No need to call ImGui_ImplVulkan_CreateFontsTexture() as it is done automatically in ImGui_ImplVulkan_NewFrame().
3575 You can call ImGui_ImplVulkan_CreateFontsTexture() manually if you need to reload the font atlas texture.
3576 (#6943, #6715, #6327, #3743, #4618)
3577
3578Other changes:
3579
3580- Windows:
3581 - BeginChild(): Added ImGuiChildFlags_ResizeX and ImGuiChildFlags_ResizeY to allow resizing
3582 child windows from the bottom/right border (toward layout direction). Resized child windows
3583 settings are saved and persistent in .ini file. (#1710)
3584 - BeginChild(): Added ImGuiChildFlags_Border as a replacement for 'bool border = true' parameter.
3585 **AMEND FROM THE FUTURE: from 1.91.1, 'ImGuiChildFlags_Border' is called 'ImGuiChildFlags_Borders'**
3586 - BeginChild(): Added ImGuiChildFlags_AutoResizeX and ImGuiChildFlags_AutoResizeY to auto-resize
3587 on one axis, while generally providing a size on the other axis. (#1666, #1395, #1496, #1710)
3588 e.g. BeginChild("name", {-FLT_MIN, 0.0f}, ImGuiChildFlags_AutoResizeY);
3589 - Size is only reevaluated if the child window is within visible boundaries or just appearing.
3590 This allows coarse clipping to be performed and auto-resizing childs to return false when
3591 hidden because of being scrolled out.
3592 - Combining this with also specifying ImGuiChildFlags_AlwaysAutoResize disables
3593 this optimization, meaning child contents will never be clipped (not recommended).
3594 - Please be considerate that child are full windows and carry significant overhead:
3595 combining auto-resizing for both axes to create a non-scrolling child to merely draw
3596 a border would be better more optimally using BeginGroup(). (see #1496)
3597 (until we come up with new helpers for framed groups and work-rect adjustments).
3598 - BeginChild(): made it possible to use SetNextWindowSizeConstraints() rectangle, often
3599 useful when ImGuiChildFlags_AutoResizeX or ImGuiChildFlags_AutoResizeY. (#1666, #1395, #1496)
3600 Custom constraint callback are not supported with child window.
3601 - BeginChild(): Added ImGuiChildFlags_FrameStyle as a replacement for BeginChildFrame(),
3602 use it to make child window use FrameBg, FrameRounding, FrameBorderSize, FramePadding
3603 instead of ChildBg, ChildRounding, ChildBorderSize, WindowPadding.
3604 - Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back user value
3605 to false when popup is closed in ways other than clicking the close button. (#6900)
3606 - Double-clicking lower-left resize grip auto-resize (like lower-right one).
3607 - Double-clicking bottom or right window border auto-resize on a singles axis.
3608 - Use relative mouse movement for border resize when the border geometry has moved
3609 (e.g. resizing a child window triggering parent scroll) in order to avoid resizing
3610 feedback loops. Unless manually mouse-wheeling while border resizing. (#1710)
3611- Separators:
3612 - Altered end-points to use more standard boundaries. (#205, #4787, #1643)
3613 Left position is always current cursor X position, right position is always work-rect
3614 rightmost edge. It effectively means that:
3615 - A separator in the root of a window will end up a little more distant from edges
3616 than previously (essentially following WindowPadding instead of clipping edges).
3617 - A separator inside a table cell end up a little distance from edges instead of
3618 touching them (essentially following CellPadding instead of clipping edges).
3619 - Matches tree indentation (was not the case before).
3620 - Matches SeparatorText(). (#1643)
3621 - Makes things correct inside groups without specific/hard-coded handling. (#205)
3622 - Support legacy behavior when used inside old Columns(), as we favored that idiom back then,
3623 only different is left position follows indentation level, to match calling a Separator()
3624 inside or outside Columns().
3625- Tooltips:
3626 - Made using SetItemTooltip()/IsItemHovered(ImGuiHoveredFlags_ForTooltip) defaults to
3627 activate tooltips on disabled items. This is done by adding ImGuiHoveredFlags_AllowWhenDisabled
3628 to the default value of style.HoverFlagsForTooltipMouse/HoverFlagsForTooltipNav. (#1485)
3629 - Made is possible to combine ImGuiHoveredFlags_ForTooltip with a ImGuiHoveredFlags_DelayXXX
3630 override. (#1485)
3631- Drag and Drop:
3632 - Reworked drop target highlight: reduce rectangle to its visible portion, and then expand
3633 slightly. A full rectangle is always visible and it may protrude slightly. (#4281, #3272)
3634 - Fixed submitting a tooltip from drop target location when using AcceptDragDropPayload()
3635 with ImGuiDragDropFlags_AcceptNoPreviewTooltip and submitting a tooltip manually.
3636- Tables:
3637 - Added angled headers support. You need to set ImGuiTableColumnFlags_AngledHeader on selected
3638 columns and call TableAngledHeadersRow(). Added style.TableAngledHeadersAngle style option. (#6917)
3639 - Added ImGuiTableFlags_HighlightHoveredColumn flag, currently highlighting column header.
3640 - Fixed an edge-case when no columns are visible + table scrollbar is visible + user
3641 code is always testing return value of TableSetColumnIndex() to coarse clip. With an active
3642 clipper it would have asserted. Without a clipper, the scrollbar range would be wrong.
3643 - Request user to submit contents when outer host-window is requesting auto-resize,
3644 so a scrolling table can contribute to initial window size. (#6510)
3645 - Fixed subtle drawing overlap between borders in some situations.
3646 - Fixed bottom-most and right-most outer border offset by one. (#6765, #3752) [@v-ein]
3647 - Fixed top-most and left-most outer border overlapping inner clip-rect when scrolling. (#6765)
3648 - Fixed top-most outer border being drawn with both TableBorderLight and TableBorderStrong
3649 in some situations, causing the earlier to be visible underneath when alpha is not 1.0f.
3650 - Fixed right-clicking right-most section (past right-most column) from highlighting a column.
3651 - Fixed an issue with ScrollX enabled where an extraneous draw command would be created.
3652- Menus:
3653 - Menus: Fixed a bug where activating an item in a child-menu and dragging mouse over the
3654 parent-menu would erroneously close the child-menu. (Regression from 1.88). (#6869)
3655 - MenuBar: Fixed an issue where layouting an item in the menu-bar would erroneously
3656 register contents size in a way that would affect the scrolling layer.
3657 Was most often noticeable when using a horizontal scrollbar. (#6789)
3658- InputText:
3659 - InputTextMultiline: Fixed a crash pressing Down on last empty line of a multi-line buffer.
3660 (regression from 1.89.2, only happened in some states). (#6783, #6000)
3661 - InputTextMultiline: Fixed Tabbing cycle leading to a situation where Enter key wouldn't
3662 be accepted by the widget when navigation highlight is visible. (#6802, #3092, #5759, #787)
3663- Nav: Tabbing always enable nav highlight when ImGuiConfigFlags_NavEnableKeyboard is set.
3664 Previously was inconsistent and only enabled when stepping through a non-input item.
3665 (#6802, #3092, #5759, #787)
3666- TreeNode: Added ImGuiTreeNodeFlags_SpanAllColumns for use in tables. (#3151, #3565, #2451, #2438)
3667- TabBar: Fixed position of unsaved document marker (ImGuiTabItemFlags_UnsavedDocument) which was
3668 accidentally offset in 1.89.9. (#6862) [@alektron]
3669- ColorPicker4(): Fixed ImGuiColorEditFlags_NoTooltip not being forwarded to individual DragFloat3
3670 sub-widgets which have a visible color preview when ImGuiColorEditFlags_NoSidePreview is also set. (#6957)
3671- BeginGroup(): Fixed a bug pushing line lower extent too far down when called after a call
3672 to SameLine() followed by manual cursor manipulation.
3673- BeginCombo(): Added ImGuiComboFlags_WidthFitPreview flag. (#6881) [@mpv-enjoyer]
3674- BeginListBox(): Fixed not consuming SetNextWindowXXX() data when returning false.
3675- Fonts:
3676 - Argument 'float size_pixels' passed to AddFontXXX() functions is now rounded to lowest integer.
3677 This is because our layout/font system currently doesn't fully support non-integer sizes. Until
3678 it does, this has been a common pitfall leading to more or less subtle issues. (#3164, #3309, #6800)
3679 - Better assert during load when passing truncated font data or wrong data size. (#6822)
3680 - Ensure calling AddFontXXX function doesn't invalidates ImFont's ConfigData pointers
3681 prior to building again. (#6825)
3682 - Added ImFontConfig::RasterizerDensity field to increase texture size of rendered glyphs
3683 without altering other metrics. Among other things, this makes it easier to have zooming code
3684 swapping between 2 fonts (e.g. a 100% and a 400% fonts) depending on current scale. (#6925) [@thedmd]
3685 Important: if you increase this it is expected that you would render the font with a scale of
3686 similar value or magnitude. Merely increasing this without increasing scale may lower quality.
3687 - imgui_freetype: Added support for RasterizerDensity. (#6925) [@thedmd]
3688 - imgui_freetype: Fixed a warning and leak in IMGUI_ENABLE_FREETYPE_LUNASVG support. (#6842, #6591)
3689- Inputs: Added IsKeyChordPressed() helper function e.g. IsKeyChordPressed(ImGuiMod_Ctrl | ImGuiKey_S).
3690 (note that ImGuiMod_Shortcut may be used as an alias for Cmd on OSX and Ctrl on other systems).
3691- Misc: Most text functions also treat "%.*s" (along with "%s") specially to bypass formatting. (#3466, #6846)
3692- IO: Add extra keys to ImGuiKey enum: ImGuiKey_F13 to ImGuiKey_F24. (#6891, #4921)
3693- IO: Add extra keys to ImGuiKey enum: ImGuiKey_AppBack, ImGuiKey_AppForward. (#4921)
3694- IO: Setting io.WantSetMousePos ignores incoming MousePos events. (#6837, #228) [@bertaye]
3695- Debug Tools: Metrics: Added log of recent alloc/free calls.
3696- Debug Tools: Metrics: Added "Show groups rectangles" in tools.
3697- ImDrawList: Added AddEllipse(), AddEllipseFilled(), PathEllipticalArcTo(). (#2743) [@Doohl]
3698- ImVector: Added find_index() helper.
3699- Demo: Added "Drag and Drop -> Tooltip at target location" demo.
3700- Demo: Added "Layout -> Child Windows -> Manual-resize" demo. (#1710)
3701- Demo: Added "Layout -> Child Windows -> Auto-resize with constraints" demo. (#1666, #1395, #1496, #1710)
3702- Demo: Partly fixed "Examples -> Constrained-resizing window" custom constrains demo. (#6210) [@cfillion]
3703- Backends: Vulkan: Removed parameter from ImGui_ImplVulkan_CreateFontsTexture(): backend now creates its own
3704 command-buffer to upload fonts. Removed ImGui_ImplVulkan_DestroyFontUploadObjects() which is now unnecessary.
3705 No need to call ImGui_ImplVulkan_CreateFontsTexture() as it is done automatically in ImGui_ImplVulkan_NewFrame().
3706 You can call ImGui_ImplVulkan_CreateFontsTexture() manually if you need to reload font atlas texture.
3707 Fixed leaks, and added ImGui_ImplVulkan_DestroyFontsTexture() (probably no need to call this directly).
3708 (#6943, #6715, #6327, #3743, #4618)
3709 [@helynranta, @thomasherzog, @guybrush77, @albin-johansson, @MiroKaku, @benbatya-fb, @ocornut]
3710- Backends: Vulkan: use specified ColorAttachmentFormat when creating a secondary window when enabling
3711 UseDynamicRendering option. (#6999, #5446, #5037) [@raaaviol]
3712- Backends: GLFW: Clear emscripten's MouseWheel callback before shutdown. (#6790, #6096, #4019) [@halx99]
3713- Backends: GLFW: Added support for F13 to F24 function keys. (#6891)
3714- Backends: SDL2, SDL3: Added support for F13 to F24 function keys, AppBack, AppForward. (#6891)
3715- Backends: SDL3: Updates for recent API changes. (#7000, #6974)
3716- Backends: Win32: Added support for F13 to F24 function keys, AppBack, AppForward. (#6891)
3717- Backends: Win32: Added support for keyboard codepage conversion for when application
3718 is compiled in MBCS mode and using a non-Unicode window. (#6785, #6782, #5725, #5961) [@sneakyevil]
3719- Backends: Win32: Synthesize key-down event on key-up for VK_SNAPSHOT / ImGuiKey_PrintScreen as Windows
3720 doesn't emit it (same behavior as GLFW/SDL). (#6859) [@thedmd, @SuperWangKai]
3721- Backends: OpenGL3: rename symbols in our internal loader so that LTO compilation with another
3722 copy of gl3w becomes possible. (#6875, #6668, #4445) [@nicolasnoble]
3723- Backends: OpenGL3: Update GL3W based imgui_impl_opengl3_loader.h to load "libGL.so" instead
3724 of "libGL.so.1", accommodating for NetBSD systems having only "libGL.so.3" available. (#6983)
3725- Backends: OSX: Added support for F13 to F20 function keys. Support mapping F13 to PrintScreen. (#6891)
3726- Examples: GLFW+Vulkan, SDL+Vulkan: Simplified and removed code due to backend improvements.
3727- Internals: Renamed ImFloor() to ImTrunc(). Renamed ImFloorSigned() to ImFloor(). (#6861)
3728
3729Docking+Viewports Branch:
3730
3731- Viewports: Fixed window inner clipping rectangle off by one when window is located on a monitor
3732 with negative coordinates. While it is expected that other small issues with arise from this
3733 situation, at the moment we are fixing the most noticeable one. (#6861, #2884) [@Vuhdo, @alektron]
3734- Docking: revised undocking to reduce accidental whole-node undocking:
3735 - cannot undock a whole node by dragging from empty space in tab-bar.
3736 - can undock whole node by dragging from window/collapse menu button.
3737 - can undock single window by dragging from its tab.
3738 - can still move (but not undock) whole node or whole hierarchy when node is part of a
3739 floating hierarchy.
3740 - added tooltip when hovering the collapse/window menu button, to faciliate understanding
3741 that whole dock node may be undocked or grabbed from here.
3742- Docking: Fixed an issue leading to incorrect restoration of selected tab in dock nodes that
3743 don't carry the currently focused window. (#2304)
3744- Docking: added ImGuiDockNodeFlags_NoUndocking. (#2999, #6823, #6780, #3492)
3745- Docking: renamed ImGuiDockNodeFlags_NoSplit to ImGuiDockNodeFlags_NoDockingSplit.
3746- Docking: renamed ImGuiDockNodeFlags_NoDockingInCentralNode to ImGuiDockNodeFlags_NoDockingOverCentralNode.
3747- Docking: Internals: renamed ImGuiDockNodeFlags_NoDockingSplitMe to ImGuiDockNodeFlags_NoDockingSplit.
3748- Docking: Fixed a bug where ClassId compare tests (when using SetNextWindowClass) on success would
3749 prevent further filter from running, namely the one that prevent docking over a popup.
3750- Backends: GLFW: Fixed an assertion in situation where the WndProc handler is different between
3751 main and secondary viewport (may happen due to third-party hooks). (#6889)
3752- Backends: DX9: Fixed incorrect assert triggering on reopening session with minimized windows. (#3424)
3753
3754
3755-----------------------------------------------------------------------
3756 VERSION 1.89.9 (Released 2023-09-04)
3757-----------------------------------------------------------------------
3758
3759Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.9
3760
3761Breaking changes:
3762
3763- Clipper: Renamed IncludeRangeByIndices(), also called ForceDisplayRangeByIndices()
3764 before 1.89.6, to IncludeItemsByIndex(). Kept inline redirection function. (#6424, #3841)
3765
3766Other changes:
3767
3768- Tables: Made it possible to use SameLine(0,0) after TableNextColumn() or
3769 TableSetColumnIndex() in order to reuse line pos/height from previous cell. (#3740)
3770- Tables: Made it possible to change style.CellPadding.y between rows. (#3740)
3771- Nav, TreeNode: Pressing Left with ImGuiTreeNodeFlags_NavLeftJumpsBackHere now goes
3772 through proper navigation logic: honor scrolling and selection. (#1079, #1131)
3773- Sliders: Fixed an integer overflow and div-by-zero in SliderInt() when
3774 v_max=INT_MAX (#6675, #6679) [@jbarthelmes]
3775- Windows: Layout of Close/Collapse buttons uses style.ItemInnerSpacing.x between items,
3776 stopped incorrectly using FramePadding in a way where hit-boxes could overlap when
3777 setting large values. (#6749)
3778- TabBar, Style: added style.TabBarBorderSize and associated ImGuiStyleVar_TabBarBorderSize.
3779 Tweaked rendering of that separator to allow thicker values. (#6820, #4859, #5022, #5239)
3780- InputFloat, SliderFloat, DragFloat: always turn both '.' and ',' into the current decimal
3781 point character when using Decimal/Scientific character filter. (#6719, #2278) [@adamsepp]
3782- ColorEdit, ColorPicker: Manipulating options popup don't mark item as edited. (#6722)
3783 (Note that they may still be marked as Active/Hovered.)
3784- Clipper: Added IncludeItemByIndex() helper to include a single item. (#6424, #3841)
3785- Clipper: Fixed a bug if attempt to force-include a range which matches an already
3786 included range, clipper would end earlier. (#3841)
3787- ImDrawData: Fixed an issue where TotalVtxCount/TotalIdxCount does not match the sum
3788 of individual ImDrawList's buffer sizes when a dimming/modal background is rendered. (#6716)
3789- ImDrawList: Automatically calling ChannelsMerge() if not done after a split.
3790- ImDrawList: Fixed OOB access in _CalcCircleAutoSegmentCount when passing excessively
3791 large radius to AddCircle(). (#6657, #5317) [@EggsyCRO, @jdpatdiscord]
3792- IO: Exposed io.PlatformLocaleDecimalPoint to configure decimal point ('.' or ',') for
3793 languages needing it. Should ideally be set to the value of '*localeconv()->decimal_point'
3794 but our backends don't do it yet. (#6719, #2278)
3795- IO: Fixed io.AddMousePosEvent() and io.AddMouseButtonEvent() writing MouseSource to
3796 wrong union section. Was semantically incorrect and accidentally had no side-effects
3797 with default compiler alignment settings. (#6727) [@RickHuang2001]
3798- Misc: Made multiple calls to Render() during the same frame early out faster.
3799- Debug Tools: Metrics: Fixed "Drawlists" section and per-viewport equivalent
3800 appearing empty (regression in 1.89.8).
3801- Demo: Reorganized "Examples" menu.
3802- Demo: Tables: Demonstrate using SameLine() between cells. (#3740)
3803- Demo: Tables: Demonstrate altering CellPadding.y between rows. (#3740)
3804- Demo: Custom Rendering: Demonstrate out-of-order rendering using ImDrawListSplitter.
3805- Backends: SDL2,SDL3: added ImGui_ImplSDL2_InitForOther()/ImGui_ImplSDL3_InitForOther()
3806 for consistency (matching GLFW backend) and as most initialization paths don't actually
3807 need to care about rendering backend.
3808- Examples: Emscripten+WebGPU: Fixed WGPUInstance creation process + use preferred
3809 framebuffer format. (#6640, #6748) [@smileorigin]
3810
3811Docking+Viewports Branch:
3812
3813- Docking: when io.ConfigDockingWithShift is enabled, staying stationary while moving
3814 a window displays an help tooltip to increase affordance. (#6709, #4643)
3815
3816
3817-----------------------------------------------------------------------
3818 VERSION 1.89.8 (Released 2023-08-01)
3819-----------------------------------------------------------------------
3820
3821Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.8
3822
3823Breaking changes:
3824
3825- IO: Obsoleted io.ClearInputCharacters() (added in 1.47) as it now ambiguous
3826 and often incorrect/misleading considering the existence of a higher-level
3827 input queue. This is automatically cleared by io.ClearInputKeys(). (#4921)
3828- ImDrawData: CmdLists[] array is now owned, changed from 'ImDrawList**' to
3829 'ImVector<ImDrawList*>'. Majority of users shouldn't be affected, but you
3830 cannot compare to NULL nor reassign manually anymore.
3831 Instead use AddDrawList(). Allocation count are identical. (#6406, #4879, #1878)
3832
3833Other changes:
3834
3835- Fonts: ImFontConfig::OversampleH now defaults to 2 instead of 3, since the
3836 quality increase is largely minimal.
3837- Fonts, imgui_freetype: Added support to render OpenType SVG fonts using lunasvg.
3838 Requires enabling IMGUI_ENABLE_FREETYPE_LUNASVG along with IMGUI_ENABLE_FREETYPE,
3839 and providing headers/libraries for lunasvg. (#6591, #6607) [@sakiodre]
3840- ImDrawData: CmdLists[] array is now an ImVector<> owned by ImDrawData rather
3841 than a pointer to internal state.
3842 - This makes it easier for user to create their own or append to an existing draw data.
3843 Added a ImDrawData::AddDrawList() helper function to do that. (#6406, #4879, #1878)
3844 - This makes it easier to perform a deep-swap instead of a deep-copy, as array
3845 ownership is now clear. (#6597, #6475, #6167, #5776, #5109, #4763, #3515, #1860)
3846 - Syntax and allocation count are otherwise identical.
3847- Fixed CTRL+Tab dimming background assert when target window has a callback
3848 in the last ImDrawCmd. (#4857, #5937)
3849- IsItemHovered: Fixed ImGuiHoveredFlags_ForTooltip for Keyboard/Gamepad navigation,
3850 got broken prior to 1.89.7 due to an unrelated change making flags conflict. (#6622, #1485)
3851- InputText: Fixed a case where deactivation frame would write to underlying
3852 buffer or call CallbackResize although unnecessary, in a frame where the
3853 return value was false.
3854- Tables: fixed GetContentRegionAvail().y report not taking account of lower cell
3855 padding or of using ImGuiTableFlags_NoHostExtendY. Not taking it into account
3856 would make the idiom of creating vertically bottom-aligned content (e.g. a child
3857 window) inside a table make the parent window erroneously have a scrollbar. (#6619)
3858- Tables: fixed calculation of multi-instance shared decoration/scrollbar width of
3859 scrolling tables, to avoid flickering width variation when resizing down a table
3860 hosting a child window. (#5920, #6619)
3861- Scrollbar: layout needs to take account of window border size, so a border size
3862 will slightly reduce scrollbar size. Generally we tried to make it that window
3863 border size has no incidence on layout but this can't work with thick borders. (#2522)
3864- IO: Added io.ClearEventsQueue() to clear incoming inputs events. (#4921)
3865 May be useful in conjunction with io.ClearInputKeys() if you need to clear
3866 both current inputs state and queued events (e.g. when using blocking native
3867 dialogs such as Windows's ::MessageBox() or ::GetOpenFileName()).
3868- IO: Changed io.ClearInputKeys() specs to also clear current frame character buffer
3869 (what now obsoleted io.ClearInputCharacters() did), as this is effectively the
3870 desirable behavior.
3871- Misc: Added IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION config macro to disable
3872 stb_sprintf implementation when using IMGUI_USE_STB_SPRINTF. (#6626) [@septag]
3873- Misc: Avoid stb_textedit.h reincluding string.h while in a namespace, which
3874 messes up with building with Clang Modules. (#6653, #4791) [@JohelEGP]
3875- Demo: Better showcase use of SetNextItemAllowOverlap(). (#6574, #6512, #3909, #517)
3876- Demo: Showcase a few more InputText() flags.
3877- Backends: Made all backends sources files support global IMGUI_DISABLE. (#6601)
3878- Backends: GLFW: Revert ignoring mouse data on GLFW_CURSOR_DISABLED as it can be used
3879 differently. User may set ImGuiConfigFlags_NoMouse if desired. (#5625, #6609) [@scorpion-26]
3880- Backends: WebGPU: Update for changes in Dawn. (#6602, #6188) [@williamhCode]
3881- Examples: Vulkan: Creating minimal descriptor pools to fit only what is needed by
3882 example. (#6642) [@SaschaWillem]
3883
3884Docking+Viewports Branch:
3885
3886- Docking, Style: resizing separators use same colors as window borders (ImGuiCol_Border)
3887 for consistency. With default styles it doesn't make a big difference. (#2522) [@rmitton]
3888 In the future if we promote using thick value for inner/outer docking padding we may
3889 need to introduce new colors for it.
3890- Docking: added style.DockingSeparatorSize, ImGuiStyleVar_DockingSeparatorSize. Now
3891 also scaled by style.ScaleAllSizes(). (#3481, #4721, #2522) [@PossiblyAShrub, @wobbier]
3892- Docking: fixed rendering of docked-window scrollbar above outer border. (#2522)
3893
3894
3895-----------------------------------------------------------------------
3896 VERSION 1.89.7 (Released 2023-07-04)
3897-----------------------------------------------------------------------
3898
3899Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.7
3900
3901Breaking changes:
3902
3903- Moved io.HoverDelayShort/io.HoverDelayNormal to style.HoverDelayShort/style.HoverDelayNormal.
3904 As the fields were added in 1.89 and expected to be left unchanged by most users, or only
3905 tweaked once during app initialization, we are exceptionally accepting the breakage.
3906 Majority of users should not even notice.
3907- Overlapping items: (#6512, #3909, #517)
3908 - Added 'SetNextItemAllowOverlap()' (called before an item) as a replacement for using
3909 'SetItemAllowOverlap()' (called after an item). This is roughly equivalent to using the
3910 legacy 'SetItemAllowOverlap()' call (public API) + ImGuiButtonFlags_AllowOverlap (internal).
3911 - Obsoleted 'SetItemAllowOverlap()': it didn't and couldn't work reliably since 1.89 (2022-11-15),
3912 and relied on ambiguously defined design. Use 'SetNextItemAllowOverlap()' before item instead.
3913 - Selectable, TreeNode: When using ImGuiSelectableFlags_AllowOverlap/ImGuiTreeNodeFlags_AllowOverlap
3914 and holding item held, overlapping widgets won't appear as hovered. (#6512, #3909)
3915 While this fixes a common small visual issue, it also means that calling IsItemHovered()
3916 after a non-reactive elements - e.g. Text() - overlapping an active one may fail if you don't
3917 use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem). (#6610)
3918 - Renamed 'ImGuiTreeNodeFlags_AllowItemOverlap' to 'ImGuiTreeNodeFlags_AllowOverlap'.
3919 - Renamed 'ImGuiSelectableFlags_AllowItemOverlap' to 'ImGuiSelectableFlags_AllowOverlap'
3920 - Kept redirecting enums (will obsolete).
3921
3922Other changes:
3923
3924- Tooltips/IsItemHovered() related changes:
3925 - Tooltips: Added SetItemTooltip() and BeginItemTooltip() functions.
3926 They are shortcuts for the common idiom of using IsItemHovered().
3927 - SetItemTooltip("Hello") == if (IsItemHovered(ImGuiHoveredFlags_Tooltip)) { SetTooltip("Hello"); }
3928 - BeginItemTooltip() == IsItemHovered(ImGuiHoveredFlags_Tooltip) && BeginTooltip()
3929 The newly added ImGuiHoveredFlags_Tooltip is meant to facilitate standardizing
3930 mouse hovering delays and rules for a given application.
3931 The previously common idiom of using 'if (IsItemHovered()) { SetTooltip(...); }'
3932 won't use delay or stationary test.
3933 - IsItemHovered: Added ImGuiHoveredFlags_Stationary to require mouse being
3934 stationary when hovering a new item. Added style.HoverStationaryDelay (~0.15 sec).
3935 Once the mouse has been stationary once the state is preserved for same item. (#1485)
3936 - IsItemHovered: Added ImGuiHoveredFlags_ForTooltip as a shortcut for pulling flags
3937 from style.HoverFlagsForTooltipMouse or style.HoverFlagsForTooltipNav depending
3938 on active inputs (#1485)
3939 - style.HoverFlagsForTooltipMouse defaults to 'ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort'
3940 - style.HoverFlagsForTooltipNav defaults to 'ImGuiHoveredFlags_NoSharedDelay | ImGuiHoveredFlags_DelayNormal'.
3941 - Tooltips: Tweak default offset for non-drag and drop tooltips so underlying items
3942 isn't covered as much. (Match offset for drag and drop tooltips)
3943 - IsItemHovered: Tweaked default value of style.HoverDelayNormal from 0.30 to 0.40,
3944 Tweaked default value of style.HoverDelayShort from 0.10 to 0.15. (#1485)
3945 - IsItemHovered: Added ImGuiHoveredFlags_AllowWhenOverlappedByWindow to ignore window-overlap only.
3946 Option ImGuiHoveredFlags_AllowWhenOverlapped now expand into a combination of both
3947 _AllowWhenOverlappedByWindow + _AllowWhenOverlappedByItem, matching old behavior.
3948- Overlapping items: (#6512, #3909, #517)
3949 - Most item types should now work with SetNextItemAllowOverlap(). (#6512, #3909, #517)
3950 - Fixed first frame of an overlap highlighting underlying item if previous frame didn't hover anything.
3951 - IsItemHovered: Changed to return false when querying an item using AllowOverlap mode which
3952 is being overlapped. Added ImGuiHoveredFlags_AllowWhenOverlappedByItem to opt-out. (#6512, #3909, #517)
3953- IsWindowHovered: Added support for ImGuiHoveredFlags_Stationary.
3954- IsWindowHovered, IsItemHovered: Assert when passed any unsupported flags.
3955- Tables: Fixed a regression in 1.89.6 leading to the first column of tables with either
3956 ScrollX or ScrollY flags from being impossible to resize. (#6503)
3957- CollapsingHeader/TreeNode: Fixed text padding when using _Framed+_Leaf flags. (#6549) [@BobbyAnguelov]
3958- InputText: Fixed not returning true when buffer is cleared while using the
3959 ImGuiInputTextFlags_EscapeClearsAll flag. (#5688, #2620)
3960- InputText: Fixed a crash on deactivating a ReadOnly buffer. (#6570, #6292, #4714)
3961- InputText: ImGuiInputTextCallbackData::InsertChars() accept (NULL,NULL) range, in order to conform
3962 to common idioms (e.g. passing .data(), .data() + .size() from a null string). (#6565, #6566, #3615)
3963- Combo: Made simple/legacy Combo() function not returns true when picking already selected item.
3964 This is consistent with other widgets. If you need something else, you can use BeginCombo(). (#1182)
3965- Clipper: Rework inner logic to allow functioning with a zero-clear constructor.
3966 This is order to facilitate usage for language bindings (e.g cimgui or dear_binding)
3967 where user may not be calling a constructor manually. (#5856)
3968- Drag and Drop: Apply default behavior of drag source not reporting itself as hovered
3969 at lower-level, so DragXXX, SliderXXX, InputXXX, Plot widgets are fulfilling it.
3970 (Behavior doesn't apply when ImGuiDragDropFlags_SourceNoDisableHover is set).
3971- Modals: In the case of nested modal, made sure that focused or appearing windows are
3972 moved below the lowest blocking modal (rather than the highest one). (#4317)
3973- GetKeyName(): Fixed assert with ImGuiMod_XXX values when IMGUI_DISABLE_OBSOLETE_KEYIO is set.
3974- Debug Tools: Added 'io.ConfigDebugIniSettings' option to save .ini data with extra
3975 comments. Currently mainly for inspecting Docking .ini data, but makes saving slower.
3976- Demo: Added more developed "Widgets->Tooltips" section. (#1485)
3977- Backends: OpenGL3: Fixed support for glBindSampler() backup/restore on ES3. (#6375, #6508) [@jsm174]
3978- Backends: OpenGL3: Fixed erroneous use glGetIntegerv(GL_CONTEXT_PROFILE_MASK) on contexts
3979 lower than 3.2. (#6539, #6333) [@krumelmonster]
3980- Backends: Vulkan: Added optional support for VK_KHR_dynamic_rendering (Vulkan 1.3+) in the
3981 backend for applications using it. User needs to set 'init_info->UseDynamicRendering = true'
3982 and 'init_info->ColorAttachmentFormat'. RenderPass becomes unused. (#5446, #5037) [@spnda, @cmarcelo]
3983- Backends: GLFW: Accept glfwGetTime() not returning a monotonically increasing value.
3984 This seems to happens on some Windows setup when peripherals disconnect, and is likely
3985 to also happen on browser+Emscripten. Matches similar 1.89.4 fix in SDL backend. (#6491)
3986- Examples: Win32+OpenGL3: Changed DefWindowProc() to DefWindowProcW() to match other examples
3987 and support the example app being compiled without UNICODE. (#6516, #5725, #5961, #5975) [@yenixing]
3988
3989Docking+Viewports Branch:
3990
3991- Viewports+Docking: Fixed extraneous viewport+platform-window recreation in various
3992 combination of showing or hiding windows, docking with/without split, undocking.
3993 While with some backends and without OS decorations, some extraneous window recreation
3994 were visibly not noticeable, they would typically become noticeable when enabling
3995 OS decorations on those windows (e.g. Windows title bar fade-in/animation).
3996- Viewports: Closing a viewport via OS/platform means (e.g. OS close button or task-bar menu),
3997 mark all windows in this viewport as closed.
3998- Docking: Fixed one-frame flickering on reappearing windows binding to a dock node
3999 where a later-submitted window was already bound.
4000- Docking: Fixed dragging from title-bar empty space (regression from 1.88 related to
4001 keeping ID alive when calling low-level ButtonBehavior() directly). (#5181, #2645)
4002- Docking: [Internal] DockBuilderDockWindow() API calls don't clear docking order
4003 if the target node is same as existing one.
4004- Backends: Win32: Added support for changing ParentViewportID after viewport creation.
4005
4006
4007-----------------------------------------------------------------------
4008 VERSION 1.89.6 (Released 2023-05-31)
4009-----------------------------------------------------------------------
4010
4011Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.6
4012
4013Breaking changes:
4014
4015- Clipper: Commented out obsolete redirection constructor which was marked obsolete in 1.79:
4016 'ImGuiListClipper(int items_count, float items_height)' --> Use 'ImGuiListClipper() + clipper.Begin()'.
4017- Clipper: Renamed ForceDisplayRangeByIndices() to IncludeRangeByIndices(), kept
4018 inline redirection function (introduced in 1.86 and rarely used). (#6424, #3841)
4019- Commented out obsolete/redirecting functions that were marked obsolete more than two years ago:
4020 - ListBoxHeader() -> use BeginListBox()
4021 - ListBoxFooter() -> use EndListBox()
4022 - Note how two variants of ListBoxHeader() existed. Check commented versions in imgui.h for reference.
4023- Backends: SDL_Renderer: Renamed 'imgui_impl_sdlrenderer.h/cpp' to 'imgui_impl_sdlrenderer2.h/cpp',
4024 in order to accommodate for upcoming SDL3 and change in its SDL_Renderer API. (#6286)
4025- Backends: GLUT: Removed call to ImGui::NewFrame() from ImGui_ImplGLUT_NewFrame().
4026 It needs to be called from the main app loop, like with every other backends. (#6337) [@GereonV]
4027
4028Other changes:
4029
4030- Window: Fixed resizing from upper border when io.ConfigWindowsMoveFromTitleBarOnly is set. (#6390)
4031- Tables: Fixed a small miscalculation in TableHeader() leading to an empty tooltip
4032 showing when a sorting column has no visible name. (#6342) [@lukaasm]
4033- Tables: Fixed command merging when compiling with VS2013 (one array on stack was not
4034 initialized on VS2013. Unsure if due to a bug or UB/standard conformance). (#6377)
4035- InputText: Avoid setting io.WantTextInputNextFrame during the deactivation frame.
4036 (#6341) [@lukaasm]
4037- Drag, Sliders: if the format string doesn't contain any %, CTRL+Click to input text will
4038 use the default format specifier for the type. Allow display/input of raw value when using
4039 "enums" patterns (display label instead of value) + allow using when value is hidden. (#6405)
4040- Nav: Record/restore preferred position on each given axis after a movement on that axis,
4041 then score movement on the other axis using this as a bias. This allows going up and down
4042 between e.g. a large header spanning horizontal space and three-ways-columns, landing
4043 on the same column as before.
4044- Nav: Fixed navigation within tables/columns where item boundaries goes beyond columns limits,
4045 unclipped bounding boxes would interfere with other columns. (#2221) [@zzzyap, @ocornut]
4046- Nav: Fixed CTRL+Tab into a root window with only childs with _NavFlattened flags
4047 erroneously initializing default nav layer to menu layer.
4048- Menus: Fixed an issue when opening a menu hierarchy in a given menu-bar would allow
4049 opening another via simple hovering. (#3496, #4797)
4050- Fonts: Fixed crash when merging fonts and the first font has no valid glyph. (#6446) [@JaedanC]
4051- Fonts: Fixed crash when manually specifying an EllipsisChar that doesn't exist. (#6480)
4052- Misc: Added ImVec2 unary minus operator. (#6368) [@Koostosh]
4053- Debug Tools: Debug Log: Fixed not parsing 0xXXXXXXXX values for geo-locating on mouse
4054 hover hover when the identifier is at the end of the line. (#5855)
4055- Debug Tools: Added 'io.ConfigDebugIgnoreFocusLoss' option to disable 'io.AddFocusEvent(false)'
4056 handling. May facilitate interactions with a debugger when focus loss leads to clearing
4057 inputs data. (#4388, #4921)
4058- Backends: Clear bits sets io.BackendFlags on backend Shutdown(). (#6334, #6335] [@GereonV]
4059 Potentially this would facilitate switching runtime backend mid-session.
4060- Backends: Win32: Added ImGui_ImplWin32_InitForOpenGL() to facilitate combining raw
4061 Win32/Winapi with OpenGL. (#3218)
4062- Backends: OpenGL3: Restore front and back polygon mode separately when supported
4063 by context (Desktop 3.0, 3.1, or 3.2+ with compat bit). (#6333) [@GereonV]
4064- Backends: OpenGL3: Support for glBindSampler() backup/restore on ES3. (#6375) [@jsm174]
4065- Backends: SDL3: Fixed build on Emscripten/iOS/Android. (#6391) [@jo-codegirl]
4066- Backends: SDLRenderer3: Added SDL_Renderer for SDL3 backend. (#6286) [@Carcons, @ocornut]
4067- Examples: Added native Win32+OpenGL3 example. We don't recommend using this setup but we
4068 provide it for completeness. (#3218, #5170, #6086, #2772, #2600, #2359, #2022, #1553) [@learn-more]
4069- Examples: Vulkan: Use integrated GPU if nothing else is available. (#6359) [@kimidaisuki22]
4070- Examples: DX9, DX10, DX11: Queue framebuffer resize instead of processing in WM_SIZE,
4071 as some drivers tends to only cleanup after existing the native resize modal loop. (#6374)
4072- Examples: Added SDL3+SDL_Renderer example. (#6286)
4073- Examples: Updated all Visual Studio projects and batches to use /utf-8 argument.
4074
4075Docking+Viewports Branch:
4076
4077- Viewports: Fixed platform-side focus (e.g. Alt+Tab) from leading to accidental
4078 closure of Modal windows. Regression from 1.89.5. (#6357, #6299)
4079- Viewports: Fixed loss of imgui-side focus when dragging a secondary viewport back in
4080 main viewport, due to platform-side handling changes. Regression from 1.89.5 (#6299)
4081- Viewports: Avoid applying imgui-side focus when focus change is due to a viewport
4082 destruction. Fixes erroneous popup closure on closing a previous popup. (#6462, #6299)
4083- Viewports: Added void* ImGuiPlatformMonitor::PlatformHandle field (backend-dependant),
4084 for usage by user code.
4085- Backends: GLFW: Preserve monitor list when there are no monitor, may briefly
4086 happen when recovering from macOS sleeping mode. (#5683) [@Guistac]
4087- Backends: SDL2: Update monitor list when receiving a display event. (#6348)
4088 Note however that SDL2 currently doesn't have an event for a DPI/Scaling change,
4089 so monitor data won't be updated in this situation.
4090- Backends: SDL3: Update monitor list when receiving a display event. (#6348)
4091
4092
4093-----------------------------------------------------------------------
4094 VERSION 1.89.5 (Released 2023-04-13)
4095-----------------------------------------------------------------------
4096
4097Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.5
4098
4099Other changes:
4100
4101- InputText: Reworked prev/next-word behavior to more closely match Visual Studio
4102 text editor. Include '.' as a delimiter and alter varying subtle behavior with how
4103 blanks and separators are treated when skipping words. (#6067) [@ajweeks]
4104- InputText: Fixed a tricky edge case, ensuring value is always written back on the
4105 frame where IsItemDeactivated() returns true, in order to allow usage without user
4106 retaining underlying data. While we don't really want to encourage user not retaining
4107 underlying data, in the absence of a "late commit" behavior/flag we understand it may
4108 be desirable to take advantage of this trick. (#4714)
4109- Drag, Sliders: Fixed parsing of text input when '+' or '#' format flags are used
4110 in the format string. (#6259) [@idbrii]
4111- Nav: Made Ctrl+Tab/Ctrl+Shift+Tab windowing register ownership to held modifier so
4112 it doesn't interfere with other code when remapping those actions. (#4828, #3255, #5641)
4113- Nav: Made PageUp/PageDown/Home/End navigation also scroll parent windows when
4114 necessary to make the target location fully visible (same as e.g. arrow keys).
4115- ColorEdit: Fixed shading of S/V triangle in Hue Wheel mode. (#5200, #6254) [@jamesthomasgriffin]
4116- TabBar: Tab-bars with ImGuiTabBarFlags_FittingPolicyScroll can be scrolled with
4117 horizontal mouse-wheel (or Shift + WheelY). (#2702)
4118- Rendering: Using adaptive tessellation for RadioButton, ColorEdit preview circles,
4119 Windows Close and Collapse Buttons.
4120- ButtonBehavior: Fixed an edge case where changing widget type/behavior while active
4121 and using same id could lead to an assert. (#6304)
4122- Misc: Fixed ImVec2 operator[] violating aliasing rules causing issue with Intel C++
4123 compiler. (#6272) [@BayesBug]
4124- IO: Input queue trickling adjustment for touch screens. (#2702, #4921)
4125 This fixes single-tapping to move simulated mouse and immediately click on a widget
4126 that is using the ImGuiButtonFlags_AllowItemOverlap policy.
4127 - This only works if the backend can distinguish TouchScreen vs Mouse.
4128 See 'Demo->Tools->Metrics->Inputs->Mouse Source' to verify.
4129 - Fixed tapping on BeginTabItem() on a touch-screen. (#2702)
4130 - Fixed tapping on CollapsingHeader() with a close button on a touch-screen.
4131 - Fixed tapping on TreeNode() using ImGuiTreeNodeFlags_AllowItemOverlap on a touch-screen.
4132 - Fixed tapping on Selectable() using ImGuiSelectableFlags_AllowItemOverlap on a touch-screen.
4133 - Fixed tapping on TableHeader() on a touch-screen.
4134- IO: Added io.AddMouseSourceEvent() and ImGuiMouseSource enum. This is to allow backend to
4135 specify actual event source between Mouse/TouchScreen/Pen. (#2702, #2334, #2372, #3453, #5693)
4136- IO: Fixed support for calling io.AddXXXX functions from inactive context (wrongly
4137 advertised as supported in 1.89.4). (#6199, #6256, #5856) [@cfillion]
4138- Backends: OpenGL3: Fixed GL loader crash when GL_VERSION returns NULL. (#6154, #4445, #3530)
4139- Backends: OpenGL3: Properly restoring "no shader program bound" if it was the case prior to
4140 running the rendering function. (#6267, #6220, #6224) [@BrunoLevy]
4141- Backends: Win32: Added support for io.AddMouseSourceEvent() to discriminate Mouse/TouchScreen/Pen. (#2334, #2702)
4142- Backends: SDL2/SDL3: Added support for io.AddMouseSourceEvent() to discriminate Mouse/TouchScreen.
4143 This is relying on SDL passing SDL_TOUCH_MOUSEID in the event's 'which' field. (#2334, #2702)
4144- Backends: SDL2/SDL3: Avoid calling SDL_StartTextInput()/SDL_StopTextInput() as they actually
4145 block text input input and don't only pertain to IME. It's unclear exactly what their relation
4146 is to other IME function such as SDL_SetTextInputRect(). (#6306, #6071, #1953)
4147- Backends: GLFW: Added support on Win32 only for io.AddMouseSourceEvent() to discriminate
4148 Mouse/TouchScreen/Pen. (#2334, #2702)
4149- Backends: Android: Added support for io.AddMouseSourceEvent() to discriminate Mouse/TouchScreen/Pen.
4150 (#6315) [@PathogenDavid]
4151- Backends: OSX: Added support for io.AddMouseSourceEvent() to discriminate Mouse/Pen.
4152 (#6314) [@PathogenDavid]
4153- Backends: WebGPU: Align buffers. Use WGSL shaders instead of SPIR-V. Add gamma uniform. (#6188) [@eliemichel]
4154- Backends: WebGPU: Reorganized to store data in io.BackendRendererUserData like other backends.
4155- Examples: Vulkan: Fixed validation errors with newer VulkanSDK by explicitly querying and enabling
4156 "VK_KHR_get_physical_device_properties2", "VK_KHR_portability_enumeration", and
4157 VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR. (#6109, #6172, #6101)
4158- Examples: Windows: Added 'misc/debuggers/imgui.natstepfilter' file to all Visual Studio projects,
4159 now that VS 2022 17.6 Preview 2 support adding Debug Step Filter spec files into projects.
4160- Examples: SDL3: Updated for latest WIP SDL3 branch. (#6243)
4161- TestSuite: Added variety of new regression tests and improved/amended existing ones
4162 in imgui_test_engine/ repo. [@PathogenDavid, @ocornut]
4163
4164Docking+Viewports Branch:
4165
4166- Viewports: Setting focus from Platform/OS (e.g. via decoration, or Alt-Tab) sets corresponding
4167 focus at Dear ImGui level (generally last focused window in the viewport). (#6299)
4168- Docking: Fixed using GetItemXXX() or IsItemXXX() functions after a DockSpace(). (#6217)
4169- Backends: GLFW: Fixed key modifiers handling on secondary viewports. (#6248, #6034) [@aiekick]
4170- Backends: GLFW: Fixed Emscripten erroneously enabling multi-viewport support, leading to assert. (#5683)
4171- Backends: SDL2/SDL3: Fixed IME text input rectangle position with viewports. (#6071, #1953)
4172- Backends: SDL3: Fixed for compilation with multi-viewports. (#6255) [@P3RK4N]
4173
4174
4175-----------------------------------------------------------------------
4176 VERSION 1.89.4 (Released 2023-03-14)
4177-----------------------------------------------------------------------
4178
4179Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.4
4180
4181Breaking Changes:
4182
4183- Renamed PushAllowKeyboardFocus()/PopAllowKeyboardFocus() to PushTabStop()/PopTabStop().
4184 Kept inline redirection functions (will obsolete).
4185- Moved the optional "courtesy maths operators" implementation from imgui_internal.h in imgui.h.
4186 Even though we encourage using your own maths types and operators by setting up IM_VEC2_CLASS_EXTRA,
4187 it has been frequently requested by people to use our own. We had an opt-in define which was
4188 previously fulfilled by imgui_internal.h. It is now fulfilled by imgui.h. (#6164, #6137, #5966, #2832)
4189 OK: #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui.h" / #include "imgui_internal.h"
4190 Error: #include "imgui.h" / #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui_internal.h"
4191 Added a dedicated compile-time check message to help diagnose this.
4192- Tooltips: Added 'bool' return value to BeginTooltip() for API consistency.
4193 Please only submit contents and call EndTooltip() if BeginTooltip() returns true.
4194 In reality the function will _currently_ always return true, but further changes down the
4195 line may change this, best to clarify API sooner. Updated demo code accordingly.
4196- Commented out redirecting enums/functions names that were marked obsolete two years ago:
4197 - ImGuiSliderFlags_ClampOnInput -> use ImGuiSliderFlags_AlwaysClamp
4198 - ImGuiInputTextFlags_AlwaysInsertMode -> use ImGuiInputTextFlags_AlwaysOverwrite
4199 - ImDrawList::AddBezierCurve() -> use ImDrawList::AddBezierCubic()
4200 - ImDrawList::PathBezierCurveTo() -> use ImDrawList::PathBezierCubicCurveTo()
4201
4202Other changes:
4203
4204- Nav: Tabbing now cycles through all items when ImGuiConfigFlags_NavEnableKeyboard is set.
4205 (#3092, #5759, #787)
4206 While this was generally desired and requested by many, note that its addition means
4207 that some types of UI may become more fastidious to use TAB key with, if the navigation
4208 cursor cycles through too many items. You can mark items items as not tab-spottable:
4209 - Public API: PushTabStop(false) / PopTabStop()
4210 - Internal: PushItemFlag(ImGuiItemFlags_NoTabStop, true);
4211 - Internal: Directly pass ImGuiItemFlags_NoTabStop to ItemAdd() for custom widgets.
4212- Nav: Tabbing/Shift+Tabbing can more reliably be used to step out of an item that is not
4213 tab-stoppable. (#3092, #5759, #787)
4214- Nav: Made Enter key submit the same type of Activation event as Space key,
4215 allowing to press buttons with Enter. (#5606)
4216 (Enter emulates a "prefer text input" activation vs.
4217 Space emulates a "prefer tweak" activation which is to closer to gamepad controls).
4218- Nav: Fixed an issue with Gamepad navigation when the movement lead to a scroll and
4219 frame time > repeat rate. Triggering a new move request on the same frame as a move
4220 result lead to an incorrect calculation and loss of navigation id. (#6171)
4221- Nav: Fixed SetItemDefaultFocus() from not scrolling when item is partially visible.
4222 (#2814, #2812) [@DomGries]
4223- Tables: Fixed an issue where user's Y cursor movement within a hidden column would
4224 have side-effects.
4225- IO: Lifted constraint to call io.AddEventXXX functions from current context. (#4921, #5856, #6199)
4226- InputText: Fixed not being able to use CTRL+Tab while an InputText() using Tab
4227 for completion or text data is active (regression from 1.89).
4228- Drag and Drop: Fixed handling of overlapping targets when smaller one is submitted
4229 before and can accept the same data type. (#6183).
4230- Drag and Drop: Clear drag and drop state as soon as delivery is accepted in order to
4231 avoid interferences. (#5817, #6183) [@DimaKoltun]
4232- Debug Tools: Added io.ConfigDebugBeginReturnValueOnce / io.ConfigDebugBeginReturnValueLoop
4233 options to simulate Begin/BeginChild returning false to facilitate debugging user behavior.
4234- Demo: Updated to test return value of BeginTooltip().
4235- Backends: OpenGL3: Fixed restoration of a potentially deleted OpenGL program. If an active
4236 program was pending deletion, attempting to restore it would error. (#6220, #6224) [@Cyphall]
4237- Backends: Win32: Use WM_NCMOUSEMOVE / WM_NCMOUSELEAVE to track mouse positions over
4238 non-client area (e.g. OS decorations) when app is not focused. (#6045, #6162)
4239- Backends: SDL2, SDL3: Accept SDL_GetPerformanceCounter() not returning a monotonically
4240 increasing value. (#6189, #6114, #3644) [@adamkewley]
4241- Backends: GLFW: Avoid using glfwGetError() and glfwGetGamepadState() on Emscripten, which
4242 recently updated its GLFW emulation layer to GLFW 3.3 without supporting those. (#6240)
4243- Examples: Android: Fixed example build for Gradle 8. (#6229, #6227) [@duddel]
4244- Examples: Updated all examples application to enable ImGuiConfigFlags_NavEnableKeyboard
4245 and ImGuiConfigFlags_NavEnableGamepad by default. (#787)
4246- Internals: Misc tweaks to facilitate applying an explicit-context patch. (#5856) [@Dragnalith]
4247
4248-----------------------------------------------------------------------
4249 VERSION 1.89.3 (Released 2023-02-14)
4250-----------------------------------------------------------------------
4251
4252Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.3
4253
4254Breaking Changes:
4255
4256- Backends+Examples: SDL2: renamed all unnumbered references to "sdl" to "sdl2".
4257 This is in prevision for the future release of SDL3 and its associated backend. (#6146)
4258 - imgui_impl_sdl.cpp -> imgui_impl_sdl2.cpp
4259 - imgui_impl_sdl.h -> imgui_impl_sdl2.h
4260 - example_sdl_xxxx/ -> example_sdl2_xxxx/ (folders and projects)
4261
4262Other changes:
4263
4264- SeparatorText(): Added SeparatorText() widget. (#1643) [@phed, @ocornut]
4265 - Added to style: float SeparatorTextBorderSize.
4266 - Added to style: ImVec2 SeparatorTextAlign, SeparatorTextPadding.
4267- Tables: Raised max Columns count from 64 to 512. (#6094, #5305, #4876, #3572)
4268 The previous limit was due to using 64-bit integers but we moved to bits-array
4269 and tweaked the system enough to ensure no performance loss.
4270- Tables: Solved an ID conflict issue with multiple-instances of a same table,
4271 due to how unique table instance id was generated. (#6140) [@ocornut, @rodrigorc]
4272- Inputs, Scrolling: Made horizontal scroll wheel and horizontal scroll direction consistent
4273 across backends/os. (#4019, #6096, #1463) [@PathogenDavid, @ocornut, @rokups]
4274 - Clarified that 'wheel_y > 0.0f' scrolls Up, 'wheel_y < 0.0f' scrolls Down.
4275 Clarified that 'wheel_x > 0.0f' scrolls Left, 'wheel_x < 0.0f' scrolls Right.
4276 - Backends: Fixed horizontal scroll direction for Win32 and SDL backends. (#4019)
4277 - Shift+WheelY support on non-OSX machines was already correct. (#2424, #1463)
4278 (whereas on OSX machines Shift+WheelY turns into WheelX at the OS level).
4279 - If you use a custom backend, you should verify horizontal wheel direction.
4280 - Axes are flipped by OSX for mouse & touch-pad when 'Natural Scrolling' is on.
4281 - Axes are flipped by Windows for touch-pad when 'Settings->Touchpad->Down motion scrolls up' is on.
4282 - You can use 'Demo->Tools->Debug Log->IO" to visualize values submitted to Dear ImGui.
4283 - Known issues remaining with Emscripten:
4284 - The magnitude of wheeling values on Emscripten was improved but isn't perfect. (#6096)
4285 - When running the Emscripten app on a Mac with a mouse, SHIFT+WheelY doesn't turn into WheelX.
4286 This is because we don't know that we are running on Mac and apply our own Shift+swapping
4287 on top of OSX's own swapping, so wheel axes are swapped twice. Emscripten apps may need
4288 to find a way to detect this and set io.ConfigMacOSXBehaviors manually (if you know a way
4289 let us know!), or offer the "OSX-style behavior" option to their user.
4290- Window: Avoid rendering shapes for hidden resize grips.
4291- Text: Fixed layouting of wrapped-text block skipping successive empty lines,
4292 regression from the fix in 1.89.2. (#5720, #5919)
4293- Text: Fixed clipping of single-character "..." ellipsis (U+2026 or U+0085) when font
4294 is scaled. Scaling wasn't taken into account, leading to ellipsis character straying
4295 slightly out of its expected boundaries. (#2775)
4296- Text: Tweaked rendering of three-dots "..." ellipsis variant. (#2775, #4269)
4297- InputText: Added support for Ctrl+Delete to delete up to end-of-word. (#6067) [@ajweeks]
4298 (Not adding Super+Delete to delete to up to end-of-line on OSX, as OSX doesn't have it)
4299- InputText: On OSX, inhibit usage of Alt key to toggle menu when active (used for work skip).
4300- Menus: Fixed layout of MenuItem()/BeginMenu() when label contains a '\n'. (#6116) [@imkcy9]
4301- ColorEdit, ColorPicker: Fixed hue/saturation preservation logic from interfering with
4302 the displayed value (but not stored value) of others widgets instances. (#6155)
4303- PlotHistogram, PlotLines: Passing negative sizes honor alignment like other widgets.
4304- Combo: Allow SetNextWindowSize() to alter combo popup size. (#6130)
4305- Fonts: Assert that in each GlyphRanges[] pairs first is <= second.
4306- ImDrawList: Added missing early-out in AddPolyline() and AddConvexPolyFilled() when
4307 color alpha is zero.
4308- Misc: Most text functions treat "%s" as a shortcut to no-formatting. (#3466)
4309- Misc: Tolerate zero delta-time under Emscripten as backends are imprecise in their
4310 values for io.DeltaTime, and browser features such as "privacy.resistFingerprinting=true"
4311 can exacerbate that. (#6114, #3644)
4312- Backends: OSX: Fixed scroll/wheel scaling for devices emitting events with
4313 hasPreciseScrollingDeltas==false (e.g. non-Apple mice).
4314- Backends: Win32: flipping WM_MOUSEHWHEEL horizontal value to match other backends and
4315 offer consistent horizontal scrolling direction. (#4019)
4316- Backends: SDL2: flipping SDL_MOUSEWHEEL horizontal value to match other backends and
4317 offer consistent horizontal scrolling direction. (#4019)
4318- Backends: SDL2: Removed SDL_MOUSEWHEEL value clamping. (#4019, #6096, #6081)
4319- Backends: SDL2: Added support for SDL 2.0.18+ preciseX/preciseY mouse wheel data
4320 for smooth scrolling as reported by SDL. (#4019, #6096)
4321- Backends: SDL2: Avoid calling SDL_SetCursor() when cursor has not changed, as the function
4322 is surprisingly costly on Mac with latest SDL (already fixed in SDL latest trunk). (#6113)
4323- Backends: SDL2: Implement IME handler to call SDL_SetTextInputRect()/SDL_StartTextInput().
4324 It will only works with SDL 2.0.18+ if your code calls 'SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1")'
4325 prior to calling SDL_CreateWindow(). Updated all examples accordingly. (#6071, #1953)
4326- Backends: SDL3: Added experimental imgui_impl_sdl3.cpp backend. (#6146) [@dovker, @ocornut]
4327 SDL 3.0.0 has not yet been released, so it is possible that its specs/api will change before
4328 release. This backend is provided as a convenience for early adopters etc. We don't recommend
4329 switching to SDL3 before it is released.
4330- Backends: GLFW: Registering custom low-level mouse wheel handler to get more accurate
4331 scrolling impulses on Emscripten. (#4019, #6096) [@ocornut, @wolfpld, @tolopolarity]
4332- Backends: GLFW: Added ImGui_ImplGlfw_SetCallbacksChainForAllWindows() to instruct backend
4333 to chain callbacks even for secondary viewports/windows. User callbacks may need to test
4334 the 'window' parameter. (#6142)
4335- Backends: OpenGL3: Fixed GL loader compatibility with 2.x profiles. (#6154, #4445, #3530) [@grauw]
4336- Backends: WebGPU: Fixed building for latest WebGPU specs (remove implicit layout generation).
4337 (#6117, #4116, #3632) [@tonygrue, @bfierz]
4338- Examples: refactored SDL2+GL and GLFW+GL examples to compile with Emscripten.
4339 (#2492, #2494, #3699, #3705) [@ocornut, @nicolasnoble]
4340 The dedicated example_emscripten_opengl3/ has been removed.
4341- Examples: Added SDL3+GL experimental example. (#6146)
4342- Examples: Win32: Fixed examples using RegisterClassW() since 1.89 to also call
4343 DefWindowProcW() instead of DefWindowProc() so that title text are correctly converted
4344 when application is compiled without /DUNICODE. (#5725, #5961, #5975) [@markreidvfx]
4345- Examples: SDL2+SDL_Renderer: Added call to SDL_RenderSetScale() to fix display on a
4346 Retina display (albeit lower-res as our other unmodified examples). (#6121, #6065, #5931).
4347
4348Docking+Viewports Branch:
4349
4350- Backends: GLFW: Handle unsupported glfwGetVideoMode() for Emscripten. (#6096)
4351
4352
4353-----------------------------------------------------------------------
4354 VERSION 1.89.2 (Released 2023-01-05)
4355-----------------------------------------------------------------------
4356
4357Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.2
4358
4359All changes:
4360
4361- Tables, Nav, Scrolling: fixed scrolling functions and focus tracking with frozen rows and
4362 frozen columns. Windows now have a better understanding of outer/inner decoration sizes,
4363 which should later lead us toward more flexible uses of menu/status bars. (#5143, #3692)
4364- Tables, Nav: frozen columns are not part of menu layer and can be crossed over. (#5143, #3692)
4365- Tables, Columns: fixed cases where empty columns may lead to empty ImDrawCmd. (#4857, #5937)
4366- Tables: fixed matching width of synchronized tables (multiple tables with same id) when only
4367 some instances have a vertical scrollbar and not all. (#5920)
4368- Fixed cases where CTRL+Tab or Modal can occasionally lead to the creation of ImDrawCmd with
4369 zero triangles, which would makes the render loop of some backends assert (e.g. Metal with
4370 debugging, Allegro). (#4857, #5937)
4371- Inputs, IO: reworked ImGuiMod_Shortcut to redirect to Ctrl/Super at runtime instead of
4372 compile-time, being consistent with our support for io.ConfigMacOSXBehaviors and making it
4373 easier for bindings generators to process that value. (#5923, #456)
4374- Inputs, Scrolling: better selection of scrolling window when hovering nested windows
4375 and when backend/OS is emitting dual-axis wheeling inputs (typically touch pads on macOS).
4376 We now select a primary axis based on recent events, and select a target window based on it.
4377 We expect this behavior to be further improved/tweaked. (#3795, #4559) [@ocornut, @folays]
4378- InputText: fixed cursor navigation when pressing Up Arrow on the last character of a
4379 multiline buffer which doesn't end with a carriage return. (#6000)
4380- Text: fixed layouting of wrapped-text block when the last source line is above the
4381 clipping region. Regression added in 1.89. (#5720, #5919)
4382- Misc: added GetItemID() in public API. It is not often expected that you would use this,
4383 but it is useful for Shortcut() and upcoming owner-aware input functions which wants to
4384 be implemented with public API.
4385- Fonts: imgui_freetype: fixed a packing issue which in some occurrences would prevent large
4386 amount of glyphs from being packed correctly. (#5788, #5829)
4387- Fonts: added a 'void* UserData' field in ImFontAtlas, as a convenience for use by
4388 applications using multiple font atlases.
4389- Demo: simplified "Inputs" section, moved contents to Metrics->Inputs.
4390- Debug Tools: Metrics: added "Inputs" section, moved from Demo for consistency.
4391- Misc: fixed parameters to IMGUI_DEBUG_LOG() not being dead-stripped when building
4392 with IMGUI_DISABLE_DEBUG_TOOLS is used. (#5901) [@Teselka]
4393- Misc: fixed compile-time detection of SSE features on MSVC 32-bits builds. (#5943) [@TheMostDiligent]
4394- Examples: DirectX10, DirectX11: try WARP software driver if hardware driver is not available. (#5924, #5562)
4395- Backends: GLFW: Fixed mods state on Linux when using Alt-GR text input (e.g. German keyboard layout), which
4396 could lead to broken text input. Revert a 2022/01/17 change were we resumed using mods provided by GLFW,
4397 turns out they are faulty in this specific situation. (#6034)
4398- Backends: Allegro5: restoring using al_draw_indexed_prim() when Allegro version is >= 5.2.5. (#5937) [@Espyo]
4399- Backends: Vulkan: Fixed sampler passed to ImGui_ImplVulkan_AddTexture() not being honored as we were using
4400 an immutable sampler. (#5502, #6001, #914) [@martin-ejdestig, @rytisss]
4401
4402Docking+Viewports Branch:
4403
4404- Docking: Internals: fixed DockBuilderCopyDockSpace() crashing when windows not in the
4405 remapping list are docked on the left or top side of a split. (#6035)
4406- Docking: fixed DockSpace() with ImGuiDockNodeFlags_KeepAliveOnly marking current window
4407 as written to, even if it doesn't technically submit an item. This allow using KeepAliveOnly
4408 from any window location. (#6037)
4409- Backends: OSX: fixed typo in ImGui_ImplOSX_GetWindowSize that would cause issues when resiing
4410 from OS decorations, if they are enabled on secondary viewports. (#6009) [@sivu]
4411- Backends: Metal: fixed secondary viewport rendering. (#6015) [@dmirty-kuzmenko]
4412
4413
4414-----------------------------------------------------------------------
4415 VERSION 1.89.1 (Released 2022-11-24)
4416-----------------------------------------------------------------------
4417
4418Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.1
4419
4420Other changes:
4421
4422- Scrolling, Focus: fixed SetKeyboardFocusHere()/SetItemDefaultFocus() during a window-appearing
4423 frame (and associated lower-level functions e.g. ScrollToRectEx()) from not centering item. (#5902)
4424- Inputs: fixed moving a window or drag and dropping from preventing input-owner-unaware code
4425 from accessing keys. (#5888, #4921, #456)
4426- Inputs: fixed moving a window or drag and dropping from capturing mods. (#5888, #4921, #456)
4427- Layout: fixed End()/EndChild() incorrectly asserting if users manipulates cursor position
4428 inside a collapsed/culled window and IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. (#5548, #5911)
4429- Combo: fixed selected item (marked with SetItemDefaultFocus()) from not being centered when
4430 the combo window initially appears. (#5902).
4431- ColorEdit: fixed label overlapping when using style.ColorButtonPosition == ImGuiDir_Left to
4432 move the color button on the left side (regression introduced in 1.88 WIP 2022/02/28). (#5912)
4433- Drag and Drop: fixed GetDragDropPayload() returning a non-NULL value if a drag source is
4434 active but a payload hasn't been submitted yet. This is convenient to detect new payload
4435 from within a drag source handler. (#5910, #143)
4436- Backends: GLFW: cancel out errors emitted by glfwGetKeyName() when a name is missing. (#5908)
4437- Backends: WebGPU: fixed validation error with default depth buffer settings. (#5869, #5914) [@kdchambers]
4438
4439Docking+Viewports Branch:
4440
4441- Viewports: Fixed collapsed windows setting ImGuiViewportFlags_NoRendererClear without
4442 making title bar color opaque, leading to potential texture/fb garbage being visible.
4443 Right now as we don't fully support transparent viewports (#2766), so we turn that
4444 'TitleBgCollapsed' color opaque just lke we do for 'WindowBG' on uncollapsed windows.
4445
4446
4447-----------------------------------------------------------------------
4448 VERSION 1.89 (Released 2022-11-15)
4449-----------------------------------------------------------------------
4450
4451Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89
4452
4453Breaking changes:
4454
4455- Layout: Obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. (#5548)
4456 This relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item.
4457 - Previously this would make the window content size ~200x200:
4458 Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End();
4459 - Instead, please submit an item:
4460 Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End();
4461 - Alternative:
4462 Begin(...) + Dummy(ImVec2(200,200)) + End();
4463 Content size is now only extended when submitting an item.
4464 With '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert.
4465 Without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it.
4466 (This incorrect pattern has been mentioned or suggested in: #4510, #3355, #1760, #1490, #4152, #150,
4467 threads have been amended to refer to this issue).
4468- Inputs: ImGuiKey is now a typed enum, allowing ImGuiKey_XXX symbols to be named in debuggers. (#4921)
4469 This will require uses of legacy backend-dependent indices to be casted, e.g.
4470 - with imgui_impl_glfw: IsKeyPressed(GLFW_KEY_A) -> IsKeyPressed((ImGuiKey)GLFW_KEY_A);
4471 - with imgui_impl_win32: IsKeyPressed('A') -> IsKeyPressed((ImGuiKey)'A')
4472 - etc. however if you are upgrading code you might as well use the backend-agnostic IsKeyPressed(ImGuiKey_A) now.
4473- Renamed and merged keyboard modifiers key enums and flags into a same set: (#4921, #456)
4474 - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl
4475 - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift
4476 - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt
4477 - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super
4478 Kept inline redirection enums (will obsolete).
4479 This change simplifies a few things, reduces confusion, and will facilitate upcoming
4480 shortcut/input ownership apis.
4481 - The ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends.
4482 - The ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api,
4483 only by third-party extensions. They were however subject to a recent rename
4484 (ImGuiKeyModFlags_XXX -> ImGuiModFlags_XXX) and we are exceptionally commenting out
4485 the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion
4486 and because they were not meant to be used anyway.
4487- Removed io.NavInputs[] and ImGuiNavInput enum that were used to feed gamepad inputs.
4488 Basically 1.87 already obsoleted them from the backend's point of view, but internally
4489 our navigation code still used this array and enum, so they were still present.
4490 Not anymore! (#4921, #4858, #787, #1599, #323)
4491 Transition guide:
4492 - Official backends from 1.87+ -> no issue.
4493 - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating!
4494 - Custom backends not writing to io.NavInputs[] -> no issue.
4495 - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing!
4496 - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[].
4497 The ImGuiNavInput enum was essentially 1.60's attempt to combine keyboard and gamepad inputs with named
4498 semantic, but the additional indirection and copy added complexity and got in the way of other
4499 incoming work. User's code (other than backends) should not be affected, unless you have custom
4500 widgets intercepting navigation events via the named enums (in which case you can upgrade your code).
4501- DragInt()/SliderInt(): Removed runtime patching of invalid "%f"/"%.0f" types of format strings.
4502 This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details.
4503- Changed signature of ImageButton() function: (#5533, #4471, #2464, #1390)
4504 - Added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter.
4505 - Old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1));
4506 - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values.
4507 - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer.
4508 - New signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1));
4509 - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier.
4510 - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this.
4511 - As always we are keeping a redirection function available (will obsolete later).
4512- Removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)'. (#1057)
4513 Must always pass a pointer value explicitly, NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr);
4514 If you used TreePush() replace with TreePush((void*)NULL);
4515- Removed support for 1.42-era IMGUI_DISABLE_INCLUDE_IMCONFIG_H / IMGUI_INCLUDE_IMCONFIG_H. (#255)
4516 They only made sense before we could use IMGUI_USER_CONFIG.
4517
4518Other Changes:
4519
4520- Popups & Modals: fixed nested Begin() inside a popup being erroneously input-inhibited.
4521 While it is unusual, you can nest a Begin() inside a popup or modal, it is occasionally
4522 useful to achieve certain things (e.g. to implement suggestion popups #718, #4461).
4523- Inputs: Standard widgets now claim for key/button ownership and test for them.
4524 - Fixes scenario where e.g. a Popup with a Selectable() reacting on mouse down
4525 (e.g. double click) closes, and behind it is another window with an item reacting
4526 on mouse up. Previously this would lead to both items reacting, now the item in the
4527 window behind won't react on the mouse up since the mouse button ownership has already
4528 been claimed earlier.
4529 - Internals: There are MANY more aspects to this changes. Added experimental/internal APIs
4530 to allow handling input/shorting routing and key ownership. Things will be moved into
4531 public APIs over time. For now this release is a way to test the solidity of underlying
4532 systems while letting early adopters adopters toy with internals.
4533 (#456, #2637, #2620, #2891, #3370, #3724, #4828, #5108, #5242, #5641)
4534- Scrolling: Tweak mouse-wheel locked window timer so it is shorter but also gets reset
4535 whenever scrolling again. Modulate for small (sub-pixel) amounts. (#2604)
4536- Scrolling: Mitigated issue where multi-axis mouse-wheel inputs (usually from touch pad
4537 events) are incorrectly locking scrolling in a parent window. (#4559, #3795, #2604)
4538- Scrolling: Exposed SetNextWindowScroll() in public API. Useful to remove a scrolling
4539 delay in some situations where e.g. windows need to be synced. (#1526)
4540- InputText: added experimental io.ConfigInputTextEnterKeepActive feature to make pressing
4541 Enter keep the input active and select all text.
4542- InputText: numerical fields automatically accept full-width characters (U+FF01..U+FF5E)
4543 by converting them to half-width (U+0021..U+007E).
4544- InputText: added ImGuiInputTextFlags_EscapeClearsAll flag: first press on Escape clears
4545 text if any, second press deactivate the InputText(). (#5688, #2620)
4546- InputText: added support for shift+click style selection. (#5619) [@procedural]
4547- InputText: clarified that callbacks cannot modify buffer when using the ReadOnly flag.
4548- InputText: fixed minor one-frame selection glitch when reverting with Escape.
4549- ColorEdit3: fixed id collision leading to an assertion. (#5707)
4550- IsItemHovered: Added ImGuiHoveredFlags_DelayNormal and ImGuiHoveredFlags_DelayShort flags,
4551 allowing to introduce a shared delay for tooltip idioms. The delays are respectively
4552 io.HoverDelayNormal (default to 0.30f) and io.HoverDelayShort (default to 0.10f). (#1485)
4553- IsItemHovered: Added ImGuiHoveredFlags_NoSharedDelay to disable sharing delays between items,
4554 so moving from one item to a nearby one will requires delay to elapse again. (#1485)
4555- Tables: activating an ID (e.g. clicking button inside) column doesn't prevent columns
4556 output flags from having ImGuiTableColumnFlags_IsHovered set. (#2957)
4557- Tables,Columns: fixed a layout issue where SameLine() prior to a row change would set the
4558 next row in such state where subsequent SameLine() would move back to previous row.
4559- Tabs: Fixed a crash when closing multiple windows (possible with docking only) with an
4560 appended TabItemButton(). (#5515, #3291) [@rokups]
4561- Tabs: Fixed shrinking policy leading to infinite loops when fed unrounded tab widths. (#5652)
4562- Tabs: Fixed shrinking policy sometimes erroneously making right-most tabs stray a little out
4563 bar boundaries (bug in 1.88). (#5652).
4564- Tabs: Enforcing minimum size of 1.0f, fixed asserting on zero-tab widths. (#5572)
4565- Window: Fixed a potential crash when appending to a child window. (#5515, #3496, #4797) [@rokups]
4566- Window: Fixed an issue where uncollapsed a window would show a scrollbar for a frame.
4567- Window: Auto-fit size takes account of work rectangle (menu bars eating from viewport). (#5843)
4568- Window: Fixed position not being clamped while auto-resizing (fixes appearing windows without
4569 .ini data from moving for a frame when using io.ConfigWindowsMoveFromTitleBarOnly). (#5843)
4570- IO: Added ImGuiMod_Shortcut which is ImGuiMod_Super on Mac and ImGuiMod_Ctrl otherwise. (#456)
4571- IO: Added ImGuiKey_MouseXXX aliases for mouse buttons/wheel so all operations done on ImGuiKey
4572 can apply to mouse data as well. (#4921)
4573- IO: Filter duplicate input events during the AddXXX() calls. (#5599, #4921)
4574- IO: Fixed AddFocusEvent(false) to also clear MouseDown[] state. (#4921)
4575- Menus: Fixed incorrect sub-menu parent association when opening a menu by closing another.
4576 Among other things, it would accidentally break part of the closing heuristic logic when moving
4577 towards a sub-menu. (#2517, #5614). [@rokups]
4578- Menus: Fixed gaps in closing logic which would make child-menu erroneously close when crossing
4579 the gap between a menu item inside a window and a child-menu in a secondary viewport. (#5614)
4580- Menus: Fixed using IsItemHovered()/IsItemClicked() on BeginMenu(). (#5775)
4581- Menus, Popups: Experimental fix for issue where clicking on an open BeginMenu() item called from
4582 a window which is neither a popup neither a menu used to incorrectly close and reopen the menu
4583 (the fix may have side-effect and is labelled as experimental as we may need to revert). (#5775)
4584- Menus, Nav: Fixed keyboard/gamepad navigation occasionally erroneously landing on menu-item
4585 in parent window when the parent is not a popup. (#5730)
4586- Menus, Nav: Fixed not being able to close a menu with Left arrow when parent is not a popup. (#5730)
4587- Menus, Nav: Fixed using left/right navigation when appending to an existing menu (multiple
4588 BeginMenu() call with same names). (#1207)
4589- Menus: Fixed a one-frame issue where SetNextWindowXXX data are not consumed by a BeginMenu()
4590 returning false.
4591- Nav: Fixed moving/resizing window with gamepad or keyboard when running at very high framerate.
4592- Nav: Pressing Space/GamepadFaceDown on a repeating button uses the same repeating rate as a mouse hold.
4593- Nav: Fixed an issue opening a menu with Right key from a non-menu window.
4594- Text: Fixed wrapped-text not doing a fast-forward on lines above the clipping region,
4595 which would result in an abnormal number of vertices created (was slower and more likely to
4596 asserts with 16-bits ImDrawVtx). (#5720)
4597- Fonts: Added GetGlyphRangesGreek() helper for Greek & Coptic glyph range. (#5676, #5727) [@azonenberg]
4598- ImDrawList: Not using alloca() anymore, lift single polygon size limits. (#5704, #1811)
4599 - Note: now using a temporary buffer stored in ImDrawListSharedData.
4600 This change made it more visible than you cannot append to multiple ImDrawList from multiple
4601 threads if they share the same ImDrawListSharedData. Previously it was a little more likely
4602 for this to "accidentally" work, but was already incorrect. (#6167)
4603- Platform IME: [Windows] Removed call to ImmAssociateContextEx() leading to freeze on some setups.
4604 (#2589, #5535, #5264, #4972)
4605- Misc: better error reporting for PopStyleColor()/PopStyleVar() + easier to recover. (#1651)
4606- Misc: io.Framerate moving average now converge in 60 frames instead of 120. (#5236, #4138)
4607- Debug Tools: Debug Log: Visually locate items when hovering a 0xXXXXXXXX value. (#5855)
4608- Debug Tools: Debug Log: Added 'IO' and 'Clipper' events logging. (#5855)
4609- Debug Tools: Metrics: Visually locate items when hovering a 0xXXXXXXXX value (in most places).
4610- Debug Tools: Item Picker: Mouse button can be changed by holding Ctrl+Shift, making it easier
4611 to use the Item Picker in e.g. menus. (#2673)
4612- Docs: Fixed various typos in comments and documentations. (#5649, #5675, #5679) [@tocic, @lessigsx]
4613- Demo: Improved "Constrained-resizing window" example, more clearly showcase aspect-ratio. (#5627)
4614- Demo: Added more explicit "Center window" mode to "Overlay example". (#5618)
4615- Demo: Fixed Log & Console from losing scrolling position with Auto-Scroll when child is clipped. (#5721)
4616- Examples: Added all SDL examples to default VS solution.
4617- Examples: Win32: Always use RegisterClassW() to ensure windows are Unicode. (#5725)
4618- Examples: Android: Enable .ini file loading/saving into application internal data folder. (#5836) [@rewtio]
4619- Backends: GLFW: Honor GLFW_CURSOR_DISABLED by not setting mouse position. (#5625) [@scorpion-26]
4620- Backends: GLFW: Add glfwGetError() call on GLFW 3.3 to inhibit missing mouse cursor errors. (#5785) [@mitchellh]
4621- Backends: SDL: Disable SDL 2.0.22 new "auto capture" which prevents drag and drop across windows
4622 (e.g. for multi-viewport support) and don't capture mouse when drag and dropping. (#5710)
4623- Backends: Win32: Convert WM_CHAR values with MultiByteToWideChar() when window class was
4624 registered as MBCS (not Unicode). (#5725, #1807, #471, #2815, #1060) [@or75, @ocornut]
4625- Backends: OSX: Fixed mouse inputs on flipped views. (#5756) [@Nemirtingas]
4626- Backends: OSX: Fixed mouse coordinate before clicking on the host window. (#5842) [@maezawa-akira]
4627- Backends: OSX: Fixes to support full app creation in C++. (#5403) [@stack]
4628- Backends: OpenGL3: Reverted use of glBufferSubData(), too many corruptions issues were reported,
4629 and old leaks issues seemingly can't be reproed with Intel drivers nowadays (revert earlier changes).
4630 (#4468, #4504, #3381, #2981, #4825, #4832, #5127).
4631- Backends: Metal: Use __bridge for ARC based systems. (#5403) [@stack]
4632- Backends: Metal: Add dispatch synchronization. (#5447) [@luigifcruz]
4633- Backends: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount'. (#5603) [@dcvz]
4634- Backends: Vulkan: Added experimental ImGui_ImplVulkan_RemoveTexture() for api symmetry. (#914, #5738).
4635- Backends: WebGPU: fixed rendering when a depth buffer is enabled. (#5869) [@brainlag]
4636
4637Docking+Viewports Branch:
4638
4639- Docking: Fixed incorrect focus highlight on docking node when focusing a menu. (#5702)
4640- Docking, Nav: Fixed using gamepad/keyboard navigation not being able enter menu layer when
4641 it only contained the standard Collapse/Close buttons and no actual menu. (#5463, #4792)
4642- Docking: Fixed regression introduced in v1.87 when docked window content not rendered
4643 while switching between with CTRL+Tab. [@rokups]
4644- Docking: Fixed amending into an existing tab bar from rendering invisible items. (#5515)
4645- Docking: Made spacing between dock nodes not a dropping gap. When hovering it only
4646 outer-docking drop markers are visible.
4647- Docking+Viewports: Fixed undocking window node causing parent viewports to become unresponsive
4648 in certain situation (e.g. hidden tab bar). (#5503) [@rokups]
4649- Backends: SDL: Fixed building backend under non-OSX Apple targets (e.g. iPhone). (#5665)
4650- Backends: SDL: Fixed drag'n drop crossing a viewport border losing mouse coordinates. (#5710, #5012)
4651- Backends: GLFW: Fixed leftover static variable preventing from changing or
4652 reinitializing backend while application is running. (#4616, #5434) [@rtoumazet]
4653
4654
4655-----------------------------------------------------------------------
4656 VERSION 1.88 (Released 2022-06-21)
4657-----------------------------------------------------------------------
4658
4659Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.88
4660
4661Breaking changes:
4662
4663- Renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness.
4664 Kept support for old define (will obsolete).
4665- Renamed CaptureMouseFromApp() and CaptureKeyboardFromApp() to SetNextFrameWantCaptureMouse()
4666 and SetNextFrameWantCaptureKeyboard() to clarify purpose, old name was too misleading.
4667 Kept inline redirection functions (will obsolete).
4668- Renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete).
4669 (This was never used in public API functions but technically present in imgui.h and ImGuiIO).
4670- Backends: OSX: Removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend
4671 automatically handling event capture. Examples that are using the OSX backend have removed
4672 all the now-unnecessary calls to ImGui_ImplOSX_HandleEvent(), applications can do as well.
4673 [@stuartcarnie] (#4821)
4674- Internals: calling ButtonBehavior() without calling ItemAdd() now requires a KeepAliveID()
4675 call. This is because the KeepAliveID() call was moved from GetID() to ItemAdd(). (#5181)
4676
4677Other Changes:
4678
4679- IO: Fixed backward-compatibility regression introduced in 1.87: (#4921, #4858)
4680 - Direct accesses to io.KeysDown[] with legacy indices didn't work (with new backends).
4681 - Direct accesses to io.KeysDown[GetKeyIndex(XXX)] would access invalid data (with old/new backends).
4682 - Calling IsKeyDown() didn't have those problems, and is recommended as io.KeysDown[] is obsolete.
4683- IO: Fixed input queue trickling of interleaved keys/chars events (which are frequent especially
4684 when holding down a key as OS submits chars repeat events) delaying key presses and mouse movements.
4685 In particular, using the input system for fast game-like actions (e.g. WASD camera move) would
4686 typically have been impacted, as well as holding a key while dragging mouse. Constraints have
4687 been lifted and are now only happening when e.g. an InputText() widget is active. (#4921, #4858)
4688 Note that even thought you shouldn't need to disable io.ConfigInputTrickleEventQueue, you can
4689 technically dynamically change its setting based on the context (e.g. disable only when hovering
4690 or interacting with a game/3D view).
4691- IO: Fixed input queue trickling of mouse wheel events: multiple wheel events are merged, while
4692 a mouse pos followed by a mouse wheel are now trickled. (#4921, #4821)
4693- IO: Added io.SetAppAcceptingEvents() to set a master flag for accepting key/mouse/characters
4694 events (default to true). Useful if you have native dialog boxes that are interrupting your
4695 application loop/refresh, and you want to disable events being queued while your app is frozen.
4696- Windows: Fixed first-time windows appearing in negative coordinates from being initialized
4697 with a wrong size. This would most often be noticeable in multi-viewport mode (docking branch)
4698 when spawning a window in a monitor with negative coordinates. (#5215, #3414) [@DimaKoltun]
4699- Clipper: Fixed a regression in 1.86 when not calling clipper.End() and late destructing the
4700 clipper instance. High-level languages (Lua,Rust etc.) would typically be affected. (#4822)
4701- Layout: Fixed mixing up SameLine() and SetCursorPos() together from creating situations where line
4702 height would be emitted from the wrong location (e.g. 'ItemA+SameLine()+SetCursorPos()+ItemB' would
4703 emit ItemA worth of height from the position of ItemB, which is not necessarily aligned with ItemA).
4704- Sliders: An initial click within the knob/grab doesn't shift its position. (#1946, #5328)
4705- Sliders, Drags: Fixed dragging when using hexadecimal display format string. (#5165, #3133)
4706- Sliders, Drags: Fixed manual input when using hexadecimal display format string. (#5165, #3133)
4707- InputScalar: Fixed manual input when using %03d style width in display format string. (#5165, #3133)
4708- InputScalar: Automatically allow hexadecimal input when format is %X (without extra flag).
4709- InputScalar: Automatically allow scientific input when format is float/double (without extra flag).
4710- Nav: Fixed nav movement in a scope with only one disabled item from focusing the disabled item. (#5189)
4711- Nav: Fixed issues with nav request being transferred to another window when calling SetKeyboardFocusHere()
4712 and simultaneous changing window focus. (#4449)
4713- Nav: Changed SetKeyboardFocusHere() to not behave if a drag or window moving is in progress.
4714- Nav: Fixed inability to cancel nav in modal popups. (#5400) [@rokups]
4715- IsItemHovered(): added ImGuiHoveredFlags_NoNavOverride to disable the behavior where the
4716 return value is overridden by focus when gamepad/keyboard navigation is active.
4717- InputText: Fixed pressing Tab emitting two tabs characters because of dual Keys/Chars events being
4718 trickled with the new input queue (happened on some backends only). (#2467, #1336)
4719- InputText: Fixed a one-frame display glitch where pressing Escape to revert after a deletion
4720 would lead to small garbage being displayed for one frame. Curiously a rather old bug! (#3008)
4721- InputText: Fixed an undo-state corruption issue when editing main buffer before reactivating item. (#4947)
4722- InputText: Fixed an undo-state corruption issue when editing in-flight buffer in user callback.
4723 (#4947, #4949] [@JoshuaWebb]
4724- Tables: Fixed incorrect border height used for logic when resizing one of several synchronized
4725 instance of a same table ID, when instances have a different height. (#3955).
4726- Tables: Fixed incorrect auto-fit of parent windows when using non-resizable weighted columns. (#5276)
4727- Tables: Fixed draw-call merging of last column. Depending on some unrelated settings (e.g. BorderH)
4728 merging draw-call of the last column didn't always work (regression since 1.87). (#4843, #4844) [@rokups]
4729- Inputs: Fixed IsMouseClicked() repeat mode rate being half of keyboard repeat rate.
4730- ColorEdit: Fixed text baseline alignment after a SameLine() after a ColorEdit() with visible label.
4731- Tabs: BeginTabItem() now reacts to SetNextItemWidth(). (#5262)
4732- Tabs: Tweak shrinking policy so that while resizing tabs that don't need shrinking keep their
4733 initial width more precisely (without the occasional +1 worth of width).
4734- Menus: Adjusted BeginMenu() closing logic so hovering void or non-MenuItem() in parent window
4735 always lead to menu closure. Fixes using items that are not MenuItem() or BeginItem() at the root
4736 level of a popup with a child menu opened.
4737- Menus: Menus emitted from the main/scrolling layer are not part of the same menu-set as menus emitted
4738 from the menu-bar, avoiding accidental hovering from one to the other. (#3496, #4797) [@rokups]
4739- Style: Adjust default value of GrabMinSize from 10.0f to 12.0f.
4740- Stack Tool: Added option to copy item path to clipboard. (#4631)
4741- Settings: Fixed out-of-bounds read when .ini file on disk is empty. (#5351) [@quantum5]
4742- Settings: Fixed some SetNextWindowPos/SetNextWindowSize API calls not marking settings as dirty.
4743- DrawList: Fixed PathArcTo() emitting terminating vertices too close to arc vertices. (#4993) [@thedmd]
4744- DrawList: Fixed texture-based anti-aliasing path with RGBA textures (#5132, #3245) [@cfillion]
4745- DrawList: Fixed divide-by-zero or glitches with Radius/Rounding values close to zero. (#5249, #5293, #3491)
4746- DrawList: Circle with a radius smaller than 0.5f won't appear, to be consistent with other primitives. [@thedmd]
4747- Debug Tools: Debug Log: Added ShowDebugLogWindow() showing an opt-in synthetic log of principal events
4748 (focus, popup, active id changes) helping to diagnose issues.
4749- Debug Tools: Added DebugTextEncoding() function to facilitate diagnosing issues when not sure about
4750 whether you have a UTF-8 text encoding issue or a font loading issue. [@LaMarche05, @ocornut]
4751- Demo: Add better demo of how to use SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard().
4752- Metrics: Added a "UTF-8 Encoding Viewer" section using the aforementioned DebugTextEncoding() function.
4753- Metrics: Added "InputText" section to visualize internal state (#4947, #4949).
4754- Misc: Fixed calling GetID("label") _before_ a widget emitting this item inside a group (such as InputInt())
4755 from causing an assertion when closing the group. (#5181).
4756- Misc: Fixed IsAnyItemHovered() returning false when using navigation.
4757- Misc: Allow redefining IM_COL32_XXX layout macros to facilitate use on big-endian systems. (#5190, #767, #844)
4758- Misc: Added IMGUI_STB_SPRINTF_FILENAME to support custom path to stb_sprintf. (#5068, #2954) [@jakubtomsu]
4759- Misc: Added constexpr to ImVec2/ImVec4 inline constructors. (#4995) [@Myriachan]
4760- Misc: Updated stb_truetype.h from 1.20 to 1.26 (many fixes). (#5075)
4761- Misc: Updated stb_textedit.h from 1.13 to 1.14 (our changes so this effectively is a no-op). (#5075)
4762- Misc: Updated stb_rect_pack.h from 1.00 to 1.01 (minor). (#5075)
4763- Misc: binary_to_compressed_c tool: Added -nostatic option. (#5021) [@podsvirov]
4764- ImVector: Fixed erase() with empty range. (#5009) [@thedmd]
4765- Backends: Vulkan: Don't use VK_PRESENT_MODE_MAX_ENUM_KHR as specs state it isn't part of the API. (#5254)
4766- Backends: GLFW: Fixed a regression in 1.87 which resulted in keyboard modifiers events being
4767 reported incorrectly on Linux/X11, due to a bug in GLFW. [@rokups]
4768- Backends: GLFW: Fixed untranslated keys when pressing lower case letters on OSX (#5260, #5261) [@cpichard]
4769- Backends: SDL: Fixed dragging out viewport broken on some SDL setups. (#5012) [@rokups]
4770- Backends: SDL: Added support for extra mouse buttons (SDL_BUTTON_X1/SDL_BUTTON_X2). (#5125) [@sgiurgiu]
4771- Backends: SDL, OpenGL3: Fixes to facilitate building on AmigaOS4. (#5190) [@afxgroup]
4772- Backends: OSX: Monitor NSKeyUp events to catch missing keyUp for key when user press Cmd + key (#5128) [@thedmd]
4773- Backends: OSX, Metal: Store backend data in a per-context struct, allowing to use these backends with
4774 multiple contexts. (#5203, #5221, #4141) [@noisewuwei]
4775- Backends: Metal: Fixed null dereference on exit inside command buffer completion handler. (#5363, #5365) [@warrenm]
4776- Backends: OpenGL3: Partially revert 1.86 change of using glBufferSubData(): now only done on Windows and
4777 Intel GPU, based on querying glGetString(GL_VENDOR). Essentially we got report of accumulating leaks on Intel
4778 with multi-viewports when using simple glBufferData() without orphaning, and report of corruptions on other
4779 GPUs with multi-viewports when using orphaning and glBufferSubData(), so currently switching technique based
4780 on GPU vendor, which unfortunately reinforce the cargo-cult nature of dealing with OpenGL drivers.
4781 Navigating the space of mysterious OpenGL drivers is particularly difficult as they are known to rely on
4782 application specific whitelisting. (#4468, #3381, #2981, #4825, #4832, #5127).
4783- Backends: OpenGL3: Fix state corruption on OpenGL ES 2.0 due to not preserving GL_ELEMENT_ARRAY_BUFFER_BINDING
4784 and vertex attribute states. [@rokups]
4785- Examples: Emscripten+WebGPU: Fix building for latest WebGPU specs. (#3632)
4786- Examples: OSX+Metal, OSX+OpenGL: Removed now-unnecessary calls to ImGui_ImplOSX_HandleEvent(). (#4821)
4787
4788Docking+Viewports Branch:
4789
4790- Docking: Fixed floating docked nodes not being clamped into viewport workrect to stay reachable
4791 when io.ConfigWindowsMoveFromTitleBarOnly is true and multi-viewports are disabled. (#5044)
4792- Docking: Fixed a regression where moving window would be interrupted after undocking a tab
4793 when io.ConfigDockingAlwaysTabBar is true. (#5324) [@rokups]
4794- Docking: Fixed incorrect focus highlight on docking node when focusing empty central node
4795 or a child window which was manually injected into a dockspace window.
4796- Docking, Modal: Fixed a crash when opening popup from a parent which is being docked on the same frame. (#5401)
4797- Viewports: Fixed an issue where MouseViewport was lagging by a frame when using 1.87 Input Queue.
4798 A common side-effect would be that when releasing a window drag the underlying window would highlight
4799 for a frame. (#5837, #4921) [@cfillion]
4800- Viewports: Fixed translating a host viewport from briefly altering the size of AlwaysAutoResize windows. (#5057)
4801- Viewports: Fixed main viewport size not matching ImDrawData::DisplaySize for one frame during resize
4802 when multi-viewports are disabled. (#4900)
4803- Backends: SDL: Fixed dragging out main viewport broken on some SDL setups. (#5012) [@rokups]
4804- Backends: OSX: Added support for multi-viewports. [@stuartcarnie, @metarutaiga] (#4821, #2778)
4805- Backends: Metal: Added support for multi-viewports. [@stuartcarnie, @metarutaiga] (#4821, #2778)
4806- Examples: OSX+Metal, SDL+Metal, GLFW+Metal: Added support for multi-viewports. [@rokups]
4807
4808
4809-----------------------------------------------------------------------
4810 VERSION 1.87 (Released 2022-02-07)
4811-----------------------------------------------------------------------
4812
4813Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.87
4814
4815Breaking Changes:
4816
4817- Removed support for pre-C++11 compilers. We'll stop supporting VS2010. (#4537)
4818- Reworked IO mouse input API: (#4921, #4858) [@thedmd, @ocornut]
4819 - Added io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() functions,
4820 obsoleting writing directly to io.MousePos, io.MouseDown[], io.MouseWheel, etc.
4821 - This enable input queue trickling to support low framerates. (#2787, #1992, #3383, #2525, #1320)
4822 - For all calls to IO new functions, the Dear ImGui context should be bound/current.
4823- Reworked IO keyboard input API: (#4921, #2625, #3724) [@thedmd, @ocornut]
4824 - Added io.AddKeyEvent() function, obsoleting writing directly to io.KeyMap[], io.KeysDown[] arrays.
4825 - You can use IsKeyDown() instead of reading from io.KeysDown[].
4826 - For keyboard modifiers, you can call io.AddKeyEvent() with ImGuiKey_ModXXX values,
4827 obsoleting writing directly to io.KeyCtrl, io.KeyShift etc.
4828 - Added io.SetKeyEventNativeData() function (optional) to pass native and old legacy indices.
4829 - Added full range of key enums in ImGuiKey (e.g. ImGuiKey_F1).
4830 - Added GetKeyName() helper function.
4831 - Obsoleted GetKeyIndex(): it is now unnecessary and will now return the same value.
4832 - All keyboard related functions taking 'int user_key_index' now take 'ImGuiKey key':
4833 - IsKeyDown(), IsKeyPressed(), IsKeyReleased(), GetKeyPressedAmount().
4834 - Added io.ConfigInputTrickleEventQueue (defaulting to true) to disable input queue trickling.
4835 - Backward compatibility:
4836 - All backends updated to use new functions.
4837 - Old backends populating those arrays should still work!
4838 - Calling e.g. IsKeyPressed(MY_NATIVE_KEY_XXX) will still work! (for a while)
4839 - Those legacy arrays will only be disabled if '#define IMGUI_DISABLE_OBSOLETE_KEYIO' is set in your imconfig.
4840 In a few versions, IMGUI_DISABLE_OBSOLETE_FUNCTIONS will automatically enable IMGUI_DISABLE_OBSOLETE_KEYIO,
4841 so this will be moved into the regular obsolescence path.
4842 - BREAKING: If your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A")
4843 this is a use case that will now assert and be breaking for your old backend.
4844 - Transition guide:
4845 - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX)
4846 - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX)
4847 - Backend writing to io.KeyMap[],KeysDown[] -> backend should call io.AddKeyEvent(), if legacy indexing is desired, call io.SetKeyEventNativeData()
4848 - Basically the trick we took advantage of is that we previously only supported native keycode from 0 to 511,
4849 so ImGuiKey values can still express a legacy native keycode, and new named keys are all >= 512.
4850 - This will enable a few things in the future:
4851 - Access to portable keys allows for backend-agnostic keyboard input code. Until now it was difficult
4852 to share code using keyboard across project because of this gap. (#2625, #3724)
4853 - Access to full key ranges will allow us to develop a proper keyboard shortcut system. (#456)
4854 - io.SetKeyEventNativeData() include native keycode/scancode which may later be exposed. (#3141, #2959)
4855- Reworked IO nav/gamepad input API and unifying inputs sources: (#4921, #4858, #787)
4856 - Added full range of ImGuiKey_GamepadXXXX enums (e.g. ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadR2) to use with
4857 io.AddKeyEvent(), io.AddKeyAnalogEvent().
4858 - Added io.AddKeyAnalogEvent() function, obsoleting writing directly to io.NavInputs[] arrays.
4859- Renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. (#2625)
4860- Removed support for legacy arithmetic operators (+,+-,*,/) when inputting text into a slider/drag. (#4917, #3184)
4861 This doesn't break any api/code but a feature that was accessible by end-users (which seemingly no one used).
4862 (Instead you may implement custom expression evaluators to provide a better version of this).
4863- Backends: GLFW: backend now uses glfwSetCursorPosCallback().
4864 - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=true: nothing to do. is already done for you.
4865 - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=false: you WILL NEED to register the GLFW callback
4866 using glfwSetCursorPosCallback() and forward it to the backend function ImGui_ImplGlfw_CursorPosCallback().
4867- Backends: SDL: Added SDL_Renderer* parameter to ImGui_ImplSDL2_InitForSDLRenderer(), so backend can call
4868 SDL_GetRendererOutputSize() to obtain framebuffer size valid for hi-dpi. (#4927) [@Clownacy]
4869- Commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019)
4870 - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen()
4871 - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x
4872 - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing());
4873 - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect
4874 - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex
4875- Removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn() for IME support.
4876 Because this field was mostly only ever used by Dear ImGui internally, not by backends nor the vast majority
4877 of user code, this should only affect a very small fraction for users who are already very IME-aware.
4878- Obsoleted 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'.
4879 This removes an incompatibility between 'master' and 'multi-viewports' backends and toward enabling
4880 better support for IME. Updated backends accordingly. Because the old field is set by existing backends,
4881 we are keeping it (marked as obsolete).
4882
4883Other Changes:
4884
4885- IO: Added event based input queue API, which now trickles events to support low framerates. [@thedmd, @ocornut]
4886 Previously the most common issue case (button presses in low framerates) was handled by backend. This is now
4887 handled by core automatically for all kind of inputs. (#4858, #2787, #1992, #3383, #2525, #1320)
4888 - New IO functions for keyboard/gamepad: AddKeyEvent(), AddKeyAnalogEvent().
4889 - New IO functions for mouse: AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent().
4890- IO: Unified key enums allow using key functions on key mods and gamepad values.
4891- Fixed CTRL+Tab into an empty window causing artifacts on the highlight rectangle due to bad reordering on ImDrawCmd.
4892- Fixed a situation where CTRL+Tab or Modal can occasionally lead to the creation of ImDrawCmd with zero triangles,
4893 which would makes the draw operation of some backends assert (e.g. Metal with debugging). (#4857)
4894- Popups: Fixed a regression crash when a new window is created after a modal on the same frame. (#4920) [@rokups]
4895- Popups: Fixed an issue when reopening a same popup multiple times would offset them by 1 pixel on the right. (#4936)
4896- Tables, ImDrawListSplitter: Fixed erroneously stripping trailing ImDrawList::AddCallback() when submitted in
4897 last column or last channel and when there are no other drawing operation. (#4843, #4844) [@hoffstadt]
4898- Tables: Fixed positioning of Sort icon on right-most column with some settings (not resizable + no borders). (#4918).
4899- Nav: Fixed gamepad navigation in wrapping popups not wrapping all the way. (#4365)
4900- Sliders, Drags: Fixed text input of values with a leading sign, common when using a format enforcing sign. (#4917)
4901- Demo: draw a section of keyboard in "Inputs > Keyboard, Gamepad & Navigation state" to visualize keys. [@thedmd]
4902- Platform IME: changed io.ImeSetInputScreenPosFn() to io.SetPlatformImeDataFn() API,
4903 now taking a ImGuiPlatformImeData structure which we can more easily extend in the future.
4904- Platform IME: moved io.ImeWindowHandle to GetMainViewport()->PlatformHandleRaw.
4905- Platform IME: add ImGuiPlatformImeData::WantVisible, hide IME composition window when not used. (#2589) [@actboy168]
4906- Platform IME: add ImGuiPlatformImeData::InputLineHeight. (#3113) [@liuliu]
4907- Platform IME: [windows] call ImmSetCandidateWindow() to position candidate window.
4908- Backends: GLFW: Pass localized keys (matching keyboard layout). Fix e.g. CTRL+A, CTRL+Z, CTRL+Y shortcuts.
4909 We are now converting GLFW untranslated keycodes back to translated keycodes in order to match the behavior of
4910 other backend, and facilitate the use of GLFW with lettered-shortcuts API. (#456, #2625)
4911- Backends: GLFW: Submit keys and key mods using io.AddKeyEvent(). (#2625, #4921)
4912- Backends: GLFW: Submit mouse data using io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() functions. (#4921)
4913- Backends: GLFW: Retrieve mouse position using glfwSetCursorPosCallback() + fallback when focused but not hovered/captured.
4914- Backends: GLFW: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921)
4915- Backends: GLFW: Added ImGui_ImplGlfw_InstallCallbacks()/ImGui_ImplGlfw_RestoreCallbacks() helpers to facilitate user installing
4916 callbacks after initializing backend. (#4981)
4917- Backends: Win32: Submit keys and key mods using io.AddKeyEvent(). (#2625, #4921)
4918- Backends: Win32: Retrieve mouse position using WM_MOUSEMOVE/WM_MOUSELEAVE + fallback when focused but not hovered/captured.
4919- Backends: Win32: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
4920- Backends: Win32: Maintain a MouseButtonsDown mask instead of using ImGui::IsAnyMouseDown() which will be obsoleted.
4921- Backends: Win32: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921)
4922- Backends: SDL: Pass localized keys (matching keyboard layout). Fix e.g. CTRL+A, CTRL+Z, CTRL+Y shortcuts. (#456, #2625)
4923- Backends: SDL: Submit key data using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625)
4924- Backends: SDL: Retrieve mouse position using SDL_MOUSEMOTION/SDL_WINDOWEVENT_LEAVE + fallback when focused but not hovered/captured.
4925- Backends: SDL: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
4926- Backends: SDL: Maintain a MouseButtonsDown mask instead of using ImGui::IsAnyMouseDown() which will be obsoleted.
4927- Backends: SDL: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921)
4928- Backends: Allegro5: Submit keys using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625)
4929- Backends: Allegro5: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
4930- Backends: OSX: Submit keys using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625)
4931- Backends: OSX: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
4932- Backends: OSX: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921)
4933- Backends: OSX: Added basic Platform IME support. (#3108, #2598) [@liuliu]
4934- Backends: OSX: Fix Game Controller nav mapping to use shoulder for both focusing and tweak speed. (#4759)
4935- Backends: OSX: Fix building with old Xcode versions that are missing gamepad features. [@rokups]
4936- Backends: OSX: Forward keyDown/keyUp events to OS when unused by Dear ImGui.
4937- Backends: Android, GLUT: Submit keys using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625)
4938- Backends: Android, GLUT: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4858)
4939- Backends: OpenGL3: Fixed a buffer overflow in imgui_impl_opengl3_loader.h init (added in 1.86). (#4468, #4830) [@dymk]
4940 It would generally not have noticeable side-effect at runtime but would be detected by runtime checkers.
4941- Backends: OpenGL3: Fix OpenGL ES2 includes on Apple systems. [@rokups]
4942- Backends: Metal: Added Apple Metal C++ API support. (#4824, #4746) [@luigifcruz]
4943 Enable with '#define IMGUI_IMPL_METAL_CPP' in your imconfig.h file.
4944- Backends: Metal: Ignore ImDrawCmd where ElemCount == 0, which are normally not emitted by the library but
4945 can theoretically be created by user code manipulating a ImDrawList. (#4857)
4946- Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, add ImGui_ImplVulkan_AddTexture(). (#914) [@martty]
4947- Backends: SDL_Renderer: Fix texture atlas format on big-endian hardware (#4927) [@Clownacy]
4948- Backends: WebGPU: Fixed incorrect size parameters in wgpuRenderPassEncoderSetIndexBuffer() and
4949 wgpuRenderPassEncoderSetVertexBuffer() calls. (#4891) [@FeepsDev]
4950
4951Docking+Viewports Branch:
4952
4953- Docking: Fixed a CTRL+TAB crash when aiming at an empty docked window. (#4792)
4954- Docking: Tabs use their own identifier instead of the Window identifier.
4955 (This will invalidate some stored .ini data such as last selected tab, sorry!)
4956- Docking: Fixed size constraints not working on single window holding on a dock id (still doesn't work on docked windows).
4957- Docking: Fixed CTRL+TAB back into a docked window not selecting menu layer when no item are on main layer.
4958- Viewports, IO: Added io.AddMouseViewportEvent() function to queue hovered viewport change (when known by backend).
4959- Viewports: Relaxed specs for backend supporting ImGuiBackendFlags_HasMouseHoveredViewport: it is now _optional_
4960 for the backend to have to ignore viewports with the _NoInputs flag when call io.AddMouseViewportEvent(). It is
4961 much better if they can (Win32 and GLFW 3.3+ backends can, SDL and GLFW 3.2 backends cannot, they are lacking data).
4962 A concrete example is: when dragging a viewport for docking, the viewport is marked with _NoInputs to allow us
4963 to pick the target viewports for docking. If the backend reports a viewport with _NoInputs when calling the
4964 io.AddMouseViewportEvent() function, then Dear ImGui will revert to its flawed heuristic to find the viewport under.
4965 By lowering those specs, we allow the SDL and more backend to support this, only relying on the heuristic in a few
4966 drag and drop situations rather that relying on it everywhere.
4967- Viewports: Fixed a CTRL+TAB crash with viewports enabled when the window list needs to appears in
4968 its own viewport (regression from 1.86). (#4023, #787)
4969- Viewports: Fixed active InputText() from preventing viewports to merge. (#4212)
4970- Backends: SDL: Added support for ImGuiBackendFlags_HasMouseHoveredViewport now that its specs have been lowered.
4971- (Breaking) Removed ImGuiPlatformIO::Platform_SetImeInputPos() in favor of newly standardized
4972 io.SetPlatformImeDataFn() function. Should not affect more than default backends.
4973
4974
4975-----------------------------------------------------------------------
4976 VERSION 1.86 (Released 2021-12-22)
4977-----------------------------------------------------------------------
4978
4979Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.86
4980
4981Breaking Changes:
4982
4983- Removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges.
4984 Please open an issue if you think you really need this function. (#3841)
4985- Backends: OSX: Added NSView* parameter to ImGui_ImplOSX_Init(). (#4759) [@stuartcarnie]
4986- Backends: Marmalade: Removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example app. (#368, #375)
4987 Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings
4988
4989Other Changes:
4990
4991- Added an assertion for the common user mistake of using "" as an identifier at the root level of a window
4992 instead of using "##something". Empty identifiers are valid and useful in a very small amount of cases,
4993 but 99.9% of the time if you need an empty label you should use "##something". (#1414, #2562, #2807, #4008,
4994 #4158, #4375, #4548, #4657, #4796). READ THE FAQ ABOUT HOW THE ID STACK WORKS -> https://dearimgui.com/faq
4995- Added GetMouseClickedCount() function, returning the number of successive clicks. (#3229) [@kudaba]
4996 (so IsMouseDoubleClicked(ImGuiMouseButton_Left) is same as GetMouseClickedCount(ImGuiMouseButton_Left) == 2,
4997 but it allows testing for triple clicks and more).
4998- Modals: fixed issue hovering popups inside a child windows inside a modal. (#4676, #4527)
4999- Modals, Popups, Windows: changes how appearing windows are interrupting popups and modals. (#4317) [@rokups]
5000 - appearing windows created from within the begin stack of a popup/modal will no longer close it.
5001 - appearing windows created not within the begin stack of a modal will no longer close the modal,
5002 and automatically appear behind it.
5003- Fixed IsWindowFocused()/IsWindowHovered() issues with child windows inside popups. (#4676)
5004- Nav: Ctrl+tabbing to cycle through windows is now enabled regardless of using the _NavEnableKeyboard
5005 configuration flag. This is part of an effort to generalize the use of keyboard inputs. (#4023, #787).
5006 Note that while this is active you can also moving windows (with arrow) and resize (shift+arrows).
5007- Nav: tabbing now cycles through clipped items and scroll accordingly. (#4449)
5008- Nav: pressing PageUp/PageDown/Home/End when in Menu layer automatically moves back to Main layer.
5009- Nav: fixed resizing window from borders setting navigation to Menu layer.
5010- Nav: prevent child from clipping items when using _NavFlattened and parent has a pending request.
5011- Nav: pressing Esc to exit a child window reactivates the Nav highlight if it was disabled by mouse.
5012- Nav: with ImGuiConfigFlags_NavEnableSetMousePos enabled: Fixed absolute mouse position when using
5013 Home/End leads to scrolling. Fixed not setting mouse position when a failed move request (e.g. when
5014 already at edge) reactivates the navigation highlight.
5015- Menus: fixed closing a menu inside a popup/modal by clicking on the popup/modal. (#3496, #4797)
5016- Menus: fixed closing a menu by clicking on its menu-bar item when inside a popup. (#3496, #4797) [@xndcn]
5017- Menus: fixed menu inside a popup/modal not inhibiting hovering of items in the popup/modal. (#3496, #4797)
5018- Menus: fixed sub-menu items inside a popups from closing the popup.
5019- Menus: fixed top-level menu from not consistently using style.PopupRounding. (#4788)
5020- InputText, Nav: fixed repeated calls to SetKeyboardFocusHere() preventing to use InputText(). (#4682)
5021- InputText, Nav: fixed using SetKeyboardFocusHere() on InputTextMultiline(). (#4761)
5022- InputText: made double-click select word, triple-line select line. Word delimitation logic differs
5023 slightly from the one used by CTRL+arrows. (#2244)
5024- InputText: fixed ReadOnly flag preventing callbacks from receiving the text buffer. (#4762) [@actondev]
5025- InputText: fixed Shift+Delete from not cutting into clipboard. (#4818, #1541) [@corporateshark]
5026- InputTextMultiline: fixed incorrect padding when FrameBorder > 0. (#3781, #4794)
5027- InputTextMultiline: fixed vertical tracking with large values of FramePadding.y. (#3781, #4794)
5028- Separator: fixed cover all columns while called inside a table. (#4787)
5029- Clipper: currently focused item is automatically included in clipper range.
5030 Fixes issue where e.g. drag and dropping an item and scrolling ensure the item source location is
5031 still submitted. (#3841, #1725) [@GamingMinds-DanielC, @ocornut]
5032- Clipper: added ForceDisplayRangeByIndices() to force a given item (or several) to be stepped out
5033 during a clipping operation. (#3841) [@GamingMinds-DanielC]
5034- Clipper: rework so gamepad/keyboard navigation doesn't create spikes in number of items requested
5035 by the clipper to display. (#3841)
5036- Clipper: fixed content height declaration slightly mismatching the value of when not using a clipper.
5037 (an additional ItemSpacing.y was declared, affecting scrollbar range).
5038- Clipper: various and incomplete changes to tame down scrolling and precision issues on very large ranges.
5039 Passing an explicit height to the clipper now allows larger ranges. (#3609, #3962).
5040- Clipper: fixed invalid state when number of frozen table row is smaller than ItemCount.
5041- Drag and Drop: BeginDragDropSource() with ImGuiDragDropFlags_SourceAllowNullID doesn't lose
5042 tooltip when scrolling. (#143)
5043- Fonts: fixed infinite loop in ImFontGlyphRangesBuilder::AddRanges() when passing UINT16_MAX or UINT32_MAX
5044 without the IMGUI_USE_WCHAR32 compile-time option. (#4802) [@SlavicPotato]
5045- Metrics: Added a node showing windows in submission order and showing the Begin() stack.
5046- Misc: Added missing ImGuiMouseCursor_NotAllowed cursor for software rendering (when the
5047 io.MouseDrawCursor flag is enabled). (#4713) [@nobody-special666]
5048- Misc: Fixed software mouse cursor being rendered multiple times if Render() is called more than once.
5049- Misc: Fix MinGW DLL build issue (when IMGUI_API is defined). [@rokups]
5050- CI: Add MinGW DLL build to test suite. [@rokups]
5051- Backends: Vulkan: Call vkCmdSetScissor() at the end of render with a full-viewport to reduce
5052 likelihood of issues with people using VK_DYNAMIC_STATE_SCISSOR in their app without calling
5053 vkCmdSetScissor() explicitly every frame. (#4644)
5054- Backends: OpenGL3: Using buffer orphaning + glBufferSubData(), seems to fix leaks with multi-viewports
5055 with some Intel HD drivers, and perhaps improve performances. (#4468, #4504, #2981, #3381) [@parbo]
5056- Backends: OpenGL2, Allegro5, Marmalade: Fixed mishandling of the ImDrawCmd::IdxOffset field.
5057 This is an old bug, but due to the way we created drawlists, it never had any visible side-effect before.
5058 The new code for handling Modal and CTRL+Tab dimming/whitening recently made the bug surface. (#4790)
5059- Backends: Win32: Store left/right variants of Ctrl/Shift/Alt mods in KeysDown[] array. (#2625) [@thedmd]
5060- Backends: DX12: Fixed DRAW_EMPTY_SCISSOR_RECTANGLE warnings. (#4775)
5061- Backends: SDL_Renderer: Added support for large meshes (64k+ vertices) with 16-bit indices,
5062 enabling 'ImGuiBackendFlags_RendererHasVtxOffset' in the backend. (#3926) [@rokups]
5063- Backends: SDL_Renderer: Fix for SDL 2.0.19+ RenderGeometryRaw() API signature change. (#4819) [@sridenour]
5064- Backends: OSX: Generally fix keyboard support. Keyboard arrays indexed using kVK_* codes, e.g.
5065 ImGui::IsKeyPressed(kVK_Space). Don't set mouse cursor shape unconditionally. Handle two fingers scroll
5066 cancel event. (#4759, #4253, #1873) [@stuartcarnie]
5067- Backends: OSX: Add Game Controller support (need linking GameController framework) (#4759) [@stuartcarnie]
5068- Backends: WebGPU: Passing explicit buffer sizes to wgpuRenderPassEncoderSetVertexBuffer() and
5069 wgpuRenderPassEncoderSetIndexBuffer() functions as validation layers appears to not do what the
5070 in-flux specs says. (#4766) [@meshula]
5071
5072Docking+Viewports Branch:
5073
5074- Docking: Revert removal of io.ConfigDockingWithShift config option (removed in 1.83). (#4643)
5075- Docking: Fixed a bug undocking windows docked into a non-visible or _KeepAliveOnly dockspace
5076 when unrelated windows submitted before the dockspace have dynamic visibility. (#4757)
5077- Docking, Style: Docked windows honor ImGuiCol_WindowBg. (#2700, #2539)
5078- Docking, Style: Docked windows honor display their border properly. (#2522)
5079- Docking: Fixed incorrectly rounded tab bars for dock node that are not at the top of their dock tree.
5080- Docking: Fixed single-frame node pos/size inconsistencies when window stop or start being submitted.
5081- Docking: Prevent docking any window created above a popup/modal. (#4317)
5082- Viewports: Made it possible to explicitly assign ImGuiWindowClass::ParentViewportId to 0 in order
5083 to ensure a window is not parented. Previously this would use the global default (which might be 0,
5084 but not always as it would depend on io.ConfigViewportsNoDefaultParent). (#3152, #2871)
5085- Viewports: Fixed tooltip in own viewport over modal from being incorrectly dimmed. (#4729)
5086- Viewports: Fixed CTRL+TAB highlight outline on docked windows not always fitting in host viewport.
5087- Backends: Made it possible to shutdown default Platform Backends before the Renderer backends. (#4656)
5088- Disabled: Fixed nested BeginDisabled()/EndDisabled() bug in Docking branch due to bad merge. (#4655, #4452, #4453, #4462)
5089
5090
5091-----------------------------------------------------------------------
5092 VERSION 1.85 (Released 2021-10-12)
5093-----------------------------------------------------------------------
5094
5095Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.85
5096
5097This is the last release officially supporting C++03 and Visual Studio 2008/2010. (#4537)
5098We expect that the next release will require a subset of the C++11 language (VS 2012~, GCC 4.8.1, Clang 3.3).
5099We may use some C++11 language features but we will not use any C++ library headers.
5100If you are stuck on ancient compiler you may need to stay at this version onward.
5101
5102Breaking Changes:
5103
5104- Removed GetWindowContentRegionWidth() function. Kept inline redirection helper.
5105 Can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead but it's not
5106 very useful in practice, and the only use of it in the demo was illfit.
5107 Using 'GetContentRegionAvail().x' is generally a better choice.
5108- (Docking branch) IsWindowFocused() and IsWindowHovered() with only the _ChildWindows flag
5109 and without the _RootWindow flag used to leak docking hierarchy, so a docked window would
5110 return as the child of the window hosting the dockspace. This was inconsistent and incorrect
5111 with other behaviors so we fixed it. Added a new _DockHierarchy flag to opt-in this behavior.
5112
5113Other Changes:
5114
5115- Debug: Stack Tool: Added "Stack Tool" available in "Demo->Tools->Stack Tool", "Metrics->Tools",
5116 or by calling the ShowStackToolWindow() function. The tool run queries on hovered id to display
5117 details about individual components that were hashed to create an ID. It helps understanding
5118 the ID stack system and debugging potential ID collisions. (#4631) [@ocornut, @rokups]
5119- Windows: Fixed background order of overlapping childs submitted sequentially. (#4493)
5120- IsWindowFocused: Added ImGuiFocusedFlags_NoPopupHierarchy flag allowing to exclude child popups
5121 from the tested windows when combined with _ChildWindows.
5122- IsWindowHovered: Added ImGuiHoveredFlags_NoPopupHierarchy flag allowing to exclude child popups
5123 from the tested windows when combined with _ChildWindows.
5124- InputTextMultiline: Fixed label size not being included into window contents rect unless
5125 the whole widget is clipped.
5126- InputText: Allow activating/cancelling/validating input with gamepad nav events. (#2321, #4552)
5127- InputText: Fixed selection rectangle appearing one frame late when selecting all.
5128- TextUnformatted: Accept null ranges including (NULL,NULL) without asserting, in order to conform
5129 to common idioms (e.g. passing .data(), .data() + .size() from a null string). (#3615)
5130- Disabled: Added assert guard for mismatching BeginDisabled()/EndDisabled() blocks. (#211)
5131- Nav: Fixed using SetKeyboardFocusHere() on non-visible/clipped items. It now works and will scroll
5132 toward the item. When called during a frame where the parent window is appearing, scrolling will
5133 aim to center the item in the window. When calling during a frame where the parent window is already
5134 visible, scrolling will aim to scroll as little as possible to make the item visible. We will later
5135 expose scroll functions and flags in public API to select those behaviors. (#343, #4079, #2352)
5136- Nav: Fixed using SetKeyboardFocusHere() from activating a different item on the next frame if
5137 submitted items have changed during that frame. (#432)
5138- Nav: Fixed toggling menu layer with Alt or exiting menu layer with Esc not moving mouse when
5139 the ImGuiConfigFlags_NavEnableSetMousePos config flag is set.
5140- Nav: Fixed a few widgets from not setting reference keyboard/gamepad navigation ID when
5141 activated with mouse. More specifically: BeginTabItem(), the scrolling arrows of BeginTabBar(),
5142 the arrow section of TreeNode(), the +/- buttons of InputInt()/InputFloat(), Selectable() with
5143 ImGuiSelectableFlags_SelectOnRelease. More generally: any direct use of ButtonBehavior() with
5144 the PressedOnClick/PressedOnDoubleClick/PressedOnRelease button policy.
5145- Nav: Fixed an issue with losing focus on docked windows when pressing Alt while keyboard navigation
5146 is disabled. (#4547, #4439) [@PathogenDavid]
5147- Nav: Fixed vertical scoring offset when wrapping on Y in a decorated window.
5148- Nav: Improve scrolling behavior when navigating to an item larger than view.
5149- TreePush(): removed unnecessary/inconsistent legacy behavior where passing a NULL value to
5150 the TreePush(const char*) and TreePush(const void*) functions would use a hard-coded replacement.
5151 The only situation where that change would make a meaningful difference is TreePush((const char*)NULL)
5152 (_explicitly_ casting a null pointer to const char*), which is unlikely and will now crash.
5153 You may replace it with anything else.
5154- ColorEdit4: Fixed not being able to change hue when saturation is 0. (#4014) [@rokups]
5155- ColorEdit4: Fixed hue resetting to 0 when it is set to 255. [@rokups]
5156- ColorEdit4: Fixed hue value jitter when source color is stored as RGB in 32-bit integer and perform
5157 RGB<>HSV round trips every frames. [@rokups]
5158- ColorPicker4: Fixed picker being unable to select exact 1.0f color when dragging toward the edges
5159 of the SV square (previously picked 0.999989986f). (#3517) [@rokups]
5160- Menus: Fixed vertical alignments of MenuItem() calls within a menu bar (broken in 1.84). (#4538)
5161- Menus: Improve closing logic when moving diagonally in empty between between parent and child menus to
5162 accommodate for varying font size and dpi.
5163- Menus: Fixed crash when navigating left inside a child window inside a sub-menu. (#4510).
5164- Menus: Fixed an assertion happening in some situations when closing nested menus (broken in 1.83). (#4640)
5165- Drag and Drop: Fixed using BeginDragDropSource() inside a BeginChild() that returned false. (#4515)
5166- PlotHistogram: Fixed zero-line position when manually specifying min<0 and max>0. (#4349) [@filippocrocchini]
5167- Misc: Added asserts for missing PopItemFlag() calls.
5168- Misc: Fixed printf-style format checks on Clang+MinGW. (#4626, #4183, #3592) [@guusw]
5169- IO: Added 'io.WantCaptureMouseUnlessPopupClose' alternative to `io.WantCaptureMouse'. (#4480)
5170 This allows apps to receive the click on void when that click is used to close popup (by default,
5171 clicking on a void when a popup is open will close the popup but not release io.WantCaptureMouse).
5172- Fonts: imgui_freetype: Fixed crash when FT_Render_Glyph() fails to render a glyph and returns NULL
5173 (which apparently happens with Freetype 2.11). (#4394, #4145?).
5174- Fonts: Fixed ImFontAtlas::ClearInputData() marking atlas as not built. (#4455, #3487)
5175- Backends: Added more implicit asserts to detect invalid/redundant calls to Shutdown functions. (#4562)
5176- Backends: OpenGL3: Fixed our custom GL loader conflicting with user using GL3W. (#4445) [@rokups]
5177- Backends: WebGPU: Fixed for latest specs. (#4472, #4512) [@Kangz, @bfierz]
5178- Backends: SDL_Renderer: Added SDL_Renderer backend compatible with upcoming SDL 2.0.18. (#3926) [@1bsyl]
5179- Backends: Metal: Fixed a crash when clipping rect larger than framebuffer is submitted via
5180 a direct unclipped PushClipRect() call. (#4464)
5181- Backends: OSX: Use mach_absolute_time as CFAbsoluteTimeGetCurrent can jump backwards. (#4557, #4563) [@lfnoise]
5182- Backends: All renderers: Normalize clipping rect handling across backends. (#4464)
5183- Examples: Added SDL + SDL_Renderer example in "examples/example_sdl_sdlrenderer/" folder. (#3926) [@1bsyl]
5184
5185Docking+Viewports Branch:
5186
5187- IsWindowFocused: Fixed using ImGuiFocusedFlags_ChildWindows (without _RootWindow) from leaking the
5188 docking hierarchy. Added ImGuiFocusedFlags_DockHierarchy flag to consider docking hierarchy in the test.
5189- IsWindowHovered: Fixed using ImGuiHoveredFlags_ChildWindows (without _RootWindow) from leaking the
5190 docking hierarchy. Added ImGuiHoveredFlags_DockHierarchy flag to consider docking hierarchy in the test.
5191- Nav: Fixed an issue with losing focus on docked windows when pressing Alt while keyboard navigation
5192 is disabled. (#4547, #4439) [@PathogenDavid]
5193- Docking: Fixed IsItemHovered() and functions depending on it (e.g. BeginPopupContextItem()) when
5194 called after Begin() on a docked window (broken 2021/03/04). (#3851)
5195- Docking: Improved resizing system so that non-central zone are better at keeping their fixed size.
5196 The algorithm is still not handling the allocation of size ideally for nested sibling, but it got better.
5197- Docking: Fixed settings load issue when mouse wheeling. (#4310)
5198- Docking: Fixed manually created floating node with a central node from not hiding when windows are gone.
5199- Docking + Drag and Drop: Fixed using BeginDragDropSource() or BeginDragDropTarget() inside a Begin()
5200 that returned false because the window is docked. (#4515)
5201- Viewports: Fixed a crash while a window owning its viewport disappear while being dragged.
5202 It would manifest when e.g. reconfiguring dock nodes while dragging.
5203- Viewports: Fixed unnecessary creation of temporary viewports when multiple docked windows
5204 got reassigned to a new node (created mid-frame) which already has a HostWindow.
5205- Viewports: Fixed window with viewport ini data immediately merged into a host viewport from
5206 leaving a temporary viewport alive for a frame (would leak into backend).
5207
5208
5209-----------------------------------------------------------------------
5210 VERSION 1.84.2 (Released 2021-08-23)
5211-----------------------------------------------------------------------
5212
5213Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.84.2
5214
5215- Disabled: Fixed nested BeginDisabled()/EndDisabled() calls. (#211, #4452, #4453, #4462) [@Legulysse]
5216- Backends: OpenGL3: OpenGL: Fixed ES 3.0 shader ("#version 300 es") to use normal precision
5217 floats. Avoid wobbly rendering at HD resolutions. (#4463) [@nicolasnoble]
5218
5219
5220-----------------------------------------------------------------------
5221 VERSION 1.84.1 (Released 2021-08-20)
5222-----------------------------------------------------------------------
5223
5224Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.84.1
5225
5226- Disabled: Fixed BeginDisabled(false) - BeginDisabled(true) was working. (#211, #4452, #4453)
5227
5228
5229-----------------------------------------------------------------------
5230 VERSION 1.84 (Released 2021-08-20)
5231-----------------------------------------------------------------------
5232
5233Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.84
5234
5235Breaking Changes:
5236
5237- Commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 (March 2019):
5238 - ImGui::GetOverlayDrawList() -> use ImGui::GetForegroundDrawList()
5239 - ImFont::GlyphRangesBuilder -> use ImFontGlyphRangesBuilder
5240- Backends: OpenGL3: added a third source file "imgui_impl_opengl3_loader.h". (#4445) [@rokups]
5241- Backends: GLFW: backend now uses glfwSetCursorEnterCallback(). (#3751, #4377, #2445)
5242- Backends: GLFW: backend now uses glfwSetWindowFocusCallback(). (#4388) [@thedmd]
5243 - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=true: this is already done for you.
5244 - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=false: you WILL NEED to register the GLFW callbacks
5245 and forward them to the backend:
5246 - Register glfwSetCursorEnterCallback, forward events to ImGui_ImplGlfw_CursorEnterCallback().
5247 - Register glfwSetWindowFocusCallback, forward events to ImGui_ImplGlfw_WindowFocusCallback().
5248- Backends: SDL2: removed unnecessary SDL_Window* parameter from ImGui_ImplSDL2_NewFrame(). (#3244) [@funchal]
5249 Kept inline redirection function (will obsolete).
5250- Backends: SDL2: backend needs to set 'SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1")' in order to
5251 receive mouse clicks events on window focus, otherwise SDL doesn't emit the event. (#3751, #4377, #2445)
5252 This is unfortunately a global SDL setting, so enabling it _might_ have a side-effect on your application.
5253 It is unlikely to make a difference, but if your app absolutely needs to ignore the initial on-focus click:
5254 you can ignore SDL_MOUSEBUTTONDOWN events coming right after a SDL_WINDOWEVENT_FOCUS_GAINED event).
5255- Internals: (for custom widgets): because disabled items now sets HoveredId, if you want custom widgets to
5256 not react as hovered when disabled, in the majority of use cases it is preferable to check the "hovered"
5257 return value of ButtonBehavior() rather than (HoveredId == id).
5258
5259Other Changes:
5260
5261- IO: Added io.AddFocusEvent() api for backend to tell when host window has gained/lost focus. (#4388) [@thedmd]
5262 If you use a custom backend, consider adding support for this!
5263- Disabled: added BeginDisabled()/EndDisabled() api to create a scope where interactions are disabled. (#211)
5264 - Added style.DisabledAlpha (default to 0.60f) and ImGuiStyleVar_DisabledAlpha. (#211)
5265 - Unlike the internal-and-undocumented-but-somehow-known PushItemFlag(ImGuiItemFlags_Disabled), this also alters
5266 visuals. Currently this is done by lowering alpha of all widgets. Future styling system may do that differently.
5267 - Disabled items set HoveredId, allowing e.g. HoveredIdTimer to run. (#211, #3419) [@rokups]
5268 - Disabled items more consistently release ActiveId if the active item got disabled. (#211)
5269 - Nav: Fixed disabled items from being candidate for default focus. (#211, #787)
5270 - Fixed Selectable() selection not showing when disabled. (#211)
5271 - Fixed IsItemHovered() returning true on disabled item when navigated to. (#211)
5272 - Fixed IsItemHovered() when popping disabled state after item, or when using Selectable_Disabled. (#211)
5273- Windows: ImGuiWindowFlags_UnsavedDocument/ImGuiTabItemFlags_UnsavedDocument displays a dot instead of a '*' so it
5274 is independent from font style. When in a tab, the dot is displayed at the same position as the close button.
5275 Added extra comments to clarify the purpose of this flag in the context of docked windows.
5276- Tables: Added ImGuiTableColumnFlags_Disabled acting a master disable over (hidden from user/context menu). (#3935)
5277- Tables: Clarified that TableSetColumnEnabled() requires the table to use the ImGuiTableFlags_Hideable flag,
5278 because it manipulates the user-accessible show/hide state. (#3935)
5279- Tables: Added ImGuiTableColumnFlags_NoHeaderLabel to request TableHeadersRow() to not submit label for a column.
5280 Convenient for some small columns. Name will still appear in context menu. (#4206).
5281- Tables: Fixed columns order on TableSetupScrollFreeze() if previous data got frozen columns out of their section.
5282- Tables: Fixed invalid data in TableGetSortSpecs() when SpecsDirty flag is unset. (#4233)
5283- Tabs: Fixed using more than 32 KB-worth of tab names. (#4176)
5284- InputInt/InputFloat: When used with Steps values and _ReadOnly flag, the step button look disabled. (#211)
5285- InputText: Fixed named filtering flags disabling newline or tabs in multiline inputs (#4409, #4410) [@kfsone]
5286- Drag and Drop: drop target highlight doesn't try to bypass host clipping rectangle. (#4281, #3272)
5287- Drag and Drop: Fixed using AcceptDragDropPayload() with ImGuiDragDropFlags_AcceptNoPreviewTooltip. [@JeffM2501]
5288- Menus: MenuItem() and BeginMenu() are not affected/overlapping when style.SelectableTextAlign is altered.
5289- Menus: Fixed hovering a disabled menu or menu item not closing other menus. (#211)
5290- Popups: Fixed BeginPopup/OpenPopup sequence failing when there are no focused windows. (#4308) [@rokups]
5291- Nav: Alt doesn't toggle menu layer if other modifiers are held. (#4439)
5292- Fixed printf-style format checks on non-MinGW flavors. (#4183, #3592)
5293- Fonts: Functions with a 'float size_pixels' parameter can accept zero if it is set in ImFontSize::SizePixels.
5294- Fonts: Prefer using U+FFFD character for fallback instead of '?', if available. (#4269)
5295- Fonts: Use U+FF0E dot character to construct an ellipsis if U+002E '.' is not available. (#4269)
5296- Fonts: Added U+FFFD ("replacement character") to default Asian glyphs ranges. (#4269)
5297- Fonts: Fixed calling ClearTexData() (clearing CPU side font data) triggering an assert in NewFrame(). (#3487)
5298- DrawList: Fixed AddCircle/AddCircleFilled() with auto-tessellation not using accelerated paths for small circles.
5299 Fixed AddCircle/AddCircleFilled() with 12 segments which had a broken edge. (#4419, #4421) [@thedmd]
5300- Demo: Fixed requirement in 1.83 to link with imgui_demo.cpp if IMGUI_DISABLE_METRICS_WINDOW is not set. (#4171)
5301 Normally the right way to disable compiling the demo is to set IMGUI_DISABLE_DEMO_WINDOWS, but we want to avoid
5302 implying that the file is required.
5303- Metrics: Fixed a crash when inspecting the individual draw command of a foreground drawlist. [@rokups]
5304- Backends: Reorganized most backends (Win32, SDL, GLFW, OpenGL2/3, DX9/10/11/12, Vulkan, Allegro) to pull their
5305 data from a single structure stored inside the main Dear ImGui context. This facilitate/allow usage of standard
5306 backends with multiple-contexts BUT is only partially tested and not well supported. It is generally advised to
5307 instead use the multi-viewports feature of docking branch where a single Dear ImGui context can be used across
5308 multiple windows. (#586, #1851, #2004, #3012, #3934, #4141)
5309- Backends: Win32: Rework to handle certain Windows 8.1/10 features without a manifest. (#4200, #4191)
5310 - ImGui_ImplWin32_GetDpiScaleForMonitor() will handle per-monitor DPI on Windows 10 without a manifest.
5311 - ImGui_ImplWin32_EnableDpiAwareness() will call SetProcessDpiAwareness() fallback on Windows 8.1 without a manifest.
5312- Backends: Win32: IME functions are disabled by default for non-Visual Studio compilers (MinGW etc.). Enable with
5313 '#define IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS' for those compilers. Undo change from 1.82. (#2590, #738, #4185, #4301)
5314- Backends: Win32: Mouse position is correctly reported when the host window is hovered but not focused. (#2445, #2696, #3751, #4377)
5315- Backends: Win32, SDL2, GLFW, OSX, Allegro: now calling io.AddFocusEvent() on focus gain/loss. (#4388) [@thedmd]
5316 This allow us to ignore certain inputs on focus loss (previously relied on mouse loss but backends are now
5317 reporting mouse even when host window is unfocused, as per #2445, #2696, #3751, #4377)
5318- Backends: Fixed keyboard modifiers being reported when host window doesn't have focus. (#2622)
5319- Backends: GLFW: Mouse position is correctly reported when the host window is hovered but not focused. (#3751, #4377, #2445)
5320 (backend now uses glfwSetCursorEnterCallback(). If you called ImGui_ImplGlfw_InitXXX with install_callbacks=false, you will
5321 need to install this callback and forward the data to the backend via ImGui_ImplGlfw_CursorEnterCallback).
5322- Backends: SDL2: Mouse position is correctly reported when the host window is hovered but not focused. (#3751, #4377, #2445)
5323 (enabled with SDL 2.0.5+ as SDL_GetMouseFocus() is only usable with SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH).
5324- Backends: DX9: Explicitly disable texture state stages after >= 1. (#4268) [@NZJenkins]
5325- Backends: DX12: Fix texture casting crash on 32-bit systems (introduced on 2021/05/19 and v1.83) + added comments
5326 about building on 32-bit systems. (#4225) [@kingofthebongo2008]
5327- Backends: OpenGL3: Embed our own minimal GL headers/loader (imgui_impl_opengl3_loader.h) based on gl3w.
5328 Reduces the frequent issues and confusion coming from having to support multiple loaders and requiring users to use and
5329 initialize the same loader as the backend. (#4445) [@rokups]
5330 Removed support for gl3w, glew, glad, glad2, glbinding2, glbinding3 (all now unnecessary).
5331- Backends: OpenGL3: Handle GL_CLIP_ORIGIN on <4.5 contexts if "GL_ARB_clip_control" extension is detected. (#4170, #3998)
5332- Backends: OpenGL3: Destroy vertex/fragment shader objects right after they are linked into main shader. (#4244) [@Crowbarous]
5333- Backends: OpenGL3: Use OES_vertex_array extension on Emscripten + backup/restore current state. (#4266, #4267) [@harry75369]
5334- Backends: GLFW: Installing and exposed ImGui_ImplGlfw_MonitorCallback() for forward compatibility with docking branch.
5335- Backends: OSX: Added a fix for shortcuts using CTRL key instead of CMD key. (#4253) [@rokups]
5336- Examples: DX12: Fixed handling of Alt+Enter in example app (using swapchain's ResizeBuffers). (#4346) [@PathogenDavid]
5337- Examples: DX12: Removed unnecessary recreation of backend-owned device objects when window is resized. (#4347) [@PathogenDavid]
5338- Examples: OpenGL3+GLFW,SDL: Remove include cruft to support variety of GL loaders (no longer necessary). [@rokups]
5339- Examples: OSX+OpenGL2: Fix event forwarding (fix key remaining stuck when using shortcuts with Cmd/Super key).
5340 Other OSX examples were not affected. (#4253, #1873) [@rokups]
5341- Examples: Updated all .vcxproj to VS2015 (toolset v140) to facilitate usage with vcpkg.
5342- Examples: SDL2: Accommodate for vcpkg install having headers in SDL2/SDL.h vs SDL.h.
5343
5344Docking+Viewports Branch:
5345
5346- Docking: Clicking on the right-most close button of a docking node closes all windows. (#4186)
5347- Docking: Fix IsWindowAppearing() and ImGuiCond_Appearing on docked windows. (#4177, #3982, #1497, #1061)
5348- Docking: Fix crash using DockBuilderRemoveNode() in some situations. (#3111, #3179, #3203, #4295) [@hsimyu]
5349- Docking: Fix crash when a dock node gets re-qualified as dockspace>floating>dockspace, which tends to happen
5350 when incorrectly calling DockBuilderAddNode() without ImGuiDockNodeFlags_Dockspace and using it as a Dockspace
5351 on the next frame after the floating window hosting the node has been automatically created. (#3203, #4295)
5352- Docking: Reworked node flags saving/inheritance so that flags enforced by docked windows via the
5353 DockNodeFlagsOverrideSet mechanism are are not left in empty dockspace nodes once the windows gets undocked.
5354 (#4292, #3834, #3633, #3521, #3492, #3335, #2999, #2648)
5355- Docking: (Internal/Experimental) Removed DockNodeFlagsOverrideClear flags from ImGuiWindowClass as
5356 it is ambiguous how to apply them and we haven't got a use out of them yet.
5357- Docking: Fixed ImGuiWindowFlags_UnsavedDocument clipping label in docked windows when there are
5358 no close button. (#5745)
5359- Viewports: Fix popup/tooltip created without a parent window from being given a ParentViewportId value
5360 from the implicit/fallback window. (#4236, #2409)
5361- Backends: Vulkan: Fix the use of the incorrect fence for secondary viewports. (#4208) [@FunMiles]
5362
5363
5364-----------------------------------------------------------------------
5365 VERSION 1.83 (Released 2021-05-24)
5366-----------------------------------------------------------------------
5367
5368Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.83
5369
5370Breaking Changes:
5371
5372- Backends: Obsoleted direct access to ImDrawCmd::TextureId in favor of calling ImDrawCmd::GetTexID(). (#3761) [@thedmd]
5373 - If you are using official backends from the source tree: you have nothing to do.
5374 - If you copied old backend code or using your own: change access to draw_cmd->TextureId to draw_cmd->GetTexID().
5375 Why are we doing this?
5376 - This change will be required in the future when adding support for incremental texture atlas updates.
5377 - Please note this won't break soon, but we are making the change ahead of time.
5378
5379Other Changes:
5380
5381- Scrolling: Fix scroll tracking with e.g. SetScrollHereX/Y() when WindowPadding < ItemSpacing.
5382- Scrolling: Fix scroll snapping on edge of scroll region when both scrollbars are enabled.
5383- Scrolling: Fix mouse wheel axis swap when using SHIFT on macOS (system already does it). (#4010)
5384- Window: Fix IsWindowAppearing() from returning true twice in most cases. (#3982, #1497, #1061)
5385- Nav: Fixed toggling menu layer while an InputText() is active not stealing active id. (#787)
5386- Nav: Fixed pressing Escape to leave menu layer while in a popup or child window. (#787)
5387- Nav, InputText: Fixed accidental menu toggling while typing non-ascii characters using AltGR. [@rokups] (#370)
5388- Nav: Fixed using SetItemDefaultFocus() on windows with _NavFlattened flag. (#787)
5389- Nav: Fixed Tabbing initial activation from skipping the first item if it is tabbable through. (#787)
5390- Nav: Fixed fast CTRL+Tab (where keys are only held for one single frame) from properly enabling the
5391 menu layer of target window if it doesn't have other active layers.
5392- Tables: Expose TableSetColumnEnabled() in public api. (#3935)
5393- Tables: Better preserve widths when columns count changes. (#4046)
5394- Tables: Sharing more memory buffers between tables, reducing general memory footprints. (#3740)
5395- Tabs: Fixed mouse reordering with very fast movements (e.g. crossing multiple tabs in a single
5396 frame and then immediately standing still (would only affect automation/bots). [@rokups]
5397- Menus: made MenuItem() in a menu bar reflect the 'selected' argument with a highlight. (#4128) [@mattelegende]
5398- Drags, Sliders, Inputs: Specifying a NULL format to Float functions default them to "%.3f" to be
5399 consistent with the compile-time default. (#3922)
5400- DragScalar: Add default value for v_speed argument to match higher-level functions. (#3922) [@eliasdaler]
5401- ColorEdit4: Alpha default to 255 (instead of 0) when omitted in hex input. (#3973) [@squadack]
5402- InputText: Fix handling of paste failure (buffer full) which in some cases could corrupt the undo stack. (#4038)
5403 (fix submitted to https://github.com/nothings/stb/pull/1158) [@Unit2Ed, @ocornut]
5404- InputText: Do not filter private unicode codepoints (e.g. icons) when pasted from clipboard. (#4005) [@dougbinks]
5405- InputText: Align caret/cursor to pixel coordinates. (#4080) [@elvissteinjr]
5406- InputText: Fixed CTRL+Arrow or OSX double-click leaking the presence of spaces when ImGuiInputTextFlags_Password
5407 is used. (#4155, #4156) [@michael-swan]
5408- LabelText: Fixed clipping of multi-line value text when label is single-line. (#4004)
5409- LabelText: Fixed vertical alignment of single-line value text when label is multi-line. (#4004)
5410- Combos: Changed the combo popup to use a different id to also using a context menu with the default item id.
5411 Fixed using BeginPopupContextItem() with no parameter after a combo. (#4167)
5412- Popups: Added 'OpenPopup(ImGuiID id)' overload to facilitate calling from nested stacks. (#3993, #331) [@zlash]
5413- Tweak computation of io.Framerate so it is less biased toward high-values in the first 120 frames. (#4138)
5414- Optimization: Disabling some of MSVC most aggressive Debug runtime checks for some simple/low-level functions
5415 (e.g. ImVec2, ImVector) leading to a 10-20% increase of performances with MSVC "default" Debug settings.
5416- ImDrawList: Add and use SSE-enabled ImRsqrt() in place of 1.0f / ImSqrt(). (#4091) [@wolfpld]
5417- ImDrawList: Fixed/improved thickness of thick strokes with sharp angles. (#4053, #3366, #2964, #2868, #2518, #2183)
5418 Effectively introduced a regression in 1.67 (Jan 2019), and a fix in 1.70 (Apr 2019) but the fix wasn't actually on
5419 par with original version. Now incorporating the correct revert.
5420- ImDrawList: Fixed PathArcTo() regression from 1.82 preventing use of counter-clockwise angles. (#4030, #3491) [@thedmd]
5421- Demo: Improved popups demo and comments.
5422- Metrics: Added "Fonts" section with same information as available in "Style Editor">"Fonts".
5423- Backends: SDL2: Rework global mouse pos availability check listing supported platforms explicitly,
5424 effectively fixing mouse access on Raspberry Pi. (#2837, #3950) [@lethal-guitar, @hinxx]
5425- Backends: Win32: Clearing keyboard down array when losing focus (WM_KILLFOCUS). (#2062, #3532, #3961)
5426 [@1025798851]
5427- Backends: OSX: Fix keys remaining stuck when CMD-tabbing to a different application. (#3832) [@rokups]
5428- Backends: DirectX9: calling IDirect3DStateBlock9::Capture() after CreateStateBlock() which appears to
5429 workaround/fix state restoring issues. Unknown exactly why so, bit of a cargo-cult fix. (#3857)
5430- Backends: DirectX9: explicitly setting up more graphics states to increase compatibility with unusual
5431 non-default states. (#4063)
5432- Backends: DirectX10, DirectX11: fixed a crash when backing/restoring state if nothing is bound when
5433 entering the rendering function. (#4045) [@Nemirtingas]
5434- Backends: GLFW: Adding bound check in KeyCallback because GLFW appears to send -1 on some setups. [#4124]
5435- Backends: Vulkan: Fix mapped memory Vulkan validation error when buffer sizes are not multiple of
5436 VkPhysicalDeviceLimits::nonCoherentAtomSize. (#3957) [@AgentX1994]
5437- Backends: WebGPU: Update to latest specs (Chrome Canary 92 and Emscripten 2.0.20). (#4116, #3632) [@bfierz, @Kangz]
5438- Backends: OpenGL3: Don't try to read GL_CLIP_ORIGIN unless we're OpenGL 4.5. (#3998, #2366, #2186) [@s7jones]
5439- Examples: OpenGL: Add OpenGL ES 2.0 support to modern GL examples. (#2837, #3951) [@lethal-guitar, @hinxx]
5440- Examples: Vulkan: Rebuild swapchain on VK_SUBOPTIMAL_KHR. (#3881)
5441- Examples: Vulkan: Prefer using discrete GPU if there are more than one available. (#4012) [@rokups]
5442- Examples: SDL2: Link with shell32.lib required by SDL2main.lib since SDL 2.0.12. [#3988]
5443- Examples: Android: Make Android example build compatible with Gradle 7.0. (#3446)
5444- Docs: Improvements to description of using colored glyphs/emojis. (#4169, #3369)
5445- Docs: Improvements to minor mistakes in documentation comments (#3923) [@ANF-Studios]
5446
5447Docking+Viewports Branch:
5448
5449- [Breaking] Removed io.ConfigDockingWithShift config option. Behavior always equivalent to having the
5450 option set to false (dock/undock by default, hold shift to avoid docking). (#2109)
5451- Docking: DockSpace() returns its node ID.
5452- Docking: Dockspace() never draws a background. (#3924)
5453- Docking: Undocking nodes/windows covering most of the monitor max their size down to 90% to ease manipulations.
5454- Docking: Docking node tab bar honors ItemInnerSpacing.x before first tab. (#4130)
5455- Docking: Tweak rendering and alignment of dock node menu marker. (#4130)
5456- Docking: Fixed restoring of tab order within a dockspace or a split node.
5457- Docking: Fixed reappearing docked windows with no close button showing a tab with extraneous space for one frame.
5458- Docking: Fixed multiple simultaneously reappearing window from appearing undocked for one frame.
5459- Viewports: Hotfix for crash in monitor array access, caused by 4b9bc4902. (#3967)
5460- Backends, Viewports: GLFW: Add a workaround for stuck keys after closing a GLFW window (#3837).
5461- Backends, Viewports: Vulkan: Rebuild swapchain on VK_SUBOPTIMAL_KHR. (#3881)
5462
5463
5464-----------------------------------------------------------------------
5465 VERSION 1.82 (Released 2021-02-15)
5466-----------------------------------------------------------------------
5467
5468Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.82
5469
5470Breaking Changes:
5471
5472- Removed redirecting functions/enums names that were marked obsolete in 1.66 (September 2018):
5473 - ImGui::SetScrollHere() --> use ImGui::SetScrollHereY()
5474- ImDrawList: upgraded AddPolyline()/PathStroke()'s "bool closed" parameter to use "ImDrawFlags flags".
5475 - bool closed = false --> use ImDrawFlags_None, or 0
5476 - bool closed = true --> use ImDrawFlags_Closed
5477 The matching ImDrawFlags_Closed value is guaranteed to always stay == 1 in the future.
5478 Difference may not be noticeable for most but zealous type-checking tools may report a need to change.
5479- ImDrawList: upgraded AddRect(), AddRectFilled(), PathRect() to use ImDrawFlags instead of ImDrawCornersFlags.
5480 - ImDrawCornerFlags_TopLeft --> use ImDrawFlags_RoundCornersTopLeft
5481 - ImDrawCornerFlags_BotRight --> use ImDrawFlags_RoundCornersBottomRight
5482 - ImDrawCornerFlags_None --> use ImDrawFlags_RoundCornersNone etc.
5483 Flags now sanely defaults to 0 instead of 0x0F, consistent with all other flags in the API.
5484 IMPORTANT: The default with rounding > 0.0f is now "round all corners" vs old implicit "round no corners":
5485 - rounding == 0.0f + flags == 0 --> meant no rounding --> unchanged (common use)
5486 - rounding > 0.0f + flags != 0 --> meant rounding --> unchanged (common use)
5487 - rounding == 0.0f + flags != 0 --> meant no rounding --> unchanged (unlikely use)
5488 - rounding > 0.0f + flags == 0 --> meant no rounding --> BREAKING (unlikely use)!
5489 - this ONLY matters for hardcoded use of 0 with rounding > 0.0f.
5490 - fix by using named ImDrawFlags_RoundCornersNone or rounding == 0.0f!
5491 - this is technically the only real breaking change which we can't solve automatically (it's also uncommon).
5492 The old ImDrawCornersFlags used awkward default values of ~0 or 0xF (4 lower bits set) to signify "round all corners"
5493 and we sometimes encouraged using them as shortcuts. As a result the legacy path still support use of hardcoded ~0
5494 or any value from 0x1 or 0xF. They will behave the same with legacy paths enabled (will assert otherwise).
5495 Courtesy of legacy untangling commity: [@rokups, @ocornut, @thedmd]
5496- ImDrawList: clarified that PathArcTo()/PathArcToFast() won't render with radius < 0.0f. Previously it sorts
5497 of accidentally worked but would lead to counter-clockwise paths which and have an effect on anti-aliasing.
5498- InputText: renamed ImGuiInputTextFlags_AlwaysInsertMode to ImGuiInputTextFlags_AlwaysOverwrite, old name was an
5499 incorrect description of behavior. Was mostly used by memory editor. Kept inline redirection function. (#2863)
5500- Moved 'misc/natvis/imgui.natvis' to 'misc/debuggers/imgui.natvis' as we will provide scripts for other debuggers.
5501- Style: renamed rarely used style.CircleSegmentMaxError (old default = 1.60f)
5502 to style.CircleTessellationMaxError (new default = 0.30f) as its meaning changed. (#3808) [@thedmd]
5503- Win32+MinGW: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly
5504 disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their
5505 imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. (#2590, #738) [@actboy168]
5506 *EDIT* Undid in 1.84.
5507- Backends: Win32: Pragma linking with dwmapi.lib (Vista-era, ~9 kb). MinGW users will need to link with -ldwmapi.
5508
5509Other Changes:
5510
5511- Window, Nav: Fixed crash when calling SetWindowFocus(NULL) at the time a new window appears. (#3865) [@nem0]
5512- Window: Shrink close button hit-testing region when it covers an abnormally high portion of the window visible
5513 area (e.g. when window is collapsed + moved in a corner) to facilitate moving the window away. (#3825)
5514- Nav: Various fixes for losing gamepad/keyboard navigation reference point when a window reappears or
5515 when it appears while gamepad/keyboard are not being used. (#787)
5516- Drags: Fixed crash when using DragScalar() directly (not via common wrapper like DragFloat() etc.)
5517 with ImGuiSliderFlags_AlwaysClamp + only one of either p_min or p_max set. (#3824) [@harry75369]
5518- Drags, Sliders: Fixed a bug where editing value would use wrong number if there were digits right after
5519 format specifier (e.g. using "%f123" as a format string). [@rokups]
5520- Drags, Sliders: Fixed a bug where using custom formatting flags (',$,_) supported by stb_sprintf.h
5521 would cause incorrect value to be displayed. (#3604) [@rokups]
5522- Drags, Sliders: Support ImGuiSliderFlags_Logarithmic flag with integers. Because why not? (#3786)
5523- Tables: Fixed unaligned accesses when using TableSetBgColor(ImGuiTableBgTarget_CellBg). (#3872)
5524- IsItemHovered(): fixed return value false positive when used after EndChild(), EndGroup() or widgets using
5525 either of them, when the hovered location is located within a child window, e.g. InputTextMultiline().
5526 This is intended to have no side effects, but brace yourself for the possible comeback.. (#3851, #1370)
5527- Drag and Drop: can use BeginDragDropSource() for other than the left mouse button as long as the item
5528 has an ID (for ID-less items will add new functionalities later). (#1637, #3885)
5529- ImFontAtlas: Added 'bool TexPixelsUseColors' output to help backend decide of underlying texture format. (#3369)
5530 This can currently only ever be set by the Freetype renderer.
5531- imgui_freetype: Added ImGuiFreeTypeBuilderFlags_Bitmap flag to request Freetype loading bitmap data.
5532 This may have an effect on size and must be called with correct size values. (#3879) [@metarutaiga]
5533- ImDrawList: PathArcTo() now supports "int num_segments = 0" (new default) and adaptively tessellate.
5534 The adaptive tessellation uses look up tables, tends to be faster than old PathArcTo() while maintaining
5535 quality for large arcs (tessellation quality derived from "style.CircleTessellationMaxError") (#3491) [@thedmd]
5536- ImDrawList: PathArcToFast() also adaptively tessellate efficiently. This means that large rounded corners
5537 in e.g. hi-dpi settings will generally look better. (#3491) [@thedmd]
5538- ImDrawList: AddCircle, AddCircleFilled(): Tweaked default segment count calculation to honor MaxError
5539 with more accuracy. Made default segment count always even for better looking result. (#3808) [@thedmd]
5540- Misc: Added GetAllocatorFunctions() to facilitate sharing allocators across DLL boundaries. (#3836)
5541- Misc: Added 'debuggers/imgui.gdb' and 'debuggers/imgui.natstepfilter' (along with existing 'imgui.natvis')
5542 scripts to configure popular debuggers into skipping trivial functions when using StepInto. [@rokups]
5543- Backends: Android: Added native Android backend. (#3446) [@duddel]
5544- Backends: Win32: Added ImGui_ImplWin32_EnableAlphaCompositing() to facilitate experimenting with
5545 alpha compositing and transparent windows. (#2766, #3447 etc.).
5546- Backends: OpenGL, Vulkan, DX9, DX10, DX11, DX12, Metal, WebGPU, Allegro: Rework blending equation to
5547 preserve alpha in output buffer (using SrcBlendAlpha = ONE, DstBlendAlpha = ONE_MINUS_SRC_ALPHA consistently
5548 across all backends), facilitating compositing of the output buffer with another buffer.
5549 (#2693, #2764, #2766, #2873, #3447, #3813, #3816) [@ocornut, @thedmd, @ShawnM427, @Ubpa, @aiekick]
5550- Backends: DX9: Fix to support IMGUI_USE_BGRA_PACKED_COLOR. (#3844) [@Xiliusha]
5551- Backends: DX9: Fix to support colored glyphs, using newly introduced 'TexPixelsUseColors' info. (#3844)
5552- Examples: Android: Added Android + GL ES3 example. (#3446) [@duddel]
5553- Examples: Reworked setup of clear color to be compatible with transparent values.
5554- CI: Use a dedicated "scheduled" workflow to trigger scheduled builds. Forks may disable this workflow if
5555 scheduled builds builds are not required. [@rokups]
5556- Log/Capture: Added LogTextV, a va_list variant of LogText. [@PathogenDavid]
5557
5558Docking+Viewports Branch:
5559
5560- Viewports: Fix setting of ImGuiViewportFlags_NoRendererClear. (#3213)
5561- Viewports: Added GetViewportPlatformMonitor() with a safety net to keep code portable.
5562- Viewports, Backends: SDL: Fix missing ImGuiBackendFlags_HasSetMousePos flag in docking branch.
5563- Viewports, Backends: GLFW: Fix application of WantSetMousePos. (#1542, #787)
5564
5565
5566-----------------------------------------------------------------------
5567 VERSION 1.81 (Released 2021-02-10)
5568-----------------------------------------------------------------------
5569
5570Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.81
5571
5572Breaking Changes:
5573
5574- ListBox helpers:
5575 - Renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox().
5576 - Renamed ListBoxFooter() to EndListBox().
5577 - Removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size.
5578 In the redirection function, made vertical padding consistent regardless of (items_count <= height_in_items) or not.
5579 - Kept inline redirection function for all threes (will obsolete).
5580- imgui_freetype:
5581 - Removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function.
5582 Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too.
5583 - The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags.
5584 - Renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags.
5585 - Renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API.
5586
5587Other Changes:
5588
5589- Viewports Added ImGui::GetMainViewport() as a way to get the bounds and work area of the host display. (#3789, #1542)
5590 - In 'master' branch or without multi-viewports feature enabled:
5591 - GetMainViewport()->Pos is always == (0,0)
5592 - GetMainViewport()->Size is always == io.DisplaySize
5593 - In 'docking' branch and with the multi-viewports feature enabled:
5594 - GetMainViewport() will return information from your host Platform Window.
5595 - In the future, we will support a "no main viewport" mode and this may return bounds of your main monitor.
5596 - For forward compatibility with multi-viewports/multi-monitors:
5597 - Code using (0,0) as a way to signify "upper-left of the host window" should use GetMainViewport()->Pos.
5598 - Code using io.DisplaySize as a way to signify "size of the host window" should use GetMainViewport()->Size.
5599 - We are also exposing a work area in ImGuiViewport ('WorkPos', 'WorkSize' vs 'Pos', 'Size' for full area):
5600 - For a Platform Window, the work area is generally the full area minus space used by menu-bars.
5601 - For a Platform Monitor, the work area is generally the full area minus space used by task-bars.
5602 - All of this has been the case in 'docking' branch for a long time. What we've done is merely merging
5603 a small chunk of the multi-viewport logic into 'master' to standardize some concepts ahead of time.
5604- Tables: Fixed PopItemWidth() or multi-components items not restoring per-column ItemWidth correctly. (#3760)
5605- Window: Fixed minor title bar text clipping issue when FramePadding is small/zero and there are no
5606 close button in the window. (#3731)
5607- SliderInt: Fixed click/drag when v_min==v_max from setting the value to zero. (#3774) [@erwincoumans]
5608 Would also repro with DragFloat() when using ImGuiSliderFlags_Logarithmic with v_min==v_max.
5609- Menus: Fixed an issue with child-menu auto sizing (issue introduced in 1.80 on 2021/01/25) (#3779)
5610- InputText: Fixed slightly off ScrollX tracking, noticeable with large values of FramePadding.x. (#3781)
5611- InputText: Multiline: Fixed padding/cliprect not precisely matching single-line version. (#3781)
5612- InputText: Multiline: Fixed FramePadding.y worth of vertical offset when aiming with mouse.
5613- ListBox: Tweaked default height calculation.
5614- Fonts: imgui_freetype: Facilitated using FreeType integration: [@Xipiryon, @ocornut]
5615 - Use '#define IMGUI_ENABLE_FREETYPE' in imconfig.h should make it work with no other modifications
5616 other than compiling misc/freetype/imgui_freetype.cpp and linking with FreeType.
5617 - Use '#define IMGUI_ENABLE_STB_TRUETYPE' if you somehow need the stb_truetype rasterizer to be
5618 compiled in along with the FreeType one, otherwise it is enabled by default.
5619- Fonts: imgui_freetype: Added support for colored glyphs as supported by Freetype 2.10+ (for .ttf using CPAL/COLR
5620 tables only). Enable the ImGuiFreeTypeBuilderFlags_LoadColor on a given font. Atlas always output directly
5621 as RGBA8 in this situation. Likely to make sense with IMGUI_USE_WCHAR32. (#3369) [@pshurgal]
5622- Fonts: Fixed CalcTextSize() width rounding so it behaves more like a ceil. This is in order for text wrapping
5623 to have enough space when provided width precisely calculated with CalcTextSize().x. (#3776)
5624 Note that the rounding of either positions and widths are technically undesirable (e.g. #3437, #791) but
5625 variety of code is currently on it so we are first fixing current behavior before we'll eventually change it.
5626- Log/Capture: Fix various new line/spacing issue when logging widgets. [@Xipiryon, @ocornut]
5627- Log/Capture: Improved the ASCII look of various widgets, making large dumps more easily human readable.
5628- ImDrawList: Fixed AddCircle()/AddCircleFilled() with (rad > 0.0f && rad < 1.0f && num_segments == 0). (#3738)
5629 Would lead to a buffer read overflow.
5630- ImDrawList: Clarified PathArcTo() need for a_min <= a_max with an assert.
5631- ImDrawList: Fixed PathArcToFast() handling of a_min > a_max.
5632- Metrics: Back-ported "Viewports" debug visualizer from 'docking' branch.
5633- Demo: Added 'Examples->Fullscreen Window' demo using GetMainViewport() values. (#3789)
5634- Demo: 'Simple Overlay' demo now moves under main menu-bar (if any) using GetMainViewport()'s work area.
5635- Backends: Win32: Dynamically loading XInput DLL instead of linking with it, facilitate compiling with
5636 old WindowSDK versions or running on Windows 7. (#3646, #3645, #3248, #2716) [@Demonese]
5637- Backends: Vulkan: Add support for custom Vulkan function loader and VK_NO_PROTOTYPES. (#3759, #3227) [@Hossein-Noroozpour]
5638 User needs to call ImGui_ImplVulkan_LoadFunctions() with their custom loader prior to other functions.
5639- Backends: Metal: Fixed texture storage mode when building on Mac Catalyst. (#3748) [@Belinsky-L-V]
5640- Backends: OSX: Fixed mouse position not being reported when mouse buttons other than left one are down. (#3762) [@rokups]
5641- Backends: WebGPU: Added renderer backend for WebGPU support (imgui_impl_wgpu.cpp) (#3632) [@bfierz]
5642 Please note that WebGPU is currently experimental, will not run on non-beta browsers, and may break.
5643- Examples: WebGPU: Added Emscripten+WebGPU example. (#3632) [@bfierz]
5644- Backends: GLFW: Added ImGui_ImplGlfw_InitForOther() initialization call to use with non OpenGL API. (#3632)
5645
5646Docking+Viewports Branch:
5647
5648- Docking: Fix losing docking information on closed windows for which the hosting node was split. (#3716) [@GamingMinds-DanielC]
5649- Docking: Fix gap in hit test hole when using ImGuiDockNodeFlags_PassthruCentralNode touching the edge of a viewport. (#3733)
5650- Viewports: (Breaking) removed ImGuiPlatformIO::MainViewport which is now pretty much unused and duplicate
5651 (and misleading as we will evolve the concept).
5652- Viewports: (Breaking) turned ImGuiViewport::GetWorkPos(), ImGuiViewport::GetWorkSize() into regular fields
5653 (WorkPos, WorkSize) before exposing in master branch.
5654- Viewports: Fix issue inferring viewport z-order when new popups gets created. (#3734) + Metrics updates.
5655- Viewports, Backends: Vulkan: handle VK_ERROR_OUT_OF_DATE_KHR when resizing secondary viewport (#3766, #3758)
5656
5657
5658-----------------------------------------------------------------------
5659 VERSION 1.80 (Released 2021-01-21)
5660-----------------------------------------------------------------------
5661
5662Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.80
5663
5664Breaking Changes:
5665
5666- Added imgui_tables.cpp file! Manually constructed project files will need the new file added! (#3740)
5667- Backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. (#3513)
5668- Renamed ImDrawList::AddBezierCurve() to ImDrawList::AddBezierCubic(). Kept inline redirection function (will obsolete).
5669- Renamed ImDrawList::PathBezierCurveTo() to ImDrawList::PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete).
5670- Removed redirecting functions/enums names that were marked obsolete in 1.60 (April 2018):
5671 - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend
5672 - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow)
5673 - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)
5674 - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT
5675 - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT
5676- Removed redirecting functions/enums names that were marked obsolete in 1.61 (May 2018):
5677 - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X was value for decimal_precision.
5678 - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter.
5679- Removed redirecting functions/enums names that were marked obsolete in 1.63 (August 2018):
5680 - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit().
5681 - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg
5682 - ImGuiInputTextCallback -> use ImGuiTextEditCallback
5683 - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData
5684- If you were still using the old names, while you are cleaning up, considering enabling
5685 IMGUI_DISABLE_OBSOLETE_FUNCTIONS in imconfig.h even temporarily to have a pass at finding
5686 and removing up old API calls, if any remaining.
5687- Internals: Columns: renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* to reduce
5688 confusion with Tables API. Keep redirection enums (will obsolete). (#125, #513, #913, #1204, #1444, #2142, #2707)
5689- Renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature now applies
5690 to other data structures. (#2636)
5691
5692Other Changes:
5693
5694- Tables: added new Tables Beta API as a replacement for old Columns. (#3740, #2957, #125)
5695 Check out 'Demo->Tables' for many demos.
5696 Read API comments in imgui.h for details. Read extra commentary in imgui_tables.cpp.
5697 - Added 16 functions:
5698 - BeginTable(), EndTable()
5699 - TableNextRow(), TableNextColumn(), TableSetColumnIndex()
5700 - TableSetupColumn(), TableSetupScrollFreeze()
5701 - TableHeadersRow(), TableHeader()
5702 - TableGetRowIndex(), TableGetColumnCount(), TableGetColumnIndex(), TableGetColumnName(), TableGetColumnFlags()
5703 - TableGetSortSpecs(), TableSetBgColor()
5704 - Added 3 flags sets:
5705 - ImGuiTableFlags (29 flags for: features, decorations, sizing policies, padding, clipping, scrolling, sorting etc.)
5706 - ImGuiTableColumnFlags (24 flags for: width policies, default settings, sorting options, indentation options etc.)
5707 - ImGuiTableRowFlags (1 flag for: header row)
5708 - Added 2 structures: ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs
5709 - Added 2 enums: ImGuiSortDirection, ImGuiTableBgTarget
5710 - Added 1 style variable: ImGuiStyleVar_CellPadding
5711 - Added 5 style colors: ImGuiCol_TableHeaderBg, ImGuiCol_TableBorderStrong, ImGuiCol_TableBorderLight, ImGuiCol_TableRowBg, ImGuiCol_TableRowBgAlt.
5712- Tabs: Made it possible to append to an existing tab bar by calling BeginTabBar()/EndTabBar() again.
5713- Tabs: Fixed using more than 128 tabs in a tab bar (scrolling policy recommended).
5714- Tabs: Do not display a tooltip if the name already fits over a given tab. (#3521)
5715- Tabs: Fixed minor/unlikely bug skipping over a button when scrolling left with arrows.
5716- Tabs: Requested ideal content size (for auto-fit) doesn't affect horizontal scrolling. (#3414)
5717- Drag and Drop: Fix losing drop source ActiveID (and often source tooltip) when opening a TreeNode()
5718 or CollapsingHeader() while dragging. (#1738)
5719- Drag and Drop: Fix drag and drop to tie same-size drop targets by chosen the later one. Fixes dragging
5720 into a full-window-sized dockspace inside a zero-padded window. (#3519, #2717) [@Black-Cat]
5721- Checkbox: Added CheckboxFlags() helper with int* type (internals have a template version, not exposed).
5722- Clipper: Fixed incorrect end-list positioning when using ImGuiListClipper with 1 item (bug in 1.79). (#3663) [@nyorain]
5723- InputText: Fixed updating cursor/selection position when a callback altered the buffer in a way
5724 where the byte count is unchanged but the decoded character count changes. (#3587) [@gqw]
5725- InputText: Fixed switching from single to multi-line while preserving same ID.
5726- Combo: Fixed using IsItemEdited() after Combo() not matching the return value from Combo(). (#2034)
5727- DragFloat, DragInt: very slightly increased mouse drag threshold + expressing it as a factor of default value.
5728- DragFloat, DragInt: added experimental io.ConfigDragClickToInputText feature to enable turning DragXXX widgets
5729 into text input with a simple mouse click-release (without moving). (#3737)
5730- Nav: Fixed IsItemFocused() from returning false when Nav highlight is hidden because mouse has moved.
5731 It's essentially been always the case but it doesn't make much sense. Instead we will aim at exposing
5732 feedback and control of keyboard/gamepad navigation highlight and mouse hover disable flag. (#787, #2048)
5733- Metrics: Fixed mishandling of ImDrawCmd::VtxOffset in wireframe mesh renderer.
5734- Metrics: Rebranded as "Dear ImGui Metrics/Debugger" to clarify its purpose.
5735- ImDrawList: Added ImDrawList::AddQuadBezierCurve(), ImDrawList::PathQuadBezierCurveTo() quadratic bezier
5736 helpers. (#3127, #3664, #3665) [@aiekick]
5737- Fonts: Updated GetGlyphRangesJapanese() to include a larger 2999 ideograms selection of Joyo/Jinmeiyo
5738 kanjis, from the previous 1946 ideograms selection. This will consume a some more memory but be generally
5739 much more fitting for Japanese display, until we switch to a more dynamic atlas. (#3627) [@vaiorabbit]
5740- Log/Capture: fix capture to work on clipped child windows.
5741- Misc: Made the ItemFlags stack shared, so effectively the ButtonRepeat/AllowKeyboardFocus states
5742 (and others exposed in internals such as PushItemFlag) are inherited by stacked Begin/End pairs,
5743 vs previously a non-child stacked Begin() would reset those flags back to zero for the stacked window.
5744- Misc: Replaced UTF-8 decoder with one based on branchless one by Christopher Wellons. [@rokups]
5745 Super minor fix handling incomplete UTF-8 contents: if input does not contain enough bytes, decoder
5746 returns IM_UNICODE_CODEPOINT_INVALID and consume remaining bytes (vs old decoded consumed only 1 byte).
5747- Misc: Fix format warnings when using gnu printf extensions in a setup that supports them (gcc/mingw). (#3592)
5748- Misc: Made EndFrame() assertion for key modifiers being unchanged during the frame (added in 1.76) more
5749 lenient, allowing full mid-frame releases. This is to accommodate the use of mid-frame modal native
5750 windows calls, which leads backends such as GLFW to send key clearing events on focus loss. (#3575)
5751- Style: Changed default style.WindowRounding value to 0.0f (matches default for multi-viewports).
5752- Style: Reduced the size of the resizing grip, made alpha less prominent.
5753- Style: Classic: Increase the default alpha value of WindowBg to be closer to other styles.
5754- Demo: Clarify usage of right-aligned items in Demo>Layout>Widgets Width.
5755- Backends: OpenGL3: Use glGetString(GL_VERSION) query instead of glGetIntegerv(GL_MAJOR_VERSION, ...)
5756 when the later returns zero (e.g. Desktop GL 2.x). (#3530) [@xndcn]
5757- Backends: OpenGL2: Backup and restore GL_SHADE_MODEL and disable GL_NORMAL_ARRAY state to increase
5758 compatibility with legacy code. (#3671)
5759- Backends: OpenGL3: Backup and restore GL_PRIMITIVE_RESTART state. (#3544) [@Xipiryon]
5760- Backends: OpenGL2, OpenGL3: Backup and restore GL_STENCIL_TEST enable state. (#3668)
5761- Backends: Vulkan: Added support for specifying which sub-pass to reference during VkPipeline creation. (@3579) [@bdero]
5762- Backends: DX12: Improve Windows 7 compatibility (for D3D12On7) by loading d3d12.dll dynamically. (#3696) [@Mattiwatti]
5763- Backends: Win32: Fix setting of io.DisplaySize to invalid/uninitialized data after hwnd has been closed.
5764- Backends: OSX: Fix keypad-enter key not working on MacOS. (#3554) [@rokups, @lfnoise]
5765- Examples: Apple+Metal: Consolidated/simplified to get closer to other examples. (#3543) [@warrenm]
5766- Examples: Apple+Metal: Forward events down so OS key combination like Cmd+Q can work. (#3554) [@rokups]
5767- Examples: Emscripten: Renamed example_emscripten/ to example_emscripten_opengl3/. (#3632)
5768- Examples: Emscripten: Added 'make serve' helper to spawn a web-server on localhost. (#3705) [@Horki]
5769- Examples: DirectX12: Move ImGui::Render() call above the first barrier to clarify its lack of effect on the graphics pipe.
5770- CI: Fix testing for Windows DLL builds. (#3603, #3601) [@iboB]
5771- Docs: Improved the wiki and added a https://github.com/ocornut/imgui/wiki/Useful-Widgets page. [@Xipiryon]
5772 [2021/05/20: moved to https://github.com/ocornut/imgui/wiki/Useful-Extensions]
5773- Docs: Split examples/README.txt into docs/BACKENDS.md and docs/EXAMPLES.md, and improved them.
5774- Docs: Consistently renamed all occurrences of "binding" and "back-end" to "backend" in comments and docs.
5775
5776Docking+Viewports Branch:
5777
5778- Docking: Docked windows honor change of tab and text colors. (#2771)
5779- Docking: Support for appending into existing tab-bar made to work with Docking + internal helper DockNodeBeginAmendTabBar().
5780- Docking: Added experimental TabItemFlagsOverrideSet to ImGuiWindowClass.
5781- Viewports: Fixed incorrect whitening of popups above a modal if both use their own viewport.
5782- Viewports: Backends: Vulkan: Fixed build, removed extraneous pipeline creation. (#3459, #3579)
5783
5784
5785-----------------------------------------------------------------------
5786 VERSION 1.79 (Released 2020-10-08)
5787-----------------------------------------------------------------------
5788
5789Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.79
5790
5791Breaking Changes:
5792
5793- Fonts: Removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied
5794 after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font.
5795 It was also getting in the way of better font scaling, so let's get rid of it now!
5796 If you used DisplayOffset it was probably in association to rasterizing a font at a specific size,
5797 in which case the corresponding offset may be reported into GlyphOffset. (#1619)
5798 If you scaled this value after calling AddFontDefault(), this is now done automatically.
5799- ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using
5800 the ImGuiListClipper::Begin() function, with misleading edge cases. Always use ImGuiListClipper::Begin()!
5801 Kept inline redirection function (will obsolete).
5802 (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed).
5803- Style: Renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton.
5804- Renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete).
5805- Renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), REVERTED CHANGE FROM 1.77.
5806 For variety of reason this is more self-explanatory and less error-prone. Kept inline redirection function.
5807- Removed return value from OpenPopupOnItemClick() - returned true on mouse release on an item - because it
5808 is inconsistent with other popups API and makes others misleading. It's also and unnecessary: you can
5809 use IsWindowAppearing() after BeginPopup() for a similar result.
5810
5811Other Changes:
5812
5813- Window: Fixed using non-zero pivot in SetNextWindowPos() when the window is collapsed. (#3433)
5814- Nav: Fixed navigation resuming on first visible item when using gamepad. [@rokups]
5815- Nav: Fixed using Alt to toggle the Menu layer when inside a Modal window. (#787)
5816- Scrolling: Fixed SetScrollHere(0) functions edge snapping when called during a frame where
5817 ContentSize is changing (issue introduced in 1.78). (#3452).
5818- InputText: Added support for Page Up/Down in InputTextMultiline(). (#3430) [@Xipiryon]
5819- InputText: Added selection helpers in ImGuiInputTextCallbackData().
5820- InputText: Added ImGuiInputTextFlags_CallbackEdit to modify internally owned buffer after an edit.
5821 (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the
5822 underlying buffer while focus is active).
5823- InputText: Fixed using ImGuiInputTextFlags_Password with InputTextMultiline(). (#3427, #3428)
5824 It is a rather unusual or useless combination of features but no reason it shouldn't work!
5825- InputText: Fixed minor scrolling glitch when erasing trailing lines in InputTextMultiline().
5826- InputText: Fixed cursor being partially covered after using Ctrl+End key.
5827- InputText: Fixed callback's helper DeleteChars() function when cursor is inside the deleted block. (#3454)
5828- InputText: Made pressing Down arrow on the last line when it doesn't have a carriage return not move to
5829 the end of the line (so it is consistent with Up arrow, and behave same as Notepad and Visual Studio.
5830 Note that some other text editors instead would move the cursor to the end of the line). [@Xipiryon]
5831- DragFloat, DragScalar: Fixed ImGuiSliderFlags_ClampOnInput not being honored in the special case
5832 where v_min == v_max. (#3361)
5833- SliderInt, SliderScalar: Fixed reaching of maximum value with inverted integer min/max ranges, both
5834 with signed and unsigned types. Added reverse Sliders to Demo. (#3432, #3449) [@rokups]
5835- Text: Bypass unnecessary formatting when using the TextColored()/TextWrapped()/TextDisabled() helpers
5836 with a "%s" format string. (#3466)
5837- CheckboxFlags: Display mixed-value/tristate marker when passed flags that have multiple bits set and
5838 stored value matches neither zero neither the full set.
5839- BeginMenuBar: Fixed minor bug where CursorPosMax gets pushed to CursorPos prior to calling BeginMenuBar(),
5840 so e.g. calling the function at the end of a window would often add +ItemSpacing.y to scrolling range.
5841- TreeNode, CollapsingHeader: Made clicking on arrow toggle toggle the open state on the Mouse Down event
5842 rather than the Mouse Down+Up sequence, even if the _OpenOnArrow flag isn't set. This is standard behavior
5843 and amends the change done in 1.76 which only affected cases were _OpenOnArrow flag was set.
5844 (This is also necessary to support full multi/range-select/drag and drop operations.)
5845- Tabs: Added TabItemButton() to submit tab that behave like a button. (#3291) [@Xipiryon]
5846- Tabs: Added ImGuiTabItemFlags_Leading and ImGuiTabItemFlags_Trailing flags to position tabs or button
5847 at either end of the tab bar. Those tabs won't be part of the scrolling region, and when reordering cannot
5848 be moving outside of their section. Most often used with TabItemButton(). (#3291) [@Xipiryon]
5849- Tabs: Added ImGuiTabItemFlags_NoReorder flag to disable reordering a given tab.
5850- Tabs: Keep tab item close button visible while dragging a tab (independent of hovering state).
5851- Tabs: Fixed a small bug where closing a tab that is not selected would leave a tab hole for a frame.
5852- Tabs: Fixed a small bug where scrolling buttons (with ImGuiTabBarFlags_FittingPolicyScroll) would
5853 generate an unnecessary extra draw call.
5854- Tabs: Fixed a small bug where toggling a tab bar from Reorderable to not Reorderable would leave
5855 tabs reordered in the tab list popup. [@Xipiryon]
5856- Columns: Fix inverted ClipRect being passed to renderer when using certain primitives inside of
5857 a fully clipped column. (#3475) [@szreder]
5858- Popups, Tooltips: Fix edge cases issues with positioning popups and tooltips when they are larger than
5859 viewport on either or both axes. [@Rokups]
5860- Fonts: AddFontDefault() adjust its vertical offset based on floor(size/13) instead of always +1.
5861 Was previously done by altering DisplayOffset.y but wouldn't work for DPI scaled font.
5862- Metrics: Various tweaks, listing windows front-to-back, greying inactive items when possible.
5863- Demo: Add simple InputText() callbacks demo (aside from the more elaborate ones in 'Examples->Console').
5864- Backends: OpenGL3: Fix to avoid compiling/calling glBindSampler() on ES or pre-3.3 contexts which have
5865 the defines set by a loader. (#3467, #1985) [@jjwebb]
5866- Backends: Vulkan: Some internal refactor aimed at allowing multi-viewport feature to create their
5867 own render pass. (#3455, #3459) [@FunMiles]
5868- Backends: DX12: Clarified that imgui_impl_dx12 can be compiled on 32-bit systems by redefining
5869 the ImTextureID to be 64-bit (e.g. '#define ImTextureID ImU64' in imconfig.h). (#301)
5870- Backends: DX12: Fix debug layer warning when scissor rect is zero-sized. (#3472, #3462) [@StoneWolf]
5871- Examples: Vulkan: Reworked buffer resize handling, fix for Linux/X11. (#3390, #2626) [@RoryO]
5872- Examples: Vulkan: Switch validation layer to use "VK_LAYER_KHRONOS_validation" instead of
5873 "VK_LAYER_LUNARG_standard_validation" which is deprecated (#3459) [@FunMiles]
5874- Examples: DX12: Enable breaking on any warning/error when debug interface is enabled.
5875- Examples: DX12: Added '#define ImTextureID ImU64' in project and build files to also allow building
5876 on 32-bit systems. Added project to default Visual Studio solution file. (#301)
5877
5878Docking+Viewports Branch:
5879
5880- Docking: DockSpace() emits ItemSize() properly (useful when not filling all space).
5881- Docking: Fixed docking while hovering a child window. (#3420) broken by 85a661d. Improve metrics debugging.
5882- Docking: Fix honoring payload filter with overlapping nodes (we incorrectly over-relied on g.HoveredDockNode
5883 when making change for #3398).
5884- Docking: Fix handling of WindowMenuButtonPosition == ImGuiDir_None in Docking Nodes. (#3499)
5885- Viewports: Fixed a rare edge-case if the window targeted by CTRL+Tab stops being rendered.
5886- Viewports, Backends: DX12: Make secondary viewport format match main viewport one (#3462) {@BeastLe9enD]
5887- Viewports: Backends: Vulkan: Removed unused shader code. Fix leaks. Avoid unnecessary pipeline creation for main
5888 viewport. (#3459) + Add ImGui_ImplVulkanH_CreateWindowSwapChain in ImGui_ImplVulkanH_CreateOrResizeWindow().
5889- Viewports: Backends: DirectX9: Recover from D3DERR_DEVICELOST on secondary viewports. (#3424)
5890- Viewports, Backends: Win32: Fix toggling of ImGuiViewportFlags_TopMost (#3477) [@Kodokuna]
5891- Viewports: Backends: GLFW: Workaround for cases where glfwGetMonitorWorkarea fails (#3457) [@dougbinks]
5892
5893
5894-----------------------------------------------------------------------
5895 VERSION 1.78 (Released 2020-08-18)
5896-----------------------------------------------------------------------
5897
5898Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.78
5899
5900Breaking Changes:
5901
5902- Obsoleted use of the trailing 'float power=1.0f' parameter for those functions: [@Shironekoben, @ocornut]
5903 - DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN()
5904 - SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN()
5905 - VSliderFloat(), VSliderScalar()
5906 Replaced the final 'float power=1.0f' argument with ImGuiSliderFlags defaulting to 0 (as with all our flags).
5907 Worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected.
5908 In short, when calling those functions:
5909 - If you omitted the 'power' parameter (likely!), you are not affected.
5910 - If you set the 'power' parameter to 1.0f (same as previous default value):
5911 - Your compiler may warn on float>int conversion.
5912 - Everything else will work (but will assert if IMGUI_DISABLE_OBSOLETE_FUNCTIONS is defined).
5913 - You can replace the 1.0f value with 0 to fix the warning, and be technically correct.
5914 - If you set the 'power' parameter to >1.0f (to enable non-linear editing):
5915 - Your compiler may warn on float>int conversion.
5916 - Code will assert at runtime for IM_ASSERT(power == 1.0f) with the following assert description:
5917 "Call Drag function with ImGuiSliderFlags_Logarithmic instead of using the old 'float power' function!".
5918 - In case asserts are disabled, the code will not crash and enable the _Logarithmic flag.
5919 - You can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert
5920 and get a _similar_ effect as previous uses of power >1.0f.
5921 See https://github.com/ocornut/imgui/issues/3361 for all details.
5922 For shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`.
5923 Kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar().
5924 For those three the 'float power=1.0f' version was removed directly as they were most unlikely ever used.
5925- DragInt, DragFloat, DragScalar: Obsoleted use of v_min > v_max to lock edits (introduced in 1.73, this was not
5926 demoed nor documented much, will be replaced a more generic ReadOnly feature).
5927
5928Other Changes:
5929
5930- Nav: Fixed clicking on void (behind any windows) from not clearing the focused window.
5931 This would be problematic e.g. in situation where the application relies on io.WantCaptureKeyboard
5932 flag being cleared accordingly. (bug introduced in 1.77 WIP on 2020/06/16) (#3344, #2880)
5933- Window: Fixed clicking over an item which hovering has been disabled (e.g inhibited by a popup)
5934 from marking the window as moved.
5935- Drag, Slider: Added ImGuiSliderFlags parameters.
5936 - For float functions they replace the old trailing 'float power=1.0' parameter.
5937 (See #3361 and the "Breaking Changes" block above for all details).
5938 - Added ImGuiSliderFlags_Logarithmic flag to enable logarithmic editing
5939 (generally more precision around zero), as a replacement to the old 'float power' parameter
5940 which was obsoleted. (#1823, #1316, #642) [@Shironekoben, @AndrewBelt]
5941 - Added ImGuiSliderFlags_ClampOnInput flag to force clamping value when using
5942 CTRL+Click to type in a value manually. (#1829, #3209, #946, #413).
5943 [note: RENAMED to ImGuiSliderFlags_AlwaysClamp in 1.79].
5944 - Added ImGuiSliderFlags_NoRoundToFormat flag to disable rounding underlying
5945 value to match precision of the display format string. (#642)
5946 - Added ImGuiSliderFlags_NoInput flag to disable turning widget into a text input
5947 with CTRL+Click or Nav Enter.
5948- Nav, Slider: Fix using keyboard/gamepad controls with certain logarithmic sliders where
5949 pushing a direction near zero values would be cancelled out. [@Shironekoben]
5950- DragFloatRange2, DragIntRange2: Fixed an issue allowing to drag out of bounds when both
5951 min and max value are on the same value. (#1441)
5952- InputText, ImDrawList: Fixed assert triggering when drawing single line of text with more
5953 than ~16 KB characters. (Note that current code is going to show corrupted display if after
5954 clipping, more than 16 KB characters are visible in the same low-level ImDrawList::RenderText()
5955 call. ImGui-level functions such as TextUnformatted() are not affected. This is quite rare
5956 but it will be addressed later). (#3349)
5957- Selectable: Fixed highlight/hit extent when used with horizontal scrolling (in or outside columns).
5958 Also fixed related text clipping when used in a column after the first one. (#3187, #3386)
5959- Scrolling: Avoid SetScroll, SetScrollFromPos functions from snapping on the edge of scroll
5960 limits when close-enough by (WindowPadding - ItemPadding), which was a tweak with too many
5961 side-effects. The behavior is still present in SetScrollHere functions as they are more explicitly
5962 aiming at making widgets visible. May later be moved to a flag.
5963- Tabs: Allow calling SetTabItemClosed() after a tab has been submitted (will process next frame).
5964- InvisibleButton: Made public a small selection of ImGuiButtonFlags (previously in imgui_internal.h)
5965 and allowed to pass them to InvisibleButton(): ImGuiButtonFlags_MouseButtonLeft/Right/Middle.
5966 This is a small but rather important change because lots of multi-button behaviors could previously
5967 only be achieved using lower-level/internal API. Now also available via high-level InvisibleButton()
5968 with is a de facto versatile building block to creating custom widgets with the public API.
5969- Fonts: Fixed ImFontConfig::GlyphExtraSpacing and ImFontConfig::PixelSnapH settings being pulled
5970 from the merged/target font settings when merging fonts, instead of being pulled from the source
5971 font settings.
5972- ImDrawList: Thick anti-aliased strokes (> 1.0f) with integer thickness now use a texture-based
5973 path, reducing the amount of vertices/indices and CPU/GPU usage. (#3245) [@Shironekoben]
5974 - This change will facilitate the wider use of thick borders in future style changes.
5975 - Requires an extra bit of texture space (~64x64 by default), relies on GPU bilinear filtering.
5976 - Set `io.AntiAliasedLinesUseTex = false` to disable rendering using this method.
5977 - Clear `ImFontAtlasFlags_NoBakedLines` in ImFontAtlas::Flags to disable baking data in texture.
5978- ImDrawList: changed AddCircle(), AddCircleFilled() default num_segments from 12 to 0, effectively
5979 enabling auto-tessellation by default. Tweak tessellation in Style Editor->Rendering section, or
5980 by modifying the 'style.CircleSegmentMaxError' value. [@ShironekoBen]
5981- ImDrawList: Fixed minor bug introduced in 1.75 where AddCircle() with 12 segments would generate
5982 an extra vertex. (This bug was mistakenly marked as fixed in earlier 1.77 release). [@ShironekoBen]
5983- Demo: Improved "Custom Rendering"->"Canvas" demo with a grid, scrolling and context menu.
5984 Also showcase using InvisibleButton() with multiple mouse buttons flags.
5985- Demo: Improved "Layout & Scrolling" -> "Clipping" section.
5986- Demo: Improved "Layout & Scrolling" -> "Child Windows" section.
5987- Style Editor: Added preview of circle auto-tessellation when editing the corresponding value.
5988- Backends: OpenGL3: Added support for glad2 loader. (#3330) [@moritz-h]
5989- Backends: Allegro 5: Fixed horizontal scrolling direction with mouse wheel / touch pads (it seems
5990 like Allegro 5 reports it differently from GLFW and SDL). (#3394, #2424, #1463) [@nobody-special666]
5991- Examples: Vulkan: Fixed GLFW+Vulkan and SDL+Vulkan clear color not being set. (#3390) [@RoryO]
5992- CI: Emscripten has stopped their support for their fastcomp backend, switching to latest sdk [@Xipiryon]
5993
5994Docking+Viewports Branch:
5995
5996- Docking: Made DockBuilderAddNode() automatically call DockBuilderRemoveNode(). (#3399, #2109)
5997- Docking: Storing HoveredDockNode in context which can be useful for easily detecting e.g. hovering an
5998 empty node. (#3398)
5999- Docking: Fixed docking overlay bits appearing at (0,0), because of 43bd80a. Most typically noticeable
6000 when disabling multi-viewport.
6001- Docking: Workaround recovery for node created without the _DockSpace flags later becoming a DockSpace. (#3340)
6002- Docking: Rework size allocations to recover when there's no enough room for nodes + do not hold on
6003 _WantLockSizeOnce forever. (#3328)
6004- Docking: Rework size allocation to allow user code to override node sizes. Not all edge cases will be
6005 properly handled but this is a step toward toolbar emitting size constraints.
6006- Docking: Added experimental flags to perform more docking filtering and disable resize per axis.
6007 Designed for toolbar patterns.
6008- Viewports, Backends, GLFW: Use GLFW_MOUSE_PASSTHROUGH when available.
6009- Viewports, Backends: DX12: Fixed issue on shutdown when viewports are disabled. (#3347)
6010
6011
6012-----------------------------------------------------------------------
6013 VERSION 1.77 (Released 2020-06-29)
6014-----------------------------------------------------------------------
6015
6016Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.77
6017
6018Breaking Changes:
6019
6020- Removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular() function. Please
6021 note that this is a Beta api and will likely be reworked in order to support multi-DPI across
6022 multiple monitors.
6023- Renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete).
6024 [NOTE: THIS WAS REVERTED IN 1.79]
6025- Removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor
6026 of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems.
6027 Kept inline redirection function (will obsolete).
6028- Removed obsoleted CalcItemRectClosestPoint() entry point (has been asserting since December 2017).
6029
6030Other Changes:
6031
6032- TreeNode: Fixed bug where BeginDragDropSource() failed when the _OpenOnDoubleClick flag is
6033 enabled (bug introduced in 1.76, but pre-1.76 it would also fail unless the _OpenOnArrow
6034 flag was also set, and _OpenOnArrow is frequently set along with _OpenOnDoubleClick).
6035- TreeNode: Fixed bug where dragging a payload over a TreeNode() with either _OpenOnDoubleClick
6036 or _OpenOnArrow would open the node. (#143)
6037- Windows: Fix unintended feedback loops when resizing windows close to main viewport edges. [@rokups]
6038- Tabs: Added style.TabMinWidthForUnselectedCloseButton settings:
6039 - Set to 0.0f (default) to always make a close button appear on hover (same as Chrome, VS).
6040 - Set to FLT_MAX to only display a close button when selected (merely hovering is not enough).
6041 - Set to an intermediary value to toggle behavior based on width (same as Firefox).
6042- Tabs: Added a ImGuiTabItemFlags_NoTooltip flag to disable the tooltip for individual tab item
6043 (vs ImGuiTabBarFlags_NoTooltip for entire tab bar). [@Xipiryon]
6044- Popups: All functions capable of opening popups (OpenPopup*, BeginPopupContext*) now take a new
6045 ImGuiPopupFlags sets of flags instead of a mouse button index. The API is automatically backward
6046 compatible as ImGuiPopupFlags is guaranteed to hold mouse button index in the lower bits.
6047- Popups: Added ImGuiPopupFlags_NoOpenOverExistingPopup for OpenPopup*/BeginPopupContext* functions
6048 to first test for the presence of another popup at the same level.
6049- Popups: Added ImGuiPopupFlags_NoOpenOverItems for BeginPopupContextWindow() - similar to testing
6050 for !IsAnyItemHovered() prior to doing an OpenPopup().
6051- Popups: Added ImGuiPopupFlags_AnyPopupId and ImGuiPopupFlags_AnyPopupLevel flags for IsPopupOpen(),
6052 allowing to check if any popup is open at the current level, if a given popup is open at any popup
6053 level, if any popup is open at all.
6054- Popups: Fix an edge case where programmatically closing a popup while clicking on its empty space
6055 would attempt to focus it and close other popups. (#2880)
6056- Popups: Fix BeginPopupContextVoid() when clicking over the area made unavailable by a modal. (#1636)
6057- Popups: Clarified some of the comments and function prototypes.
6058- Modals: BeginPopupModal() doesn't set the ImGuiWindowFlags_NoSavedSettings flag anymore, and will
6059 not always be auto-centered. Note that modals are more similar to regular windows than they are to
6060 popups, so api and behavior may evolve further toward embracing this. (#915, #3091)
6061 Enforce centering using e.g. SetNextWindowPos(io.DisplaySize * 0.5f, ImGuiCond_Appearing, ImVec2(0.5f,0.5f)).
6062- Metrics: Added a "Settings" section with some details about persistent ini settings.
6063- Nav, Menus: Fix vertical wrap-around in menus or popups created with multiple appending calls to
6064 BeginMenu()/EndMenu() or BeginPopup(0/EndPopup(). (#3223, #1207) [@rokups]
6065- Drag and Drop: Fixed unintended fallback "..." tooltip display during drag operation when
6066 drag source uses _SourceNoPreviewTooltip flags. (#3160) [@rokups]
6067- Columns: Lower overhead on column switches and switching to background channel.
6068 Benefits Columns but was primarily made with Tables in mind!
6069- Fonts: Fix GetGlyphRangesKorean() end-range to end at 0xD7A3 (instead of 0xD79D). (#348, #3217) [@marukrap]
6070- ImDrawList: Fixed an issue where draw command merging or primitive unreserve while crossing the
6071 VtxOffset boundary would lead to draw commands with wrong VtxOffset. (#3129, #3163, #3232, #2591)
6072 [@thedmd, @Shironekoben, @sergeyn, @ocornut]
6073- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where changing channels with different
6074 TextureId, VtxOffset would incorrectly apply new settings to draw channels. (#3129, #3163)
6075 [@ocornut, @thedmd, @Shironekoben]
6076- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split when current
6077 VtxOffset was not zero would lead to draw commands with wrong VtxOffset. (#2591)
6078- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split right after
6079 a callback draw command would incorrectly override the callback draw command.
6080- Misc, Freetype: Fix for rare case where FT_Get_Char_Index() succeeds but FT_Load_Glyph() fails.
6081- Docs: Improved and moved font documentation to docs/FONTS.md so it can be readable on the web.
6082 Updated various links/wiki accordingly. Added FAQ entry about DPI. (#2861) [@ButternCream, @ocornut]
6083- CI: Added CI test to verify we're never accidentally dragging libstdc++ (on some compiler setups,
6084 static constructors for non-pod data seems to drag in libstdc++ due to thread-safety concerns).
6085 Fixed a static constructor which led to this dependency on some compiler setups. [@rokups]
6086- Backends: Win32: Support for #define NOGDI, won't try to call GetDeviceCaps(). (#3137, #2327)
6087- Backends: Win32: Fix _WIN32_WINNT < 0x0600 (MinGW defaults to 0x502 == Windows 2003). (#3183)
6088- Backends: SDL: Report a zero display-size when window is minimized, consistent with other backends,
6089 making more render/clipping code use an early out path.
6090- Backends: OpenGL: Fixed handling of GL 4.5+ glClipControl(GL_UPPER_LEFT) by inverting the
6091 projection matrix top and bottom values. (#3143, #3146) [@u3shit]
6092- Backends: OpenGL: On OSX, if unspecified by app, made default GLSL version 150. (#3199) [@albertvaka]
6093- Backends: OpenGL: Fixed loader auto-detection to not interfere with ES2/ES3 defines. (#3246) [@funchal]
6094- Backends: Vulkan: Fixed error in if initial frame has no vertices. (#3177)
6095- Backends: Vulkan: Fixed edge case where render callbacks wouldn't be called if the ImDrawData
6096 structure didn't have any vertices. (#2697) [@kudaba]
6097- Backends: OSX: Added workaround to avoid fast mouse clicks. (#3261, #1992, #2525) [@nburrus]
6098- Examples: GLFW+Vulkan, SDL+Vulkan: Fix for handling of minimized windows. (#3259)
6099- Examples: Apple: Fixed example_apple_metal and example_apple_opengl2 using imgui_impl_osx.mm
6100 not forwarding right and center mouse clicks. (#3260) [@nburrus]
6101
6102Docking+Viewports Branch:
6103
6104- Viewports: Don't set ImGuiViewportFlags_NoRendererClear when ImGuiWindowFlags_NoBackground is set. (#3213)
6105- Viewports: Report minimized viewports as zero DisplaySize to be consistent with main branch. (#1542)
6106- Docking, Settings: Allow reload of settings data at runtime. (#2573)
6107- Backends, GLFW: Fix windows resizing incorrectly on Linux due to GLFW firing window positioning
6108 callbacks on next frame after window is resized manually. (#2117)
6109- Backends: DX12: Fix OBJECT_DELETED_WHILE_STILL_IN_USE on viewport resizing. (#3210)
6110- Backends: DX12: Fix for crash caused by early resource release. (#3121)
6111- Backends, Win32: Request monitor update when DPI awareness is enabled to make sure they have the correct DPI settings.
6112
6113
6114-----------------------------------------------------------------------
6115 VERSION 1.76 (Released 2020-04-12)
6116-----------------------------------------------------------------------
6117
6118Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.76
6119
6120Other Changes:
6121
6122- Drag and Drop, Nav: Disabling navigation arrow keys when drag and drop is active. In the docking
6123 branch pressing arrow keys while dragging a window from a tab could trigger an assert. (#3025)
6124- BeginMenu: Using same ID multiple times appends content to a menu. (#1207) [@rokups]
6125- BeginMenu: Fixed a bug where SetNextWindowXXX data before a BeginMenu() would not be cleared
6126 when the menu is not open. (#3030)
6127- InputText: Fixed password fields displaying ASCII spaces as blanks instead of using the '*'
6128 glyph. (#2149, #515)
6129- Selectable: Fixed honoring style.SelectableTextAlign with unspecified size. (#2347, #2601)
6130- Selectable: Allow using ImGuiSelectableFlags_SpanAllColumns in other columns than first. (#125)
6131- TreeNode: Made clicking on arrow with _OpenOnArrow toggle the open state on the Mouse Down
6132 event rather than the Mouse Down+Up sequence (this is rather standard behavior).
6133- ColorButton: Added ImGuiColorEditFlags_NoBorder flag to remove the border normally enforced
6134 by default for standalone ColorButton.
6135- Nav: Fixed interactions with ImGuiListClipper, so e.g. Home/End result would not clip the
6136 landing item on the landing frame. (#787)
6137- Nav: Fixed currently focused item from ever being clipped by ItemAdd(). (#787)
6138- Scrolling: Fixed scrolling centering API leading to non-integer scrolling values and initial
6139 cursor position. This would often get fixed after the fix item submission, but using the
6140 ImGuiListClipper as the first thing after Begin() could largely break size calculations. (#3073)
6141- Added optional support for Unicode plane 1-16 (#2538, #2541, #2815) [@cloudwu, @samhocevar]
6142 - Compile-time enable with '#define IMGUI_USE_WCHAR32' in imconfig.h.
6143 - More consistent handling of unsupported code points (0xFFFD).
6144 - Surrogate pairs are supported when submitting UTF-16 data via io.AddInputCharacterUTF16(),
6145 allowing for more complete CJK input.
6146 - sizeof(ImWchar) goes from 2 to 4. IM_UNICODE_CODEPOINT_MAX goes from 0xFFFF to 0x10FFFF.
6147 - Various structures such as ImFont, ImFontGlyphRangesBuilder will use more memory, this
6148 is currently not particularly efficient.
6149- Columns: undid the change in 1.75 were Columns()/BeginColumns() were preemptively limited
6150 to 64 columns with an assert. (#3037, #125)
6151- Window: Fixed a bug with child window inheriting ItemFlags from their parent when the child
6152 window also manipulate the ItemFlags stack. (#3024) [@Stanbroek]
6153- Font: Fixed non-ASCII space occasionally creating unnecessary empty looking polygons.
6154- Misc: Added an explicit compile-time test for non-scoped IM_ASSERT() macros to redirect users
6155 to a solution rather than encourage people to add braces in the codebase.
6156- Misc: Added additional checks in EndFrame() to verify that io.KeyXXX values have not been
6157 tampered with between NewFrame() and EndFrame().
6158- Misc: Made default clipboard handlers for Win32 and OSX use a buffer inside the main context
6159 instead of a static buffer, so it can be freed properly on Shutdown. (#3110)
6160- Misc, Freetype: Fixed support for IMGUI_STB_RECT_PACK_FILENAME compile time directive
6161 in imgui_freetype.cpp (matching support in the regular code path). (#3062) [@DonKult]
6162- Metrics: Made Tools section more prominent. Showing wire-frame mesh directly hovering the ImDrawCmd
6163 instead of requiring to open it. Added options to disable bounding box and mesh display.
6164 Added notes on inactive/gc-ed windows.
6165- Demo: Added black and white and color gradients to Demo>Examples>Custom Rendering.
6166- CI: Added more tests on the continuous-integration server: extra warnings for Clang/GCC, building
6167 SDL+Metal example, building imgui_freetype.cpp, more compile-time imconfig.h settings: disabling
6168 obsolete functions, enabling 32-bit ImDrawIdx, enabling 32-bit ImWchar, disabling demo. [@rokups]
6169- Backends: OpenGL3: Fixed version check mistakenly testing for GL 4.0+ instead of 3.2+ to enable
6170 ImGuiBackendFlags_RendererHasVtxOffset, leaving 3.2 contexts without it. (#3119, #2866) [@wolfpld]
6171- Backends: OpenGL3: Added include support for older glbinding 2.x loader. (#3061) [@DonKult]
6172- Backends: Win32: Added ImGui_ImplWin32_EnableDpiAwareness(), ImGui_ImplWin32_GetDpiScaleForHwnd(),
6173 ImGui_ImplWin32_GetDpiScaleForMonitor() helpers functions (backported from the docking branch).
6174 Those functions makes it easier for example apps to support hi-dpi features without setting up
6175 a manifest.
6176- Backends: Win32: Calling AddInputCharacterUTF16() from WM_CHAR message handler in order to support
6177 high-plane surrogate pairs. (#2815) [@cloudwu, @samhocevar]
6178- Backends: SDL: Added ImGui_ImplSDL2_InitForMetal() for API consistency (even though the function
6179 currently does nothing).
6180- Backends: SDL: Fixed mapping for ImGuiKey_KeyPadEnter. (#3031) [@Davido71]
6181- Examples: Win32+DX12: Fixed resizing main window, enabled debug layer. (#3087, #3115) [@sergeyn]
6182- Examples: SDL+DX11: Fixed resizing main window. (#3057) [@joeslay]
6183- Examples: Added SDL+Metal example application. (#3017) [@coding-jackalope]
6184
6185Docking+Viewports Branch:
6186
6187- Docking: Fixed assert preventing dockspace from being created instead a hidden tab. (#3101)
6188- Viewports: Fixed secondary viewports accidentally merging into a minimized host viewport. (#3118)
6189- Viewports, Docking: Added per-viewport work area system for e.g. menu-bars. Fixed DockspaceOverViewport()
6190 and demo code (overlay etc) accordingly. (#3035, #2889, #2474, #1542, #2109)
6191- Viewports: Improve menu positioning in multi-monitor setups. [@rokups]
6192- Viewports: Software mouse cursor is also scaled by current DpiScale. (amend #939)
6193- Viewports: Avoid manually clipping resize grips and borders, which messes up with automation ability
6194 to locate those items. Also simpler and more standard.
6195- Viewports: Fix for UWP in the imgui_impl_win32.cpp IME handler. (#2895, #2892).
6196- Viewports: Bunch of extra of comments to facilitate setting up multi-viewports.
6197- Viewports, GLFW: Avoid using window positioning workaround for GLFW 3.3+ versions that have it fixed.
6198
6199
6200-----------------------------------------------------------------------
6201 VERSION 1.75 (Released 2020-02-10)
6202-----------------------------------------------------------------------
6203
6204Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.75
6205
6206Breaking Changes:
6207
6208- Removed redirecting functions/enums names that were marked obsolete in 1.53 (December 2017):
6209 - ShowTestWindow() -> use ShowDemoWindow()
6210 - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow)
6211 - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows)
6212 - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f))
6213 - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing()
6214 - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg
6215 - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding
6216 - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap
6217 - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS
6218 If you were still using the old names, while you are cleaning up, considering enabling
6219 IMGUI_DISABLE_OBSOLETE_FUNCTIONS in imconfig.h even temporarily to have a pass at finding
6220 and removing up old API calls, if any remaining.
6221- Removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent
6222 with other mouse functions (none of the other functions have it).
6223- Obsoleted calling ImDrawList::PrimReserve() with a negative count (which was vaguely
6224 documented and rarely if ever used). Instead we added an explicit PrimUnreserve() API
6225 which can be implemented faster. Also clarified pre-existing constraints which weren't
6226 documented (can only unreserve from the last reserve call). If you suspect you ever
6227 used that feature before (very unlikely, but grep for call to PrimReserve in your code),
6228 you can #define IMGUI_DEBUG_PARANOID in imconfig.h to catch existing calls. [@ShironekoBen]
6229- ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius.
6230- Limiting Columns()/BeginColumns() api to 64 columns with an assert. While the current code
6231 technically supports it, future code may not so we're putting the restriction ahead.
6232 [Undid that change in 1.76]
6233- imgui_internal.h: changed ImRect() default constructor initializes all fields to 0.0f instead
6234 of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by
6235 adding points into it without explicit initialization, you may need to fix your initial value.
6236
6237Other Changes:
6238
6239- Inputs: Added ImGuiMouseButton enum for convenience (e.g. ImGuiMouseButton_Right=1).
6240 We forever guarantee that the existing value will not changes so existing code is free to use 0/1/2.
6241- Nav: Fixed a bug where the initial CTRL+Tab press while in a child window sometimes selected
6242 the current root window instead of always selecting the previous root window. (#787)
6243- ColorEdit: Fix label alignment when using ImGuiColorEditFlags_NoInputs. (#2955) [@rokups]
6244- ColorEdit: In HSV display of a RGB stored value, attempt to locally preserve Saturation
6245 when Value==0.0 (similar to changes done in 1.73 for Hue). Removed Hue editing lock since
6246 those improvements in 1.73 makes them unnecessary. (#2722, #2770). [@rokups]
6247- ColorEdit: "Copy As" context-menu tool shows hex values with a '#' prefix instead of '0x'.
6248- ColorEdit: "Copy As" content-menu tool shows hex values both with/without alpha when available.
6249- InputText: Fix corruption or crash when executing undo after clearing input with ESC, as a
6250 byproduct we are allowing to later undo the revert with a CTRL+Z. (#3008).
6251- InputText: Fix using a combination of _CallbackResize (e.g. for std::string binding), along with the
6252 _EnterReturnsTrue flag along with the rarely used property of using an InputText without persisting
6253 user-side storage. Previously if you had e.g. a local unsaved std::string and reading result back
6254 from the widget, the user string object wouldn't be resized when Enter key was pressed. (#3009)
6255- MenuBar: Fix minor clipping issue where occasionally a menu text can overlap the right-most border.
6256- Window: Fix SetNextWindowBgAlpha(1.0f) failing to override alpha component. (#3007) [@Albog]
6257- Window: When testing for the presence of the ImGuiWindowFlags_NoBringToFrontOnFocus flag we
6258 test both the focused/clicked window (which could be a child window) and the root window.
6259- ImDrawList: AddCircle(), AddCircleFilled() API can now auto-tessellate when provided a segment
6260 count of zero. Alter tessellation quality with 'style.CircleSegmentMaxError'. [@ShironekoBen]
6261- ImDrawList: Add AddNgon(), AddNgonFilled() API with a guarantee on the explicit segment count.
6262 In the current branch they are essentially the same as AddCircle(), AddCircleFilled() but as
6263 we will rework the circle rendering functions to use textures and automatic segment count
6264 selection, those new api can fill a gap. [@ShironekoBen]
6265- Columns: ImDrawList::Channels* functions now work inside columns. Added extra comments to
6266 suggest using user-owned ImDrawListSplitter instead of ImDrawList functions. [@rokups]
6267- Misc: Added ImGuiMouseCursor_NotAllowed enum so it can be used by more shared widgets. [@rokups]
6268- Misc: Added IMGUI_DISABLE compile-time definition to make all headers and sources empty.
6269- Misc: Disable format checks when using stb_printf, to allow using extra formats.
6270 Made IMGUI_USE_STB_SPRINTF a properly documented imconfig.h flag. (#2954) [@loicmolinari]
6271- Misc: Added misc/single_file/imgui_single_file.h, We use this to validate compiling all *.cpp
6272 files in a same compilation unit. Actual users of that technique (also called "Unity builds")
6273 can generally provide this themselves, so we don't really recommend you use this. [@rokups]
6274- CI: Added PVS-Studio static analysis on the continuous-integration server. [@rokups]
6275- Backends: GLFW, SDL, Win32, OSX, Allegro: Added support for ImGuiMouseCursor_NotAllowed. [@rokups]
6276- Backends: GLFW: Added support for the missing mouse cursors newly added in GLFW 3.4+. [@rokups]
6277- Backends: SDL: Wayland: use SDL_GetMouseState (because there is no global mouse state available
6278 on Wayland). (#2800, #2802) [@NeroBurner]
6279- Backends: GLFW, SDL: report Windows key (io.KeySuper) as always released. Neither GLFW nor SDL can
6280 correctly report the key release in every cases (e.g. when using Win+V) causing problems with some
6281 widgets. The next release of GLFW (3.4+) will have a fix for it. However since it is both difficult
6282 and discouraged to make use of this key for Windows application anyway, we just hide it. (#2976)
6283- Backends: Win32: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD to disable all
6284 XInput using code, and IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT to disable linking with XInput,
6285 the later may be problematic if compiling with recent Windows SDK and you want your app to run
6286 on Windows 7. You can instead try linking with Xinput9_1_0.lib instead. (#2716)
6287- Backends: Glut: Improved FreeGLUT support for MinGW. (#3004) [@podsvirov]
6288- Backends: Emscripten: Avoid forcefully setting IMGUI_DISABLE_FILE_FUNCTIONS. (#3005) [@podsvirov]
6289- Examples: OpenGL: Explicitly adding -DIMGUI_IMPL_OPENGL_LOADER_GL3W to Makefile to match linking
6290 settings (otherwise if another loader such as Glew is accessible, the OpenGL3 backend might
6291 automatically use it). (#2919, #2798)
6292- Examples: OpenGL: Added support for glbinding OpenGL loader. (#2870) [@rokups]
6293- Examples: Emscripten: Demonstrating embedding fonts in Makefile and code. (#2953) [@Oipo]
6294- Examples: Metal: Wrapped main loop in @autoreleasepool block to ensure allocations get freed
6295 even if underlying system event loop gets paused due to app nap. (#2910, #2917) [@bear24rw]
6296
6297Docking+Viewports Branch:
6298
6299- Docking + Nav: Fixed messed up Ctrl+Tab order with docked windows.
6300- Docking + Nav: Fixed failing to restore NavId when refocusing a child within a docked window.
6301- Docking + Nav: Fixed failing to restore NavId when refocusing due to missing nav window (when
6302 it stops being submitted).
6303- Docking: Fixed a bug where the tab bar of a hidden dockspace would keep requesting focus. (#2960)
6304- Docking: Added experimental DockNodeFlagsOverrideSet/DockNodeFlagsOverrideClear flags in ImGuiWindowClass
6305 (currently experimenting with toolbar idioms).
6306- Viewports: Fix resizing viewport-owning windows when mouse pos is outside the InnerClipRect
6307 (can happen with OS decoration enabled).
6308- Viewports: Preserve last known size for minimized main viewport to be consistent with secondary viewports.
6309- Backends: SDL: Honor NoTaskBarIcon flag under non Win32 OS. (#2117)
6310- Backends: GLFW, SDL: Platform monitors declared properly even if multi-viewport is not enabled.
6311
6312
6313-----------------------------------------------------------------------
6314 VERSION 1.74 (Released 2019-11-25)
6315-----------------------------------------------------------------------
6316
6317Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.74
6318
6319Breaking Changes:
6320
6321- Removed redirecting functions/enums names that were marked obsolete in 1.52 (October 2017):
6322 - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed
6323 - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows)
6324 - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding()
6325 - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f)
6326 - ImFont::Glyph -> use ImFontGlyph
6327 If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out
6328 the new names or equivalent features, or see how they were implemented until 1.73.
6329- Inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used
6330 by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function.
6331 If you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can
6332 add +io.KeyRepeatDelay to it to compensate for the fix.
6333 The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0).
6334 Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay).
6335 Fixed the code and altered default io.KeyRepeatRate,Delay from 0.250,0.050 to 0.300,0.050 to compensate.
6336 If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you.
6337- Misc: Renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS. (#1038)
6338- Misc: Renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS.
6339- Fonts: ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to
6340 conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert.
6341- Backends: DX12: Added extra ID3D12DescriptorHeap parameter to ImGui_ImplDX12_Init() function.
6342 The value is unused in master branch but will be used by the multi-viewport feature. (#2851) [@obfuscate]
6343
6344Other Changes:
6345
6346- InputText, Nav: Fixed Home/End key broken when activating Keyboard Navigation. (#787)
6347- InputText: Filter out ASCII 127 (DEL) emitted by low-level OSX layer, as we are using the Key value. (#2578)
6348- Layout: Fixed a couple of subtle bounding box vertical positioning issues relating to the handling of text
6349 baseline alignment. The issue would generally manifest when laying out multiple items on a same line,
6350 with varying heights and text baseline offsets.
6351 Some specific examples, e.g. a button with regular frame padding followed by another item with a
6352 multi-line label and no frame padding, such as: multi-line text, small button, tree node item, etc.
6353 The second item was correctly offset to match text baseline, and would interact/display correctly,
6354 but it wouldn't push the contents area boundary low enough.
6355- Scrollbar: Fixed an issue where scrollbars wouldn't display on the frame following a frame where
6356 all child window contents would be culled.
6357- ColorPicker: Fixed SV triangle gradient to block (broken in 1.73). (#2864, #2711). [@lewa-j]
6358- TreeNode: Fixed combination of ImGuiTreeNodeFlags_SpanFullWidth and ImGuiTreeNodeFlags_OpenOnArrow
6359 incorrectly locating the arrow hit position to the left of the frame. (#2451, #2438, #1897)
6360- TreeNode: The collapsing arrow accepts click even if modifier keys are being held, facilitating
6361 interactions with custom multi-selections patterns. (#2886, #1896, #1861)
6362- TreeNode: Added IsItemToggledOpen() to explicitly query if item was just open/closed, facilitating
6363 interactions with custom multi-selections patterns. (#1896, #1861)
6364- DragScalar, SliderScalar, InputScalar: Added p_ prefix to parameter that are pointers to the data
6365 to clarify how they are used, and more comments redirecting to the demo code. (#2844)
6366- Error handling: Assert if user mistakenly calls End() instead of EndChild() on a child window. (#1651)
6367- Misc: Optimized storage of window settings data (reducing allocation count).
6368- Misc: Windows: Do not use _wfopen() if IMGUI_DISABLE_WIN32_FUNCTIONS is defined. (#2815)
6369- Misc: Windows: Disabled win32 function by default when building with UWP. (#2892, #2895)
6370- Misc: Using static_assert() when using C++11, instead of our own construct (avoid zealous Clang warnings).
6371- Misc: Added IMGUI_DISABLE_FILE_FUNCTIONS/IMGUI_DISABLE_DEFAULT_FILE_FUNCTION to nullify or disable
6372 default implementation of ImFileXXX functions linking with fopen/fclose/fread/fwrite. (#2734)
6373- Docs: Improved and moved FAQ to docs/FAQ.md so it can be readable on the web. [@ButternCream, @ocornut]
6374- Docs: Moved misc/fonts/README.txt to docs/FONTS.txt.
6375- Docs: Added permanent redirect from https://www.dearimgui.com/faq to FAQ page.
6376- Demo: Added simple item reordering demo in Widgets -> Drag and Drop section. (#2823, #143) [@rokups]
6377- Metrics: Show wire-frame mesh and approximate surface area when hovering ImDrawCmd. [@ShironekoBen]
6378- Metrics: Expose basic details of each window key/value state storage.
6379- Examples: DX12: Using IDXGIDebug1::ReportLiveObjects() when DX12_ENABLE_DEBUG_LAYER is enabled.
6380- Examples: Emscripten: Removed BINARYEN_TRAP_MODE=clamp from Makefile which was removed in Emscripten 1.39.0
6381 but required prior to 1.39.0, making life easier for absolutely no-one. (#2877, #2878) [@podsvirov]
6382- Backends: OpenGL2: Explicitly backup, setup and restore GL_TEXTURE_ENV to increase compatibility with
6383 legacy OpenGL applications. (#3000)
6384- Backends: OpenGL3: Fix building with pre-3.2 GL loaders which do not expose glDrawElementsBaseVertex(),
6385 using runtime GL version to decide if we set ImGuiBackendFlags_RendererHasVtxOffset. (#2866, #2852) [@dpilawa]
6386- Backends: OSX: Fix using Backspace key. (#2578, #2817, #2818) [@DiligentGraphics]
6387- Backends: GLFW: Previously installed user callbacks are now restored on shutdown. (#2836) [@malte-v]
6388- CI: Set up a bunch of continuous-integration tests using GitHub Actions. We now compile many of the example
6389 applications on Windows, Linux, MacOS, iOS, Emscripten. Removed Travis integration. (#2865) [@rokups]
6390
6391Docking+Viewports Branch:
6392
6393- Docking: Can undock from the small triangle button. (#2109,. #2645)
6394- Docking: Fixed node->HasCloseButton not honoring ImGuiDockNodeFlags_NoCloseButton in a floating node,
6395 leading to empty space at the right of tab-bars with those flags. (#2109)
6396- Docking: Made docked windows not use style.ChildRounding.
6397- Multi-viewports: Added multi-viewport support in the DX12 back-end. (#2851) [@obfuscate]
6398
6399
6400-----------------------------------------------------------------------
6401 VERSION 1.73 (Released 2019-09-24)
6402-----------------------------------------------------------------------
6403
6404Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.73
6405
6406Other Changes:
6407
6408- Nav, Scrolling: Added support for Home/End key. (#787)
6409- ColorEdit: Disable Hue edit when Saturation==0 instead of letting Hue values jump around.
6410- ColorEdit, ColorPicker: In HSV display of a RGB stored value, attempt to locally preserve Hue
6411 when Saturation==0, which reduces accidentally lossy interactions. (#2722, #2770) [@rokups]
6412- ColorPicker: Made rendering aware of global style alpha of the picker can be faded out. (#2711)
6413 Note that some elements won't accurately fade down with the same intensity, and the color wheel
6414 when enabled will have small overlap glitches with (style.Alpha < 1.0).
6415- Tabs: Fixed single-tab not shrinking their width down.
6416- Tabs: Fixed clicking on a tab larger than tab-bar width creating a bouncing feedback loop.
6417- Tabs: Feed desired width (sum of unclipped tabs width) into layout system to allow for auto-resize. (#2768)
6418 (before 1.71 tab bars fed the sum of current width which created feedback loops in certain situations).
6419- Tabs: Improved shrinking for large number of tabs to avoid leaving extraneous space on the right side.
6420 Individuals tabs are given integer-rounded width and remainder is spread between tabs left-to-right.
6421- Columns, Separator: Fixed a bug where non-visible separators within columns would alter the next row position
6422 differently than visible ones.
6423- SliderScalar: Improved assert when using U32 or U64 types with a large v_max value. (#2765) [@loicmouton]
6424- DragInt, DragFloat, DragScalar: Using (v_min > v_max) allows locking any edits to the value.
6425- DragScalar: Fixed dragging of unsigned values on ARM cpu (float to uint cast is undefined). (#2780) [@dBagrat]
6426- TreeNode: Added ImGuiTreeNodeFlags_SpanAvailWidth flag. (#2451, #2438, #1897) [@Melix19, @PathogenDavid]
6427 This extends the hit-box to the right-most edge, even if the node is not framed.
6428 (Note: this is not the default in order to allow adding other items on the same line. In the future we will
6429 aim toward refactoring the hit-system to be front-to-back, allowing more natural overlapping of items,
6430 and then we will be able to make this the default.)
6431- TreeNode: Added ImGuiTreeNodeFlags_SpanFullWidth flag. This extends the hit-box to both the left-most and
6432 right-most edge of the working area, bypassing indentation.
6433- CollapsingHeader: Added support for ImGuiTreeNodeFlags_Bullet and ImGuiTreeNodeFlags_Leaf on framed nodes,
6434 mostly for consistency. (#2159, #2160) [@goran-w]
6435- Selectable: Added ImGuiSelectableFlags_AllowItemOverlap flag in public api (was previously internal only).
6436- Style: Allow style.WindowMenuButtonPosition to be set to ImGuiDir_None to hide the collapse button. (#2634, #2639)
6437- Font: Better ellipsis ("...") drawing implementation. Instead of drawing three pixely dots (which was glaringly
6438 unfitting with many types of fonts) we first attempt to find a standard ellipsis glyphs within the loaded set.
6439 Otherwise we render ellipsis using '.' from the font from where we trim excessive spacing to make it as narrow
6440 as possible. (#2775) [@rokups]
6441- ImDrawList: Clarified the name of many parameters so reading the code is a little easier. (#2740)
6442- ImDrawListSplitter: Fixed merging channels if the last submitted draw command used a different texture. (#2506)
6443- Using offsetof() when available in C++11. Avoids Clang sanitizer complaining about old-style macros. (#94)
6444- ImVector: Added find(), find_erase(), find_erase_unsorted() helpers.
6445- Added a mechanism to compact/free the larger allocations of unused windows (buffers are compacted when
6446 a window is unused for 60 seconds, as per io.ConfigWindowsMemoryCompactTimer = 60.0f). Note that memory
6447 usage has never been reported as a problem, so this is merely a touch of overzealous luxury. (#2636)
6448- Documentation: Various tweaks and improvements to the README page. [@ker0chan]
6449- Backends: OpenGL3: Tweaked initialization code allow application calling ImGui_ImplOpenGL3_CreateFontsTexture()
6450 before ImGui_ImplOpenGL3_NewFrame(), which sometimes can be convenient.
6451- Backends: OpenGL3: Attempt to automatically detect default GL loader by using __has_include. (#2798) [@o-micron]
6452- Backends: DX11: Fixed GSGetShader() call not passing an initialized instance count, which would
6453 generally make the DX11 debug layer complain (bug added in 1.72).
6454- Backends: Vulkan: Added support for specifying multisample count. Set 'ImGui_ImplVulkan_InitInfo::MSAASamples' to
6455 one of the VkSampleCountFlagBits values to use, default is non-multisampled as before. (#2705, #2706) [@vilya]
6456- Examples: OSX: Fix example_apple_opengl2/main.mm not forwarding mouse clicks and drags correctly. (#1961, #2710)
6457 [@intonarumori, @ElectricMagic]
6458- Misc: Updated stb_rect_pack.h from 0.99 to 1.00 (fixes by @rygorous: off-by-1 bug in best-fit heuristic,
6459 fix handling of rectangles too large to fit inside texture). (#2762) [@tido64]
6460
6461Docking+Viewports Branch:
6462
6463- Docking: Fix BeginDocked() path that creates node so that SetNextWindowDockID() doesn't immediately discard the node. (#2109)
6464- Docking: Fix for node created at the same time as windows that are still resizing (typically with
6465 io.ConfigDockingAlwaysTabBar) to not be zero/min sized. (#2109). The fix delays their visibility by one frame,
6466 which is not ideal but not very problematic as the .ini data gets populated after that.
6467- Docking: Fix a crash that could occur with a malformed ini file (DockNode Parent value pointing to a missing node).
6468- Viewport: Fix modal/popup window being stuck in unowned hidden viewport associated to fallback window without stealing
6469 it back. Fix modal reference viewport when opened outside of another window. (#1542)
6470- Viewport: Modals don't need to set ImGuiViewportFlags_NoFocusOnClick, this also mitigate the issue described by #2445,
6471 which becomes particularly bad with unfocused modal. (#1542)
6472- Viewport: better case case where host window gets moved and resized simultaneous (toggling maximized state).
6473 There's no perfect solution there, than using io.ConfigViewportsNoAutoMerge = false. (#1542)
6474- Viewport, Docking: Fixed incorrect assignment of IsFallbackWindow which would tag dock node host windows created
6475 in NewFrame() as such, messing with popup viewport inheritance.
6476- Viewport: Fixed issue where resize grip would display as hovered while mouse is still off the OS bounds so a click
6477 would miss it and focus the OS window behind expected one. (#1542)
6478- Viewport: Fix to allow multiple shutdown / calls to DestroyPlatformWindows(). (#2769)
6479- Viewport: Backends: GLFW: Fix setting window size on macOS (#2767, #2117) [@rokups]
6480- Viewport: Backends: GLFW+Linux: Fix window having incorrect size after uncollapse. (#2756, #2117) [@rokups]
6481- Viewport: Backends: DirectX9: Workaround for windows not refreshing when main viewport has no draw call. (#2560)
6482
6483
6484-----------------------------------------------------------------------
6485 VERSION 1.72b (Released 2019-07-31)
6486-----------------------------------------------------------------------
6487
6488Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.72b
6489
6490Other Changes:
6491
6492- Nav, Scrolling: Fixed programmatic scroll leading to a slightly incorrect scroll offset when
6493 the window has decorations or a menu-bar (broken in 1.71). This was mostly noticeable when
6494 a keyboard/gamepad movement led to scrolling the view, or using e.g. SetScrollHereY() function.
6495- Nav: Made hovering non-MenuItem Selectable not re-assign the source item for keyboard navigation.
6496- Nav: Fixed an issue with NavFlattened window flag (beta) where widgets not entirely fitting
6497 in child window (often selectables because of their protruding sides) would be not considered
6498 as entry points to to navigate toward the child window. (#787)
6499
6500
6501-----------------------------------------------------------------------
6502 VERSION 1.72 (Released 2019-07-27)
6503-----------------------------------------------------------------------
6504
6505Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.72
6506
6507Breaking Changes:
6508
6509- Removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017):
6510 - ImGuiCol_Column*, ImGuiSetCond_* enums.
6511 - IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow() functions.
6512 - IMGUI_ONCE_UPON_A_FRAME macro.
6513 If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out
6514 the new names or equivalent features.
6515- Renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete).
6516- Removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()).
6517 Kept redirection function (will obsolete). (#581, #324)
6518
6519Other Changes:
6520
6521- Scrolling: Made mouse-wheel scrolling lock the underlying window until the mouse is moved again or
6522 until a short delay expires (~2 seconds). This allow uninterrupted scroll even if child windows are
6523 passing under the mouse cursor. (#2604)
6524- Scrolling: Made it possible for mouse wheel and navigation-triggered scrolling to override a call to
6525 SetScrollX()/SetScrollY(), making it possible to use a simpler stateless pattern for auto-scrolling:
6526 // (Submit items..)
6527 if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) // If scrolling at the already at the bottom..
6528 ImGui::SetScrollHereY(1.0f); // ..make last item fully visible
6529- Scrolling: Added SetScrollHereX(), SetScrollFromPosX() for completeness. (#1580) [@kevreco]
6530- Scrolling: Mouse wheel scrolling while hovering a child window is automatically forwarded to parent window
6531 if ScrollMax is zero on the scrolling axis.
6532 Also still the case if ImGuiWindowFlags_NoScrollWithMouse is set (not new), but previously the forwarding
6533 would be disabled if ImGuiWindowFlags_NoScrollbar was set on the child window, which is not the case
6534 any more. Forwarding can still be disabled by setting ImGuiWindowFlags_NoInputs. (amend #1502, #1380).
6535- Window: Fixed InnerClipRect right-most coordinates using wrong padding setting (introduced in 1.71).
6536- Window: Fixed old SetWindowFontScale() api value from not being inherited by child window. Added
6537 comments about the right way to scale your UI (load a font at the right side, rebuild atlas, scale style).
6538- Scrollbar: Avoid overlapping the opposite side when window (often a child window) is forcibly too small.
6539- Combo: Hide arrow when there's not enough space even for the square button.
6540- InputText: Testing for newly added ImGuiKey_KeyPadEnter key. (#2677, #2005) [@amc522]
6541- Tabs: Fixed unfocused tab bar separator color (was using ImGuiCol_Tab, should use ImGuiCol_TabUnfocusedActive).
6542- Columns: Fixed a regression from 1.71 where the right-side of the contents rectangle within each column
6543 would wrongly use a WindowPadding.x instead of ItemSpacing.x like it always did. (#125, #2666)
6544- Columns: Made the right-most edge reaches up to the clipping rectangle (removing half of WindowPadding.x
6545 worth of asymmetrical/extraneous padding, note that there's another half that conservatively has to offset
6546 the right-most column, otherwise it's clipping width won't match the other columns). (#125, #2666)
6547- Columns: Improved honoring alignment with various values of ItemSpacing.x and WindowPadding.x. (#125, #2666)
6548- Columns: Made GetColumnOffset() and GetColumnWidth() behave when there's no column set, consistently with
6549 other column functions. (#2683)
6550- InputTextMultiline: Fixed vertical scrolling tracking glitch.
6551- Word-wrapping: Fixed overzealous word-wrapping when glyph edge lands exactly on the limit. Because
6552 of this, auto-fitting exactly unwrapped text would make it wrap. (fixes initial 1.15 commit, 78645a7d).
6553- Style: Attenuated default opacity of ImGuiCol_Separator in Classic and Light styles.
6554- Style: Added style.ColorButtonPosition (left/right, defaults to ImGuiDir_Right) to move the color button
6555 of ColorEdit3/ColorEdit4 functions to either side of the inputs.
6556- IO: Added ImGuiKey_KeyPadEnter and support in various backends (previously backends would need to
6557 specifically redirect key-pad keys to their regular counterpart). This is a temporary attenuating measure
6558 until we actually refactor and add whole sets of keys into the ImGuiKey enum. (#2677, #2005) [@amc522]
6559- Misc: Made Button(), ColorButton() not trigger an "edited" event leading to IsItemDeactivatedAfterEdit()
6560 returning true. This also effectively make ColorEdit4() not incorrect trigger IsItemDeactivatedAfterEdit()
6561 when clicking the color button to open the picker popup. (#1875)
6562- Misc: Added IMGUI_DISABLE_METRICS_WINDOW imconfig.h setting to explicitly compile out ShowMetricsWindow().
6563- Debug Tools: Added "Metrics->Tools->Item Picker" tool which allow clicking on a widget to break in the
6564 debugger within the item code. The tool calls IM_DEBUG_BREAK() which can be redefined in imconfig.h.
6565- ImDrawList: Fixed CloneOutput() helper crashing. (#1860) [@gviot]
6566- ImDrawList::ChannelsSplit(), ImDrawListSplitter: Fixed an issue with merging draw commands between
6567 channel 0 and 1. (#2624)
6568- ImDrawListSplitter: Fixed memory leak when using low-level split api (was not affecting ImDrawList api,
6569 also this type was added in 1.71 and not advertised as a public-facing feature).
6570- Fonts: binary_to_compressed_c.cpp: Display an error message if failing to open/read the input font file.
6571- Demo: Log, Console: Using a simpler stateless pattern for auto-scrolling.
6572- Demo: Widgets: Showing how to use the format parameter of Slider/Drag functions to display the name
6573 of an enum value instead of the underlying integer value.
6574- Demo: Renamed the "Help" menu to "Tools" (more accurate).
6575- Backends: DX10/DX11: Backup, clear and restore Geometry Shader is any is bound when calling renderer.
6576- Backends: DX11: Clear Hull Shader, Domain Shader, Compute Shader before rendering. Not backing/restoring them.
6577- Backends: OSX: Disabled default native Mac clipboard copy/paste implementation in core library (added in 1.71),
6578 because it needs application to be linked with '-framework ApplicationServices'. It can be explicitly
6579 enabled back by using '#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS' in imconfig.h. Re-added
6580 equivalent using NSPasteboard api in the imgui_impl_osx.mm experimental backend. (#2546)
6581- Backends: SDL2: Added ImGui_ImplSDL2_InitForD3D() function to make D3D support more visible.
6582 (#2482, #2632) [@josiahmanson]
6583- Examples: Added SDL2+DirectX11 example application. (#2632, #2612, #2482) [@vincenthamm]
6584
6585Docking+Viewports Branch:
6586
6587- Docking: Making it possible to undock a node by clicking on the tab bar / title bar for the node. (#2645).
6588- Docking: Explicitly inhibit constraint when docked for now. Fix clipping issue related to constraints. (#2690).
6589- Docking: Fixed dragging/resizing from OS decoration not marking settings as dirty.
6590- Docking: Renamed io.ConfigDockingTabBarOnSingleWindows to io.ConfigDockingAlwaysTabBar.
6591 Added ImGuiWindowClass::DockingAlwaysTabBar to set on individual windows.
6592- Docking: Perform simple check: assert if Docking or Viewport are enabled exactly on frame 1 (instead of frame 0
6593 or later), which is a common user error leading to loss of .ini data on load.
6594- Docking: Fix so that an appearing window making a dock node reappear won't have a zero-size on its first frame.
6595- Docking: Fixed using ImGuiDockNodeFlags_AutoHideTabBar with io.ConfigDockingTabBarOnSingleWindows.
6596- Docking: Added ImGuiDockNode to .natvis file.
6597- Docking: Fixed support for large meshes in GetBackgroundDrawList(), GetForegroundDrawList(). (#2638)
6598- Viewport: Fix monitor dpi info not being copied to main viewport when multi-viewports are not enabled. (#2621, #1676)
6599- Viewport: Refactored ImGuiWindowClass's ViewportFlagsOverrideMask + ViewportFlagsOverrideValue into
6600 ViewportFlagsOverrideSet + ViewportFlagsOverrideClear which appears easier to grasp. (#1542)
6601- Viewport: Added ImGuiViewportFlags_NoAutoMerge to prevent merging into host viewport in a per-window basis
6602 via the ImGuiWindowClass override mechanism. (#1542)
6603
6604
6605-----------------------------------------------------------------------
6606 VERSION 1.71 (Released 2019-06-12)
6607-----------------------------------------------------------------------
6608
6609Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.71
6610
6611Breaking Changes:
6612
6613- IO: changed AddInputCharacter(unsigned short c) signature to AddInputCharacter(unsigned int c).
6614- Renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete).
6615- Window: rendering of child windows outer decorations (e.g. bg color, border, scrollbars) is now
6616 performed as part of their parent window, avoiding the creation of an extraneous draw commands.
6617 If you have overlapping child windows with decorations, and relied on their relative z-order to be
6618 mapped to submission their order, this will affect your rendering. The optimization is disabled
6619 if the parent window has no visual output because it appears to be the most common situation leading
6620 to the creation of overlapping child windows. Please reach out if you are affected by this change!
6621
6622Other Changes:
6623
6624- Window: clarified behavior of SetNextWindowContentSize(). Content size is defined as the size available
6625 after removal of WindowPadding on each sides. So SetNextWindowContentSize(ImVec2(100,100)) + auto-resize
6626 will always allow submitting a 100x100 item without creating a scrollbar, regarding of WindowPadding.
6627 The exact meaning of ContentSize for decorated windows was previously ill-defined.
6628- Window: Fixed auto-resize with AlwaysVerticalScrollbar or AlwaysHorizontalScrollbar flags.
6629- Window: Fixed one case where auto-resize by double-clicking the resize grip would make either scrollbar
6630 appear for a single frame after the resize.
6631- Separator: Revert 1.70 "Declare its thickness (1.0f) to the layout" change. It's not incorrect
6632 but it breaks existing some layout patterns. Will return back to it when we expose Separator flags.
6633- Fixed InputScalar, InputScalarN, SliderScalarN, DragScalarN with non-visible label from inserting
6634 style.ItemInnerSpacing.x worth of trailing spacing.
6635- Fixed InputFloatX, SliderFloatX, DragFloatX functions erroneously reporting IsItemEdited() multiple
6636 times when the text input doesn't match the formatted output value (e.g. input "1" shows "1.000").
6637 It wasn't much of a problem because we typically use the return value instead of IsItemEdited() here.
6638- Fixed uses of IsItemDeactivated(), IsItemDeactivatedAfterEdit() on multi-components widgets and
6639 after EndGroup(). (#2550, #1875)
6640- Fixed crash when appending with BeginMainMenuBar() more than once and no other window are showing. (#2567)
6641- ColorEdit: Fixed the color picker popup only displaying inputs as HSV instead of showing multiple
6642 options. (#2587, broken in 1.69 by #2384).
6643- CollapsingHeader: Better clipping when a close button is enabled and it overlaps the label. (#600)
6644- Scrollbar: Minor bounding box adjustment to cope with various border size.
6645- Scrollbar, Style: Changed default style.ScrollbarSize from 16 to 14.
6646- Combo: Fixed rounding not applying with the ImGuiComboFlags_NoArrowButton flag. (#2607) [@DucaRii]
6647- Nav: Fixed gamepad/keyboard moving of window affecting contents size incorrectly, sometimes leading
6648 to scrollbars appearing during the movement.
6649- Nav: Fixed rare crash when e.g. releasing Alt-key while focusing a window with a menu at the same
6650 frame as clearing the focus. This was in most noticeable in backends such as Glfw and SDL which
6651 emits key release events when focusing another viewport, leading to Alt+clicking on void on another
6652 viewport triggering the issue. (#2609)
6653- TreeNode, CollapsingHeader: Fixed highlight frame not covering horizontal area fully when using
6654 horizontal scrolling. (#2211, #2579)
6655- Tabs: Fixed BeginTabBar() within a window with horizontal scrolling from creating a feedback
6656 loop with the horizontal contents size.
6657- Columns: Fixed Columns() within a window with horizontal scrolling from not covering the full
6658 horizontal area (previously only worked with an explicit contents size). (#125)
6659- Columns: Fixed Separator from creating an extraneous draw command. (#125)
6660- Columns: Fixed Selectable with SpanAllColumns flag from creating an extraneous draw command. (#125)
6661- Style: Added style.WindowMenuButtonPosition (left/right, defaults to ImGuiDir_Left) to move the
6662 collapsing/docking button to the other side of the title bar.
6663- Style: Made window close button cross slightly smaller.
6664- Log/Capture: Fixed BeginTabItem() label not being included in a text log/capture.
6665- ImDrawList: Added ImDrawCmd::VtxOffset value to support large meshes (64k+ vertices) using 16-bit indices.
6666 The renderer backend needs to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' to enable
6667 this, and honor the ImDrawCmd::VtxOffset field. Otherwise the value will always be zero. (#2591)
6668 This has the advantage of preserving smaller index buffers and allowing to execute on hardware that do not
6669 support 32-bit indices. Most examples backends have been modified to support the VtxOffset field.
6670- ImDrawList: Added ImDrawCmd::IdxOffset value, equivalent to summing element count for each draw command.
6671 This is provided for convenience and consistency with VtxOffset. (#2591)
6672- ImDrawCallback: Allow to override the signature of ImDrawCallback by #define-ing it. This is meant to
6673 facilitate custom rendering backends passing local render-specific data to the draw callback.
6674- ImFontAtlas: FreeType: Added RasterizerFlags::Monochrome flag to disable font anti-aliasing. Combine
6675 with RasterizerFlags::MonoHinting for best results. (#2545) [@HolyBlackCat]
6676- ImFontGlyphRangesBuilder: Fixed unnecessarily over-sized buffer, which incidentally was also not
6677 fully cleared. Fixed edge-case overflow when adding character 0xFFFF. (#2568). [@NIKE3500]
6678- Demo: Added full "Dear ImGui" prefix to the title of "Dear ImGui Demo" and "Dear ImGui Metrics" windows.
6679- Backends: Add native Mac clipboard copy/paste default implementation in core library to match what we are
6680 dealing with Win32, and to facilitate integration in custom engines. (#2546) [@andrewwillmott]
6681- Backends: OSX: imgui_impl_osx: Added mouse cursor support. (#2585, #1873) [@actboy168]
6682- Examples/Backends: DirectX9/10/11/12, Metal, Vulkan, OpenGL3 (Desktop GL only): Added support for large meshes
6683 (64k+ vertices) with 16-bit indices, enable 'ImGuiBackendFlags_RendererHasVtxOffset' in those backends. (#2591)
6684- Examples/Backends: Don't filter characters under 0x10000 before calling io.AddInputCharacter(),
6685 the filtering is done in io.AddInputCharacter() itself. This is in prevision for fuller Unicode
6686 support. (#2538, #2541)
6687
6688
6689-----------------------------------------------------------------------
6690 VERSION 1.70 (Released 2019-05-06)
6691-----------------------------------------------------------------------
6692
6693Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.70
6694
6695Breaking Changes:
6696
6697- ImDrawList: Improved algorithm for mitre joints on thick lines, preserving correct thickness
6698 up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines,
6699 they will appear a little thicker now. (#2518) [@rmitton]
6700- Obsoleted GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead.
6701 Kept inline redirection function.
6702- Examples: Vulkan: Added MinImageCount/ImageCount fields in ImGui_ImplVulkan_InitInfo, required
6703 during initialization to specify the number of in-flight image requested by swap chains.
6704 (was previously a hard #define IMGUI_VK_QUEUED_FRAMES 2). (#2071, #1677) [@nathanvoglsam]
6705- Examples: Vulkan: Tidying up the demo/internals helpers (most engine/app should not rely
6706 on them but it is possible you have!).
6707
6708Other Changes:
6709
6710- ImDrawList: Added ImDrawCallback_ResetRenderState, a special ImDrawList::AddCallback() value
6711 to request the renderer backend to reset its render state. (#2037, #1639, #2452)
6712 Examples: Added support for ImDrawCallback_ResetRenderState in all renderer backends. Each
6713 renderer code setting up initial render state has been moved to a function so it could be
6714 called at the start of rendering and when a ResetRenderState is requested. [@ocornut, @bear24rw]
6715- InputText: Fixed selection background rendering one frame after the cursor movement when
6716 first transitioning from no-selection to has-selection. (Bug in 1.69) (#2436) [@Nazg-Gul]
6717- InputText: Work-around for buggy standard libraries where isprint('\t') returns true. (#2467, #1336)
6718- InputText: Fixed ImGuiInputTextFlags_AllowTabInput leading to two tabs characters being inserted
6719 if the backend provided both Key and Character input. (#2467, #1336)
6720- Layout: Added SetNextItemWidth() helper to avoid using PushItemWidth/PopItemWidth() for single items.
6721 Note that SetNextItemWidth() currently only affect the same subset of items as PushItemWidth(),
6722 generally referred to as the large framed+labeled items. Because the new SetNextItemWidth()
6723 function is explicit we may later extend its effect to more items.
6724- Layout: Fixed PushItemWidth(-width) for right-side alignment laying out some items (button, listbox, etc.)
6725 with negative sizes if the 'width' argument was smaller than the available width at the time of item
6726 submission.
6727- Window: Fixed window with the AlwaysAutoResize flag unnecessarily extending their hovering boundaries
6728 by a few pixels (this is used to facilitate resizing from borders when available for a given window).
6729 One of the noticeable minor side effect was that navigating menus would have had a tendency to disable
6730 highlight from parent menu items earlier than necessary while approaching the child menu.
6731- Window: Close button is horizontally aligned with style.FramePadding.x.
6732- Window: Fixed contents region being off by WindowBorderSize amount on the right when scrollbar is active.
6733- Window: Fixed SetNextWindowSizeConstraints() with non-rounded positions making windows drift. (#2067, #2530)
6734- Popups: Closing a popup restores the focused/nav window in place at the time of the popup opening,
6735 instead of restoring the window that was in the window stack at the time of the OpenPopup call. (#2517)
6736 Among other things, this allows opening a popup while no window are focused, and pressing Escape to
6737 clear the focus again.
6738- Popups: Fixed right-click from closing all popups instead of aiming at the hovered popup level
6739 (regression in 1.67).
6740- Selectable: With ImGuiSelectableFlags_AllowDoubleClick doesn't return true on the mouse button release
6741 following the double-click. Only first mouse release + second mouse down (double-click) returns true.
6742 Likewise for internal ButtonBehavior() with both _PressedOnClickRelease | _PressedOnDoubleClick. (#2503)
6743- GetMouseDragDelta(): also returns the delta on the mouse button released frame. (#2419)
6744- GetMouseDragDelta(): verify that mouse positions are valid otherwise returns zero.
6745- Inputs: Also add support for horizontal scroll with Shift+Mouse Wheel. (#2424, #1463) [@LucaRood]
6746- PlotLines, PlotHistogram: Ignore NaN values when calculating min/max bounds. (#2485)
6747- Columns: Fixed boundary of clipping being off by 1 pixel within the left column. (#125)
6748- Separator: Declare its thickness (1.0f) to the layout, making items around separator more symmetrical.
6749- Combo, Slider, Scrollbar: Improve rendering in situation when there's only a few pixels available (<3 pixels).
6750- Nav: Fixed Drag/Slider functions going into text input mode when keyboard CTRL is held while pressing NavActivate.
6751- Drag and Drop: Fixed drag source with ImGuiDragDropFlags_SourceAllowNullID and null ID from receiving click
6752 regardless of being covered by another window (it didn't honor correct hovering rules). (#2521)
6753- ImDrawList: Improved algorithm for mitre joints on thick lines, preserving correct thickness up to 90 degrees
6754 angles, also faster to output. (#2518) [@rmitton]
6755- Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert
6756 to using the ImGui::MemAlloc()/MemFree() calls directly.
6757- Misc: Made IMGUI_CHECKVERSION() macro also check for matching size of ImDrawIdx.
6758- Metrics: Added "Show windows rectangles" tool to visualize the different rectangles.
6759- Demo: Improved trees in columns demo.
6760- Examples: OpenGL: Added a test GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized
6761 GL function loaders early, and help users understand what they are missing. (#2421)
6762- Examples: SDL: Added support for SDL_GameController gamepads (enable with ImGuiConfigFlags_NavEnableGamepad). (#2509) [@DJLink]
6763- Examples: Emscripten: Added Emscripten+SDL+GLES2 example. (#2494, #2492, #2351, #336) [@nicolasnoble, @redblobgames]
6764- Examples: Metal: Added Glfw+Metal example. (#2527) [@bear24rw]
6765- Examples: OpenGL3: Minor tweaks + not calling glBindBuffer more than necessary in the render loop.
6766- Examples: Vulkan: Fixed in-flight buffers issues when using multi-viewports. (#2461, #2348, #2378, #2097)
6767- Examples: Vulkan: Added missing support for 32-bit indices (#define ImDrawIdx unsigned int).
6768- Examples: Vulkan: Avoid passing negative coordinates to vkCmdSetScissor, which debug validation layers do not like.
6769- Examples: Vulkan: Added ImGui_ImplVulkan_SetMinImageCount() to change min image count at runtime. (#2071) [@nathanvoglsam]
6770- Examples: DirectX9: Fixed erroneous assert in ImGui_ImplDX9_InvalidateDeviceObjects(). (#2454)
6771- Examples: DirectX10/11/12, Allegro, Marmalade: Render functions early out when display size is zero (minimized). (#2496)
6772- Examples: GLUT: Fixed existing FreeGLUT example to work with regular GLUT. (#2465) [@andrewwillmott]
6773- Examples: GLUT: Renamed imgui_impl_freeglut.cpp/.h to imgui_impl_glut.cpp/.h. (#2465) [@andrewwillmott]
6774- Examples: GLUT: Made io.DeltaTime always > 0. (#2430)
6775- Examples: Visual Studio: Updated default platform toolset+sdk in vcproj files from v100+sdk7 (vs2010)
6776 to v110+sdk8 (vs2012). This is mostly so we can remove reliance on DXSDK_DIR for the DX10/DX11 example,
6777 which if existing and when switching to recent SDK ends up conflicting and creating warnings.
6778
6779
6780-----------------------------------------------------------------------
6781 VERSION 1.69 (Released 2019-03-13)
6782-----------------------------------------------------------------------
6783
6784Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.69
6785
6786Breaking Changes:
6787
6788- Renamed ColorEdit/ColorPicker's ImGuiColorEditFlags_RGB/_HSV/_HEX flags to respectively
6789 ImGuiColorEditFlags_DisplayRGB/_DisplayHSV/_DisplayHex. This is because the addition of
6790 new flag ImGuiColorEditFlags_InputHSV makes the earlier one ambiguous.
6791 Kept redirection enum values (will obsolete). (#2384) [@haldean]
6792- Renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). (#2391)
6793
6794Other Changes:
6795
6796- Added GetBackgroundDrawList() helper to quickly get access to a ImDrawList that will be rendered
6797 behind every other windows. (#2391, #545)
6798- DragScalar, InputScalar, SliderScalar: Added support for u8/s8/u16/s16 data types (ImGuiDataType_S8, etc.)
6799 We are reusing function instances of larger types to reduce code size. (#643, #320, #708, #1011)
6800- Added InputTextWithHint() to display a description/hint in the text box when no text
6801 has been entered. (#2400) [@Organic-Code, @ocornut]
6802- Nav: Fixed a tap on AltGR (e.g. German keyboard) from navigating to the menu layer.
6803- Nav: Fixed Ctrl+Tab keeping active InputText() of a previous window active after the switch. (#2380)
6804- Fixed IsItemDeactivated()/IsItemDeactivatedAfterEdit() from not correctly returning true
6805 when tabbing out of a focusable widget (Input/Slider/Drag) in most situations. (#2215, #1875)
6806- InputInt, InputFloat, InputScalar: Fix to keep the label of the +/- buttons centered when
6807 style.FramePadding.x is abnormally larger than style.FramePadding.y. Since the buttons are
6808 meant to be square (to align with e.g. color button) we always use FramePadding.y. (#2367)
6809- InputInt, InputScalar: +/- buttons now respects the natural type limits instead of
6810 overflowing or underflowing the value.
6811- InputText: Fixed an edge case crash that would happen if another widget sharing the same ID
6812 is being swapped with an InputText that has yet to be activated.
6813- InputText: Fixed various display corruption related to swapping the underlying buffer while
6814 an input widget is active (both for writable and read-only paths). Often they would manifest
6815 when manipulating the scrollbar of a multi-line input text.
6816- ColorEdit, ColorPicker, ColorButton: Added ImGuiColorEditFlags_InputHSV to manipulate color
6817 values encoded as HSV (in order to avoid HSV<>RGB round trips and associated singularities).
6818 (#2383, #2384) [@haldean]
6819- ColorPicker: Fixed a bug/assertion when displaying a color picker in a collapsed window
6820 while dragging its title bar. (#2389)
6821- ColorEdit: Fixed tooltip not honoring the ImGuiColorEditFlags_NoAlpha contract of never
6822 reading the 4th float in the array (value was read and discarded). (#2384) [@haldean]
6823- MenuItem, Selectable: Fixed disabled widget interfering with navigation (fix c2db7f63 in 1.67).
6824- Tabs: Fixed a crash when using many BeginTabBar() recursively (didn't affect docking). (#2371)
6825- Tabs: Added extra misusage error recovery. Past the assert, common misusage don't lead to
6826 hard crashes any more, facilitating integration with scripting languages. (#1651)
6827- Tabs: Fixed ImGuiTabItemFlags_SetSelected being ignored if the tab is not visible (with
6828 scrolling policy enabled) or if is currently appearing.
6829- Tabs: Fixed Tab tooltip code making drag and drop tooltip disappear during the frame where
6830 the drag payload activate a tab.
6831- Tabs: Reworked scrolling policy (when ImGuiTabBarFlags_FittingPolicyScroll is set) to
6832 teleport the view when aiming at a tab far away the visible section, and otherwise accelerate
6833 the scrolling speed to cap the scrolling time to 0.3 seconds.
6834- Text: Fixed large Text/TextUnformatted calls not feeding their size into layout when starting
6835 below the lower point of the current clipping rectangle. This bug has been there since v1.0!
6836 It was hardly noticeable but would affect the scrolling range, which in turn would affect
6837 some scrolling request functions when called during the appearing frame of a window.
6838- Plot: Fixed divide-by-zero in PlotLines() when passing a count of 1. (#2387) [@Lectem]
6839- Log/Capture: Fixed LogXXX functions emitting extraneous leading carriage return.
6840- Log/Capture: Fixed an issue when empty string on a new line would not emit a carriage return.
6841- Log/Capture: Fixed LogXXX functions 'auto_open_depth' parameter being treated as an absolute
6842 tree depth instead of a relative one.
6843- Log/Capture: Fixed CollapsingHeader trailing ascii representation being "#" instead of "##".
6844- ImFont: Added GetGlyphRangesVietnamese() helper. (#2403)
6845- Misc: Asserting in NewFrame() if style.WindowMinSize is zero or smaller than (1.0f,1.0f).
6846- Demo: Using GetBackgroundDrawList() and GetForegroundDrawList() in "Custom Rendering" demo.
6847- Demo: InputText: Demonstrating use of ImGuiInputTextFlags_CallbackResize. (#2006, #1443, #1008).
6848- Examples: GLFW, SDL: Preserve DisplayFramebufferScale when main viewport is minimized.
6849 (This is particularly useful for the viewport branch because we are not supporting per-viewport
6850 frame-buffer scale. It fixes windows not refreshing when main viewport is minimized.) (#2416)
6851- Examples: OpenGL: Fix to be able to run on ES 2.0 / WebGL 1.0. [@rmitton, @gabrielcuvillier]
6852- Examples: OpenGL: Fix for OSX not supporting OpenGL 4.5, we don't try to read GL_CLIP_ORIGIN
6853 even if the OpenGL headers/loader happens to define the value. (#2366, #2186)
6854- Examples: Allegro: Added support for touch events (emulating mouse). (#2219) [@dos1]
6855- Examples: DirectX9: Minor changes to match the other DirectX examples more closely. (#2394)
6856
6857
6858-----------------------------------------------------------------------
6859 VERSION 1.68 (Released 2019-02-19)
6860-----------------------------------------------------------------------
6861
6862Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.68
6863
6864Breaking Changes:
6865
6866- Removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already).
6867- Made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame).
6868 If for some reason your time step calculation gives you a zero value, replace it with an arbitrarily small value!
6869
6870Other Changes:
6871
6872- Added .editorconfig file for text editors to standardize using spaces. (#2038) [@kudaba]
6873- ImDrawData: Added FramebufferScale field (currently a copy of the value from io.DisplayFramebufferScale).
6874 This is to allow render functions being written without pulling any data from ImGuiIO, allowing incoming
6875 multi-viewport feature to behave on Retina display and with multiple displays.
6876 If you are not using a custom backend, please update your render function code ahead of time,
6877 and use draw_data->FramebufferScale instead of io.DisplayFramebufferScale. (#2306, #1676)
6878- Added IsItemActivated() as an extension to the IsItemDeactivated/IsItemDeactivatedAfterEdit functions
6879 which are useful to implement variety of undo patterns. (#820, #956, #1875)
6880- InputText: Fixed a bug where ESCAPE would not restore the initial value in all situations. (#2321) [@relick]
6881- InputText: Fixed a bug where ESCAPE would be first captured by the Keyboard Navigation code. (#2321, #787)
6882- InputText: Fixed redo buffer exhaustion handling (rare) which could corrupt the undo character buffer. (#2333)
6883 The way the redo/undo buffers work would have made it generally unnoticeable to the user.
6884- Fixed range-version of PushID() and GetID() not honoring the ### operator to restart from the seed value.
6885- Fixed CloseCurrentPopup() on a child-menu of a modal incorrectly closing the modal. (#2308)
6886- Tabs: Added ImGuiTabBarFlags_TabListPopupButton flag to show a popup button on manual tab bars. (#261, #351)
6887- Tabs: Removed ImGuiTabBarFlags_NoTabListPopupButton which was available in 1.67 but actually had zero use.
6888- Tabs: Fixed a minor clipping glitch when changing style's FramePadding from frame to frame.
6889- Tabs: Fixed border (when enabled) so it is aligned correctly mid-pixel and appears as bright as other borders.
6890- Style, Selectable: Added ImGuiStyle::SelectableTextAlign and ImGuiStyleVar_SelectableTextAlign. (#2347) [@haldean]
6891- Menus: Tweaked horizontal overlap between parent and child menu (to help convey relative depth)
6892 from using style.ItemSpacing.x to style.ItemInnerSpacing.x, the later being expected to be smaller. (#1086)
6893- RadioButton: Fixed label horizontal alignment to precisely match Checkbox().
6894- Window: When resizing from an edge, the border is more visible and better follow the rounded corners.
6895- Window: Fixed initial width of collapsed windows not taking account of contents width (broken in 1.67). (#2336, #176)
6896- Scrollbar: Fade out and disable interaction when too small, in order to facilitate using the resize grab on very
6897 small window, as well as reducing visual noise/overlap.
6898- ListBox: Better optimized when clipped / non-visible.
6899- InputTextMultiline: Better optimized when clipped / non-visible.
6900- Font: Fixed high-level ImGui::CalcTextSize() used by most widgets from erroneously subtracting 1.0f*scale to
6901 calculated text width. Among noticeable side-effects, it would make sequences of repeated Text/SameLine calls
6902 not align the same as a single call, and create mismatch between high-level size calculation and those performed
6903 with the lower-level ImDrawList api. (#792) [@SlNPacifist]
6904- Font: Fixed building atlas when specifying duplicate/overlapping ranges within a same font. (#2353, #2233)
6905- ImDrawList: Fixed AddCircle(), AddCircleFilled() angle step being off, which was visible when drawing a "circle"
6906 with a small number of segments (e.g. an hexagon). (#2287) [@baktery]
6907- ImGuiTextBuffer: Added append() function (unformatted).
6908- ImFontAtlas: Added 0x2000-0x206F general punctuation range to default ChineseFull/ChineseSimplifiedCommon ranges. (#2093)
6909- ImFontAtlas: FreeType: Added support for imgui allocators + custom FreeType only SetAllocatorFunctions. (#2285) [@Vuhdo]
6910- ImFontAtlas: FreeType: Fixed using imgui_freetype.cpp in unity builds. (#2302)
6911- Demo: Fixed "Log" demo not initializing properly, leading to the first line not showing before a Clear. (#2318) [@bluescan]
6912- Demo: Added "Auto-scroll" option in Log/Console demos. (#2300) [@nicolasnoble, @ocornut]
6913- Examples: Metal, OpenGL2, OpenGL3, Vulkan: Fixed offsetting of clipping rectangle with ImDrawData::DisplayPos != (0,0)
6914 when the display frame-buffer scale scale is not (1,1). While this doesn't make a difference when using master branch,
6915 this is effectively fixing support for multi-viewport with Mac Retina Displays on those examples. (#2306) [@rasky, @ocornut]
6916 Also using ImDrawData::FramebufferScale instead of io.DisplayFramebufferScale.
6917- Examples: Clarified the use the ImDrawData::DisplayPos to offset clipping rectangles.
6918- Examples: Win32: Using GetForegroundWindow()+IsChild() instead of GetActiveWindow() to be compatible with windows created
6919 in a different thread or parent. (#1951, #2087, #2156, #2232) [many people]
6920- Examples: SDL: Using the SDL_WINDOW_ALLOW_HIGHDPI flag. (#2306, #1676) [@rasky]
6921- Examples: Win32: Added support for XInput gamepads (if ImGuiConfigFlags_NavEnableGamepad is enabled).
6922- Examples: Win32: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. (#2264)
6923- Examples: DirectX9: Explicitly disable fog (D3DRS_FOGENABLE) before drawing in case user state has it set. (#2288, #2230)
6924- Examples: OpenGL2: Added #define GL_SILENCE_DEPRECATION to cope with newer XCode warnings.
6925- Examples: OpenGL3: Using GLSL 4.10 shaders for any GLSL version over 410 (e.g. 430, 450). (#2329) [@BrutPitt]
6926
6927
6928-----------------------------------------------------------------------
6929 VERSION 1.67 (Released 2019-01-14)
6930-----------------------------------------------------------------------
6931
6932Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.67
6933
6934Breaking Changes:
6935
6936- Made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable
6937 side-effect because the window would have ID zero. In particular it is causing problems in viewport/docking branches.
6938- Renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges and removed its [Beta] mark.
6939 The addition of new configuration options in the Docking branch is pushing for a little reorganization of those names.
6940- Renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete).
6941
6942Other Changes:
6943
6944- Added BETA api for Tab Bar/Tabs widgets: (#261, #351)
6945 - Added BeginTabBar(), EndTabBar(), BeginTabItem(), EndTabItem(), SetTabItemClosed() API.
6946 - Added ImGuiTabBarFlags flags for BeginTabBar().
6947 - Added ImGuiTabItemFlags flags for BeginTabItem().
6948 - Style: Added ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive colors.
6949 - Demo: Added Layout->Tabs demo code.
6950 - Demo: Added "Documents" example app showcasing possible use for tabs.
6951 This feature was merged from the Docking branch in order to allow the use of regular tabs in your code.
6952 (It does not provide the docking/splitting/merging of windows available in the Docking branch)
6953- Added ImGuiWindowFlags_UnsavedDocument window flag to append '*' to title without altering the ID, as a convenience
6954 to avoid using the ### operator. In the Docking branch this also has an effect on tab closing behavior.
6955- Window, Focus, Popup: Fixed an issue where closing a popup by clicking another window with the _NoMove flag would refocus
6956 the parent window of the popup instead of the newly clicked window.
6957- Window: Contents size is preserved while a window collapsed. Fix auto-resizing window losing their size for one frame when uncollapsed.
6958- Window: Contents size is preserved while a window contents is hidden (unless it is hidden for resizing purpose).
6959- Window: Resizing windows from edge is now enabled by default (io.ConfigWindowsResizeFromEdges=true). Note that
6960 it only works _if_ the backend sets ImGuiBackendFlags_HasMouseCursors, which the standard backends do.
6961- Window: Added io.ConfigWindowsMoveFromTitleBarOnly option. This is ignored by window with no title bars (often popups).
6962 This affects clamping window within the visible area: with this option enabled title bars need to be visible. (#899)
6963- Window: Fixed using SetNextWindowPos() on a child window (which wasn't really documented) position the cursor as expected
6964 in the parent window, so there is no mismatch between the layout in parent and the position of the child window.
6965- InputFloat: When using ImGuiInputTextFlags_ReadOnly the step buttons are disabled. (#2257)
6966- DragFloat: Fixed broken mouse direction change with power!=1.0. (#2174, #2206) [@Joshhua5]
6967- Nav: Fixed a keyboard issue where holding Activate/Space for longer than two frames on a button would unnecessary
6968 keep the focus on the parent window, which could steal it from newly appearing windows. (#787)
6969- Nav: Fixed animated window titles from being updated when displayed in the CTRL+Tab list. (#787)
6970- Error recovery: Extraneous/undesired calls to End() are now being caught by an assert in the End() function closer
6971 to the user call site (instead of being reported in EndFrame). Past the assert, they don't lead to crashes any more. (#1651)
6972 Missing calls to End(), past the assert, should not lead to crashes or to the fallback Debug window appearing on screen.
6973 Those changes makes it easier to integrate dear imgui with a scripting language allowing, given asserts are redirected
6974 into e.g. an error log and stopping the script execution.
6975- ImFontAtlas: Stb and FreeType: Atlas width is now properly based on total surface rather than glyph count (unless overridden with TexDesiredWidth).
6976- ImFontAtlas: Stb and FreeType: Fixed atlas builder so missing glyphs won't influence the atlas texture width. (#2233)
6977- ImFontAtlas: Stb and FreeType: Fixed atlas builder so duplicate glyphs (when merging fonts) won't be included in the rasterized atlas.
6978- ImFontAtlas: FreeType: Fixed abnormally high atlas height.
6979- ImFontAtlas: FreeType: Fixed support for any values of TexGlyphPadding (not just only 1).
6980- ImDrawList: Optimized some of the functions for performance of debug builds where non-inline function call cost are non-negligible.
6981 (Our test UI scene on VS2015 Debug Win64 with /RTC1 went ~5.9 ms -> ~4.9 ms. In Release same scene stays at ~0.3 ms.)
6982- IO: Added BackendPlatformUserData, BackendRendererUserData, BackendLanguageUserData void* for storage use by backends.
6983- IO: Renamed InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead!
6984- IO: AddInputCharacter() goes into a queue which can receive as many characters as needed during the frame. This is useful
6985 for automation to not have an upper limit on typing speed. Will later transition key/mouse to use the event queue later.
6986- Style: Tweaked default value of style.DisplayWindowPadding from (20,20) to (19,19) so the default style as a value
6987 which is the same as the title bar height.
6988- Demo: "Simple Layout" and "Style Editor" are now using tabs.
6989- Demo: Added a few more things under "Child windows" (changing ImGuiCol_ChildBg, positioning child, using IsItemHovered after a child).
6990- Examples: DirectX10/11/12: Made imgui_impl_dx10/dx11/dx12.cpp link d3dcompiler.lib from the .cpp file to ease integration.
6991- Examples: Allegro 5: Properly destroy globals on shutdown to allow for restart. (#2262) [@DomRe]
6992
6993
6994-----------------------------------------------------------------------
6995 VERSION 1.66b (Released 2018-12-01)
6996-----------------------------------------------------------------------
6997
6998Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.66b
6999
7000Other Changes:
7001
7002- Fixed a text rendering/clipping bug introduced in 1.66 (on 2018-10-12, commit ede3a3b9) that affect single ImDrawList::AddText()
7003 calls with single strings larger than 10k. Text/TextUnformatted() calls were not affected, but e.g. InputText() was. [@pdoane]
7004- When the focused window become inactive don't restore focus to a window with the ImGuiWindowFlags_NoInputs flag. (#2213) [@zzzyap]
7005- Separator: Fixed Separator() outputting an extraneous empty line when captured into clipboard/text/file.
7006- Demo: Added ShowAboutWindow() call, previously was only accessible from the demo window.
7007- Demo: ShowAboutWindow() now display various Build/Config Information (compiler, os, etc.) that can easily be copied into bug reports.
7008- Fixed build issue with osxcross and macOS. (#2218) [@dos1]
7009- Examples: Setting up 'io.BackendPlatformName'/'io.BackendRendererName' fields to the current backend can be displayed in the About window.
7010- Examples: SDL: changed the signature of ImGui_ImplSDL2_ProcessEvent() to use a const SDL_Event*. (#2187)
7011
7012
7013-----------------------------------------------------------------------
7014 VERSION 1.66 (Released 2018-11-22)
7015-----------------------------------------------------------------------
7016
7017Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.66
7018
7019Breaking Changes:
7020
7021- Renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete).
7022- Renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. (#2035, #2096)
7023
7024Other Changes:
7025
7026- Fixed calling SetNextWindowSize()/SetWindowSize() with non-integer values leading to
7027 accidental alteration of window position. We now round the provided size. (#2067)
7028- Fixed calling DestroyContext() always saving .ini data with the current context instead
7029 of the supplied context pointer. (#2066)
7030- Nav, Focus: Fixed ImGuiWindowFlags_NoBringToFrontOnFocus windows not being restoring focus
7031 properly after the main menu bar or last focused window is deactivated.
7032- Nav: Fixed an assert in certain circumstance (mostly when using popups) when mouse positions stop being valid. (#2168)
7033- Nav: Fixed explicit directional input not re-highlighting current nav item if there is a single item in the window
7034 and highlight has been previously disabled by the mouse. (#787)
7035- DragFloat: Fixed a situation where dragging with value rounding enabled or with a power curve
7036 erroneously wrapped the value to one of the min/max edge. (#2024, #708, #320, #2075).
7037- DragFloat: Disabled using power curve when one edge is FLT_MAX (broken in 1.61). (#2024)
7038- DragFloat: Disabled setting a default drag speed when one edge is FLT_MAX. (#2024)
7039- SliderAngle: Added optional format argument to alter precision or localize the string. (#2150) [@podsvirov]
7040- Window: Resizing from edges (with io.ConfigResizeWindowsFromEdges Beta flag) extends the hit region
7041 of root floating windows outside the window, making it easier to resize windows. Resize grips are also
7042 extended accordingly so there are no discontinuity when hovering between borders and corners. (#1495, #822)
7043- Window: Added ImGuiWindowFlags_NoBackground flag to avoid rendering window background. This is mostly to allow
7044 the creation of new flag combinations, as we could already use SetNextWindowBgAlpha(0.0f). (#1660) [@biojppm, @ocornut]
7045- Window: Added ImGuiWindowFlags_NoDecoration helper flag which is essentially NoTitleBar+NoResize+NoScrollbar+NoCollapse.
7046- Window: Added ImGuiWindowFlags_NoMouseInputs which is basically the old ImGuiWindowFlags_NoInputs (essentially
7047 we have renamed ImGuiWindowFlags_NoInputs to ImGuiWindowFlags_NoMouseInputs). Made the new ImGuiWindowFlags_NoInputs
7048 encompass both NoMouseInputs+NoNav, which is consistent with its description. (#1660, #787)
7049- Window, Inputs: Fixed resizing from edges when io.MousePos is not pixel-rounded by rounding mouse position input. (#2110)
7050- BeginChild(): Fixed BeginChild(const char*, ...) variation erroneously not applying the ID stack
7051 to the provided string to uniquely identify the child window. This was undoing an intentional change
7052 introduced in 1.50 and broken in 1.60. (#1698, #894, #713).
7053- TextUnformatted(): Fixed a case where large-text path would read bytes past the text_end marker depending
7054 on the position of new lines in the buffer (it wasn't affecting the output but still not the right thing to do!)
7055- ListBox(): Fixed frame sizing when items_count==1 unnecessarily showing a scrollbar. (#2173) [@luk1337, @ocornut]
7056- ListBox(): Tweaked frame sizing so list boxes will look more consistent when FramePadding is far from ItemSpacing.
7057- RenderText(): Some optimization for very large text buffers, useful for non-optimized builds.
7058- BeginMenu(): Fixed menu popup horizontal offset being off the item in the menu bar when WindowPadding=0.0f.
7059- ArrowButton(): Fixed arrow shape being horizontally misaligned by (FramePadding.y-FramePadding.x) if they are different.
7060- Demo: Split the contents of ShowDemoWindow() into smaller functions as it appears to speed up link time with VS. (#2152)
7061- Drag and Drop: Added GetDragDropPayload() to peek directly into the payload (if any) from anywhere. (#143)
7062- ImGuiTextBuffer: Avoid heap allocation when empty.
7063- ImDrawList: Fixed AddConvexPolyFilled() undefined behavior when passing points_count smaller than 3,
7064 in particular, points_count==0 could lead to a memory stomp if the draw list was previously empty.
7065- Examples: DirectX10, DirectX11: Removed seemingly unnecessary calls to invalidate and recreate device objects
7066 in the WM_SIZE handler. (#2088) [@ice1000]
7067- Examples: GLFW: User previously installed GLFW callbacks are now saved and chain-called by the default callbacks. (#1759)
7068- Examples: OpenGL3: Added support for GL 4.5's glClipControl(GL_UPPER_LEFT). (#2186)
7069- Examples: OpenGL3+GLFW: Fixed error condition when using the GLAD loader. (#2157) [@blackball]
7070- Examples: OpenGL3+GLFW/SDL: Made main.cpp compile with IMGUI_IMPL_OPENGL_LOADER_CUSTOM (may be missing init). (#2178) [@doug-moen]
7071- Examples: SDL2+Vulkan: Fixed application shutdown which could deadlock on Linux + Xorg. (#2181) [@eRabbit0]
7072
7073
7074-----------------------------------------------------------------------
7075 VERSION 1.65 (Released 2018-09-06)
7076-----------------------------------------------------------------------
7077
7078Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.65
7079
7080Breaking Changes:
7081
7082- Renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and
7083 stb_rect_pack.h to imstb_rectpack.h. If you were conveniently using the imgui copy of those
7084 STB headers in your project, you will have to update your include paths. (#1718, #2036)
7085 The reason for this change is to avoid conflicts for projects that may also be importing
7086 their own copy of the STB libraries. Note that imgui's copy of stb_textedit.h is modified.
7087- Renamed io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427)
7088
7089Other Changes:
7090
7091- This is a minor release following the 1.64 refactor, with a little more shuffling of code.
7092- Clarified and improved the source code sectioning in all files (easier to search or browse sections).
7093- Nav: Removed the [Beta] tag from various descriptions of the gamepad/keyboard navigation system.
7094 Although it is not perfect and will keep being improved, it is fairly functional and used by many. (#787)
7095- Fixed a build issue with non-Cygwin GCC under Windows.
7096- Demo: Added a "Configuration" block to make io.ConfigFlags/io.BackendFlags more prominent.
7097- Examples: OpenGL3+SDL2: Fixed error condition when using the GLAD loader. (#2059, #2002) [@jiri]
7098
7099
7100-----------------------------------------------------------------------
7101 VERSION 1.64 (Released 2018-08-31)
7102-----------------------------------------------------------------------
7103
7104Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.64
7105
7106Changes:
7107
7108- Moved README, CHANGELOG and TODO files to the docs/ folder.
7109 If you are updating dear imgui by copying files, take the chance to delete the old files.
7110- Added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp.
7111 Re-ordered some of the code remaining in imgui.cpp.
7112 NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTIONS HAS BEEN MOVED.
7113 Because of this, any local modifications to imgui.cpp will likely conflict when you update.
7114 If you have any modifications to imgui.cpp, it is suggested that you first update to 1.63, then
7115 isolate your patches. You can peak at imgui_widgets.cpp from 1.64 to get a sense of what is included in it,
7116 then separate your changes into several patches that can more easily be applied to 1.64 on a per-file basis.
7117 What I found worked nicely for me, was to open the diff of the old patches in an interactive merge/diff tool,
7118 search for the corresponding function in the new code and apply the chunks manually.
7119- As a reminder, if you have any change to imgui.cpp it is a good habit to discuss them on the GitHub,
7120 so a solution applicable on the Master branch can be found. If your company has changes that you cannot
7121 disclose you may also contact me privately.
7122
7123
7124-----------------------------------------------------------------------
7125 VERSION 1.63 (Released 2018-08-29)
7126-----------------------------------------------------------------------
7127
7128Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.63
7129
7130Breaking Changes:
7131
7132- Style: Renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features.
7133 Kept redirection enum (will obsolete).
7134- Changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecision over time.
7135- Removed per-window ImGuiWindowFlags_ResizeFromAnySide Beta flag in favor `io.ConfigResizeWindowsFromEdges=true` to
7136 enable the feature globally. (#1495)
7137 The feature is not currently enabled by default because it is not satisfying enough, but will eventually be.
7138- InputText: Renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData
7139 for consistency. Kept redirection types (will obsolete).
7140- InputText: Removed ImGuiTextEditCallbackData::ReadOnly because it is a duplication of (::Flags & ImGuiInputTextFlags_ReadOnly).
7141- Renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API.
7142 Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent).
7143- Renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to
7144 io.ConfigMacOSXBehaviors for consistency. (#1427, #473)
7145- Removed obsolete redirection functions: CollapsingHeader() variation with 2 bools - marked obsolete in v1.49, May 2016.
7146
7147Other Changes:
7148
7149- ArrowButton: Fixed to honor PushButtonRepeat() setting (and internals' ImGuiItemFlags_ButtonRepeat).
7150- ArrowButton: Setup current line text baseline so that ArrowButton() + SameLine() + Text() are aligned properly.
7151- Nav: Added a CTRL+TAB window list and changed the highlight system accordingly. The change is motivated by upcoming
7152 Docking features. (#787)
7153- Nav: Made CTRL+TAB skip menus + skip the current navigation window if is has the ImGuiWindow_NoNavFocus set. (#787)
7154 While it was previously possible, you won't be able to CTRL+TAB out and immediately back in a window with the
7155 ImGuiWindow_NoNavFocus flag.
7156- Window: Allow menu and popups windows from ignoring the style.WindowMinSize values so short menus/popups are not padded. (#1909)
7157- Window: Added global io.ConfigResizeWindowsFromEdges option to enable resizing windows from their edges and from
7158 the lower-left corner. (#1495)
7159- Window: Collapse button shows hovering highlight + clicking and dragging on it allows to drag the window as well.
7160- Added IsItemEdited() to query if the last item modified its value (or was pressed). This is equivalent to the bool
7161 returned by most widgets.
7162 It is useful in some situation e.g. using InputText() with ImGuiInputTextFlags_EnterReturnsTrue. (#2034)
7163- InputText: Added support for buffer size/capacity changes via the ImGuiInputTextFlags_CallbackResize flag. (#2006, #1443, #1008).
7164- InputText: Fixed not tracking the cursor horizontally when modifying the text buffer through a callback.
7165- InputText: Fixed minor off-by-one issue when submitting a buffer size smaller than the initial zero-terminated buffer contents.
7166- InputText: Fixed a few pathological crash cases on single-line InputText widget with multiple millions characters worth of contents.
7167 Because the current text drawing function reserve for a worst-case amount of vertices and how we handle horizontal clipping,
7168 we currently just avoid displaying those single-line widgets when they are over a threshold of 2 millions characters,
7169 until a better solution is found.
7170- Drag and Drop: Fixed an incorrect assert when dropping a source that is submitted after the target (bug introduced with 1.62 changes
7171 related to the addition of IsItemDeactivated()). (#1875, #143)
7172- Drag and Drop: Fixed ImGuiDragDropFlags_SourceNoDisableHover to affect hovering state prior to calling IsItemHovered() + fixed description. (#143)
7173- Drag and Drop: Calling BeginTooltip() between a BeginDragSource()/EndDragSource() or BeginDropTarget()/EndDropTarget() uses adjusted tooltip
7174 settings matching the one created when calling BeginDragSource() without the ImGuiDragDropFlags_SourceNoPreviewTooltip flag. (#143)
7175- Drag and Drop: Payload stays available and under the mouse if the source stops being submitted, however the tooltip is replaced by "...". (#1725)
7176- Drag and Drop: Added ImGuiDragDropFlags_SourceAutoExpirePayload flag to force payload to expire if the source stops being submitted. (#1725, #143).
7177- IsItemHovered(): Added ImGuiHoveredFlags_AllowWhenDisabled flag to query hovered status on disabled items. (#1940, #211)
7178- Selectable: Added ImGuiSelectableFlags_Disabled flag in the public API. (#211)
7179- ColorEdit4: Fixed a bug when text input or drag and drop leading to unsaturated HSV values would erroneously alter the resulting color. (#2050)
7180- Misc: Added optional misc/stl/imgui_stl.h wrapper to use with STL types (e.g. InputText with std::string). (#2006, #1443, #1008)
7181 [*EDIT* renamed to misc/std/imgui_stdlib.h in 1.66]
7182- Misc: Added IMGUI_VERSION_NUM for easy compile-time testing. (#2025)
7183- Misc: Added ImGuiMouseCursor_Hand cursor enum + corresponding software cursor. (#1913, 1914) [@aiekick, @ocornut]
7184- Misc: Tweaked software mouse cursor offset to match the offset of the corresponding Windows 10 cursors.
7185- Made assertion more clear when trying to call Begin() outside of the NewFrame()..EndFrame() scope. (#1987)
7186- Fixed assertion when transitioning from an active ID to another within a group, affecting ColorPicker (broken in 1.62). (#2023, #820, #956, #1875).
7187- Fixed PushID() from keeping alive the new ID Stack top value (if a previously active widget shared the ID it would be erroneously kept alive).
7188- Fixed horizontal mouse wheel not forwarding the request to the parent window if ImGuiWindowFlags_NoScrollWithMouse is set. (#1463, #1380, #1502)
7189- Fixed an include build issue for Cygwin in non-POSIX (Win32) mode. (#1917, #1319, #276)
7190- ImDrawList: Improved handling for worst-case vertices reservation policy when large amount of text (e.g. 1+ million character strings)
7191 are being submitted in a single call. It would typically have crashed InputTextMultiline(). (#200)
7192- OS/Windows: Fixed missing ImmReleaseContext() call in the default Win32 IME handler. (#1932) [@vby]
7193- Metrics: Changed io.MetricsActiveWindows to reflect the number of active windows (!= from visible windows), which is useful
7194 for lazy/idle render mechanisms as new windows are typically not visible for one frame.
7195- Metrics: Added io.MetricsRenderWindow to reflect the number of visible windows.
7196- Metrics: Added io.MetricsActiveAllocations, moving away from the cross-context global counters than we previously used. (#1565, #1599, #586)
7197- Demo: Added basic Drag and Drop demo. (#143)
7198- Demo: Modified the Console example to use InsertChars() in the input text callback instead of poking directly into the buffer.
7199 Although this won't make a difference in the example itself, using InsertChars() will honor the resizing callback properly. (#2006, #1443, #1008).
7200- Demo: Clarified the use of IsItemHovered()/IsItemActive() right after being in the "Active, Focused, Hovered & Focused Tests" section.
7201- Examples: Tweaked the main.cpp of each example.
7202- Examples: Metal: Added Metal rendering backend. (#1929, #1873) [@warrenm]
7203- Examples: OSX: Added early raw OSX platform backend. (#1873) [@pagghiu, @itamago, @ocornut]
7204- Examples: Added mac OSX & iOS + Metal example in example_apple_metal/. (#1929, #1873) [@warrenm]
7205- Examples: Added mac OSX + OpenGL2 example in example_apple_opengl2/. (#1873)
7206- Examples: OpenGL3: Added shaders more versions of GLSL. (#1938, #1941, #1900, #1513, #1466, etc.)
7207- Examples: OpenGL3: Tweaked the imgui_impl_opengl3.cpp to work as-is with Emscripten + WebGL 2.0. (#1941). [@o-micron]
7208- Examples: OpenGL3: Made the example app default to GL 3.0 + GLSL 130 (instead of GL 3.2 + GLSL 150) unless on Mac.
7209- Examples: OpenGL3: Added error output when shaders fail to compile/link.
7210- Examples: OpenGL3: Added support for glew and glad OpenGL loaders out of the box. (#2001, #2002) [@jdumas]
7211- Examples: OpenGL2: Disabling/restoring GL_LIGHTING and GL_COLOR_MATERIAL to increase compatibility with legacy OpenGL applications. (#1996)
7212- Examples: DirectX10, DirectX11: Fixed unreleased resources in Init and Shutdown functions. (#1944)
7213- Examples: DirectX11: Querying for IDXGIFactory instead of IDXGIFactory1 to increase compatibility. (#1989) [@matt77hias]
7214- Examples: Vulkan: Fixed handling of VkSurfaceCapabilitiesKHR::maxImageCount = 0 case. Tweaked present mode selections.
7215- Examples: Win32, Glfw, SDL: Added support for the ImGuiMouseCursor_Hand cursor.
7216
7217
7218-----------------------------------------------------------------------
7219 VERSION 1.62 (Released 2018-06-22)
7220-----------------------------------------------------------------------
7221
7222Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.62
7223
7224Breaking Changes:
7225
7226- TreeNodeEx(): The helper ImGuiTreeNodeFlags_CollapsingHeader flag now include ImGuiTreeNodeFlags_NoTreePushOnOpen.
7227 The flag was already set by CollapsingHeader().
7228 The only difference is if you were using TreeNodeEx() manually with ImGuiTreeNodeFlags_CollapsingHeader and without
7229 ImGuiTreeNodeFlags_NoTreePushOnOpen. In this case you can remove the ImGuiTreeNodeFlags_NoTreePushOnOpen flag from
7230 your call (ImGuiTreeNodeFlags_CollapsingHeader & ~ImGuiTreeNodeFlags_NoTreePushOnOpen). (#1864)
7231 This also apply if you were using internal's TreeNodeBehavior() with the ImGuiTreeNodeFlags_CollapsingHeader flag directly.
7232- ImFontAtlas: Renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish new smaller variants and
7233 discourage using the full set. (#1859)
7234
7235Other Changes:
7236
7237- Examples backends have been refactored to separate the platform code (e.g. Win32, Glfw, SDL2) from the renderer code (e.g. DirectX11, OpenGL3, Vulkan).
7238 The "Platform" backends are in charge of: mouse/keyboard/gamepad inputs, cursor shape, timing, etc.
7239 The "Renderer" backends are in charge of: creating the main font texture, rendering imgui draw data.
7240 before: imgui_impl_dx11.cpp --> after: imgui_impl_win32.cpp + imgui_impl_dx11.cpp
7241 before: imgui_impl_dx12.cpp --> after: imgui_impl_win32.cpp + imgui_impl_dx12.cpp
7242 before: imgui_impl_glfw_gl3.cpp --> after: imgui_impl_glfw.cpp + imgui_impl_opengl2.cpp
7243 before: imgui_impl_glfw_vulkan.cpp --> after: imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp
7244 before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp + imgui_impl_opengl2.cpp
7245 before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp + imgui_impl_opengl3.cpp etc.
7246 - The idea is what we can now easily combine and maintain backends and reduce code redundancy. Individual files are
7247 smaller and more reusable. Integration of imgui into a new/custom engine may also be easier as there is less overlap
7248 between "windowing / inputs" and "rendering" code, so you may study or grab one half of the code and not the other.
7249 - This change was motivated by the fact that adding support for the upcoming multi-viewport feature requires more work
7250 from the Platform and Renderer backends, and the amount of redundancy across files was becoming too difficult to
7251 maintain. If you use default backends, you'll benefit from an easy update path to support multi-viewports later
7252 (for future ImGui 1.7x).
7253 - This is not strictly a breaking change if you keep your old backends, but when you'll want to fully update your backends,
7254 expect to have to reshuffle a few things.
7255 - Each example still has its own main.cpp which you may refer you to understand how to initialize and glue everything together.
7256 - Some frameworks (such as the Allegro, Marmalade) handle both the "platform" and "rendering" part, and your custom engine may as well.
7257 - Read examples/README.txt for details.
7258- Added IsItemDeactivated() to query if the last item was active previously and isn't anymore. Useful for Undo/Redo patterns. (#820, #956, #1875)
7259- Added IsItemDeactivatedAfterChange() [*EDIT* renamed to IsItemDeactivatedAfterEdit() in 1.63] if the last item was active previously,
7260 is not anymore, and during its active state modified a value. Note that you may still get false positive (e.g. drag value and while
7261 holding return on the same value). (#820, #956, #1875)
7262- Nav: Added support for PageUp/PageDown (explorer-style: first aim at bottom/top most item, when scroll a page worth of contents). (#787)
7263- Nav: To keep the navigated item in view we also attempt to scroll the parent window as well as the current window. (#787)
7264- ColorEdit3, ColorEdit4, ColorButton: Added ImGuiColorEditFlags_NoDragDrop flag to disable ColorEditX as drag target and ColorButton as drag source. (#1826)
7265- BeginDragDropSource(): Offset tooltip position so it is off the mouse cursor, but also closer to it than regular tooltips,
7266 and not clamped by viewport. (#1739)
7267- BeginDragDropTarget(): Added ImGuiDragDropFlags_AcceptNoPreviewTooltip flag to request hiding the drag source tooltip
7268 from the target site. (#143)
7269- BeginCombo(), BeginMainMenuBar(), BeginChildFrame(): Temporary style modification are restored at the end of BeginXXX
7270 instead of EndXXX, to not affect tooltips and child windows.
7271- Popup: Improved handling of (erroneously) repeating calls to OpenPopup() to not close the popup's child popups. (#1497, #1533, #1865).
7272- InputTextMultiline(): Fixed double navigation highlight when scrollbar is active. (#787)
7273- InputText(): Fixed Undo corruption after pasting large amount of text (Redo will still fail when undo buffers are exhausted,
7274 but text won't be corrupted).
7275- SliderFloat(): When using keyboard/gamepad and a zero precision format string (e.g. "%.0f"), always step in integer units. (#1866)
7276- ImFontConfig: Added GlyphMinAdvanceX/GlyphMaxAdvanceX settings useful to make a font appears monospaced, particularly useful
7277 for icon fonts. (#1869)
7278- ImFontAtlas: Added GetGlyphRangesChineseSimplifiedCommon() helper that returns a list of ~2500 most common Simplified Chinese
7279 characters. (#1859) [@JX-Master, @ocornut]
7280- Examples: OSX: Added imgui_impl_osx.mm backend to be used along with e.g. imgui_impl_opengl2.cpp. (#281, #1870) [@pagghiu, @itamago, @ocornut]
7281- Examples: GLFW: Made it possible to Shutdown/Init the backend again (by resetting the time storage properly). (#1827) [@ice1000]
7282- Examples: Win32: Fixed handling of mouse wheel messages to support sub-unit scrolling messages (typically sent by track-pads). (#1874) [@zx64]
7283- Examples: SDL+Vulkan: Added SDL+Vulkan example.
7284- Examples: Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag. Added clipboard support.
7285- Examples: Allegro5: Unindexing buffers ourselves as Allegro indexed drawing primitives are buggy in the DirectX9 backend
7286 (will be fixed in Allegro 5.2.5+).
7287- Examples: DirectX12: Moved the ID3D12GraphicsCommandList* parameter from ImGui_ImplDX12_NewFrame() to ImGui_ImplDX12_RenderDrawData() which makes a lots more sense. (#301)
7288- Examples: Vulkan: Reordered parameters ImGui_ImplVulkan_RenderDrawData() to be consistent with other backends,
7289 a good occasion since we refactored the code.
7290- Examples: FreeGLUT: Added FreeGLUT backends. Added FreeGLUT+OpenGL2 example. (#801)
7291- Examples: The functions in imgui_impl_xxx.cpp are prefixed with IMGUI_IMPL_API (which defaults to IMGUI_API) to facilitate
7292 some uses. (#1888)
7293- Examples: Fixed backends to use ImGuiMouseCursor_COUNT instead of old name ImGuiMouseCursor_Count_ so they can compile
7294 with IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#1887)
7295- Misc: Updated stb_textedit from 1.09 + patches to 1.12 + minor patches.
7296- Internals: PushItemFlag() flags are inherited by BeginChild().
7297
7298
7299-----------------------------------------------------------------------
7300 VERSION 1.61 (Released 2018-05-14)
7301-----------------------------------------------------------------------
7302
7303Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.61
7304
7305Breaking Changes:
7306
7307- DragInt(): The default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally
7308 any more. If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format.
7309 To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d,
7310 giving time to users to upgrade their code.
7311 If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your
7312 codebase for e.g. "DragInt.*%f" to you find them.
7313- InputFloat(): Obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more
7314 flexible "const char* format", consistent with other functions. Kept redirection functions (will obsolete).
7315- Misc: IM_DELETE() helper function added in 1.60 doesn't set the input pointer to NULL, more consistent with standard
7316 expectation and allows passing r-values.
7317
7318Other Changes:
7319
7320- Added DragScalar, DragScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011)
7321- Added InputScalar, InputScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011)
7322- Added SliderScalar, SliderScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011)
7323- Window: Fixed pop-ups/tooltips/menus not honoring style.DisplaySafeAreaPadding as well as it should have (part of menus
7324 displayed outside the safe area, etc.).
7325- Window: Fixed windows using the ImGuiWindowFlags_NoSavedSettings flag from not using the same default position as other windows. (#1760)
7326- Window: Relaxed the internal stack size checker to allow Push/Begin/Pop/.../End patterns to be used with PushStyleColor, PushStyleVar, PushFont without causing a false positive assert. (#1767)
7327- Window: Fixed the default proportional item width lagging by one frame on resize.
7328- Columns: Fixed a bug introduced in 1.51 where columns would affect the contents size of their container, often creating
7329 feedback loops when ImGuiWindowFlags_AlwaysAutoResize was used. (#1760)
7330- Settings: Fixed saving an empty .ini file if CreateContext/DestroyContext are called without a single call to NewFrame(). (#1741)
7331- Settings: Added LoadIniSettingsFromDisk(), LoadIniSettingsFromMemory(), SaveIniSettingsToDisk(), SaveIniSettingsToMemory()
7332 to manually load/save .ini settings. (#923, #993)
7333- Settings: Added io.WantSaveIniSettings flag, which is set to notify the application that e.g. SaveIniSettingsToMemory()
7334 should be called. (#923, #993)
7335- Scrolling: Fixed a case where using SetScrollHere(1.0f) at the bottom of a window on the same frame the window height
7336 has been growing would have the scroll clamped using the previous height. (#1804)
7337- MenuBar: Made BeginMainMenuBar() honor style.DisplaySafeAreaPadding so the text can be made visible on TV settings that
7338 don't display all pixels. (#1439) [@dougbinks]
7339- InputText: On Mac OS X, filter out characters when the CMD modifier is held. (#1747) [@sivu]
7340- InputText: On Mac OS X, support CMD+SHIFT+Z for Redo. CMD+Y is also supported as major apps seems to default to support both. (#1765) [@lfnoise]
7341- InputText: Fixed returning true when edition is cancelled with ESC and the current buffer matches the initial value.
7342- InputFloat,InputFloat2,InputFloat3,InputFloat4: Added variations taking a more flexible and consistent optional
7343 "const char* format" parameter instead of "int decimal_precision". This allow using custom formats to display values
7344 in scientific notation, and is generally more consistent with other API.
7345 Obsoleted functions using the optional "int decimal_precision" parameter. (#648, #712)
7346- DragFloat, DragInt: Cancel mouse tweak when current value is initially past the min/max boundaries and mouse is pushing
7347 in the same direction (keyboard/gamepad version already did this).
7348- DragFloat, DragInt: Honor natural type limits (e.g. INT_MAX, FLT_MAX) instead of wrapping around. (#708, #320)
7349- DragFloat, SliderFloat: Fixes to allow input of scientific notation numbers when using CTRL+Click to input the value. (~#648, #1011)
7350- DragFloat, SliderFloat: Rounding-on-write uses the provided format string instead of parsing the precision from the string,
7351 which allows for finer uses of %e %g etc. (#648, #642)
7352- DragFloat: Improved computation when using the power curve. Improved lost of input precision with very small steps.
7353 Added an assert than power-curve requires a min/max range. (~#642)
7354- DragFloat: The 'power' parameter is only honored if the min/max parameter are also setup.
7355- DragInt, SliderInt: Fixed handling of large integers (we previously passed data around internally as float, which reduced
7356 the range of valid integers).
7357- ColorEdit: Fixed not being able to pass the ImGuiColorEditFlags_NoAlpha or ImGuiColorEditFlags_HDR flags to SetColorEditOptions().
7358- Nav: Fixed hovering a Selectable() with the mouse so that it update the navigation cursor (as it happened in the pre-1.60 navigation branch). (#787)
7359- Style: Changed default style.DisplaySafeAreaPadding values from (4,4) to (3,3) so it is smaller than FramePadding and has no effect on main menu bar on a computer. (#1439)
7360- Fonts: When building font atlas, glyphs that are missing in the fonts are not using the glyph slot to render the default glyph. Saves space and allow merging fonts with
7361 overlapping font ranges such as FontAwesome5 which split out the Brands separately from the Solid fonts. (#1703, #1671)
7362- Misc: Added IMGUI_CHECKVERSION() macro to compare version string and data structure sizes in order to catch issues with mismatching compilation unit settings. (#1695, #1769)
7363- Misc: Added IMGUI_DISABLE_MATH_FUNCTIONS in imconfig.h to make it easier to redefine wrappers for std/crt math functions.
7364- Misc: Fix to allow compiling in unity builds where stb_rectpack/stb_truetype may be already included in the same compilation unit.
7365- Demo: Simple Overlay: Added a context menu item to enable freely moving the window.
7366- Demo: Added demo for DragScalar(), InputScalar(), SliderScalar(). (#643)
7367- Examples: Calling IMGUI_CHECKVERSION() in the main.cpp of every example application.
7368- Examples: Allegro 5: Added support for 32-bit indices setup via defining ImDrawIdx, to avoid an unnecessary conversion (Allegro 5 doesn't support 16-bit indices).
7369- Examples: Allegro 5: Renamed backend from imgui_impl_a5.cpp to imgui_impl_allegro5.cpp.
7370- Examples: DirectX 9: Saving/restoring Transform because they don't seem to be included in the StateBlock. Setting shading mode to Gouraud. (#1790, #1687) [@sr-tream]
7371- Examples: SDL: Fixed clipboard paste memory leak in the SDL backend code. (#1803) [@eliasdaler]
7372- Various minor fixes, tweaks, refactoring, comments.
7373
7374
7375-----------------------------------------------------------------------
7376 VERSION 1.60 (Released 2018-04-07)
7377-----------------------------------------------------------------------
7378
7379Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.60
7380
7381The gamepad/keyboard navigation branch (which has been in the work since July 2016) has been merged.
7382Gamepad/keyboard navigation is still marked as Beta and has to be enabled explicitly.
7383Various internal refactoring have also been done, as part of the navigation work and as part of the upcoming viewport/docking work.
7384
7385Breaking Changes:
7386
7387- Obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render().
7388 e.g. with example backends, call ImDrawData* draw_data = ImGui::GetDrawData(); ImGui_ImplXXXX_RenderDrawData(draw_data).
7389- Reorganized context handling to be more explicit: (#1599)
7390 - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END.
7391 - removed Shutdown() function, as DestroyContext() serve this purpose. If you are using an old backend from the examples/ folder, remove the line that calls Shutdown().
7392 - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance.
7393 - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts.
7394 - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts.
7395- Renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums.
7396- Fonts: Moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths.
7397- Fonts: Changed ImFont::DisplayOffset.y to defaults to 0 instead of +1. Fixed vertical rounding of Ascent/Descent to match TrueType renderer.
7398 If you were adding or subtracting (not assigning) to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. (#1619)
7399- BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment.
7400- Obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete).
7401- Obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete).
7402- Renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, not used by core, and honored by some backend ahead of merging the Nav branch).
7403- Removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered style colors as the closing cross uses regular button colors now.
7404- Renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData.
7405- Removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it should be easy to replicate on your side (you can find the code in 1.53).
7406- [EDITED] Window: BeginChild() with an explicit name doesn't include the hash within the internal window name. (#1698)
7407 This change was erroneously introduced, undoing the change done for #894, #713, and not documented properly in the original
7408 1.60 release Changelog. It was fixed on 2018-09-28 (1.66) and I wrote this paragraph the same day.
7409
7410Other Changes:
7411
7412- Doc: Added a Changelog file in the repository to ease comparing versions (it goes back to dear imgui 1.48), until now it was only on GitHub.
7413- Navigation: merged in the gamepad/keyboard navigation (about a million changes!). (#787, #323)
7414 The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable.
7415- To use Gamepad Navigation:
7416 - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable.
7417 - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the io.NavInputs[] fields before calling NewFrame(). Read imgui.cpp for more details.
7418 - See https://github.com/ocornut/imgui/issues/1599 for recommended gamepad mapping or download PNG/PSD at http://goo.gl/9LgVZW
7419 - See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. Read imgui.cpp for more details.
7420- To use Keyboard Navigation:
7421 - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame() will automatically
7422 fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays.
7423 - Basic controls: arrows to navigate, Alt to enter menus, Space to activate item, Enter to edit text,
7424 Escape to cancel/close, Ctrl+Tab to focus windows, etc.
7425 - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard),
7426 the io.WantCaptureKeyboard flag will be set.
7427 - For more advanced uses, you may want to read from io.NavActive or io.NavVisible. Read imgui.cpp for more details.
7428- Navigation: SetItemDefaultFocus() sets the navigation position in addition to scrolling. (#787)
7429- Navigation: Added IsItemFocused(), added IsAnyItemFocused(). (#787)
7430- Navigation: Added window flags: ImGuiWindowFlags_NoNav (== ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus).
7431- Navigation: Style: Added ImGuiCol_NavHighlight, ImGuiCol_NavWindowingHighlight colors. (#787)
7432- Navigation: TreeNode: Added ImGuiTreeNodeFlags_NavLeftJumpsBackHere flag to allow Nav Left direction to jump back to parent tree node from any of its child. (#1079)
7433- Navigation: IO: Added io.ConfigFlags (input), io.NavActive (output), io.NavVisible (output). (#787)
7434- Context: Removed the default global context and font atlas instances, which caused various
7435 problems to users of multiple contexts and DLL users. (#1565, #1599) YOU NOW NEED TO CALL
7436 ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END.
7437 Existing apps will assert/crash without it.
7438- Context: Added SetAllocatorFunctions() to rewire memory allocators (as a replacement to previous
7439 parameters to CreateContext()). Allocators are shared by all contexts and imgui helpers. (#1565, #586, #992, #1007, #1558)
7440- Context: You may pass a ImFontAtlas to CreateContext() to specify a font atlas to share.
7441 Shared font atlas are not owned by the context and not destroyed along with it. (#1599)
7442- Context: Added IMGUI_DISABLE_DEFAULT_ALLOCATORS to disable linking with malloc/free. (#1565, #586, #992, #1007, #1558)
7443- IO: Added io.ConfigFlags for user application to store settings for imgui and for the backend:
7444 - ImGuiConfigFlags_NavEnableKeyboard: Enable keyboard navigation.
7445 - ImGuiConfigFlags_NavEnableGamepad: Enable gamepad navigation (provided ImGuiBackendFlags_HasGamepad is also set by backend).
7446 - ImGuiConfigFlags_NavEnableSetMousePos: Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward.
7447 - ImGuiConfigFlags_NoMouseCursorChange: Instruct backend to not alter mouse cursor shape and visibility (by default the example backend use mouse cursor API of the platform when available)
7448 - ImGuiConfigFlags_NoMouse: Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information passed by the backend.
7449 - ImGuiConfigFlags_IsSRGB, ImGuiConfigFlags_IsTouchScreen: Flags for general application use.
7450- IO: Added io.BackendFlags for backend to store its capabilities (currently: _HasGamepad,
7451 _HasMouseCursors, _HasSetMousePos). This will be used more in the next version.
7452- IO: Added ImGuiKey_Insert, ImGuiKey_Space keys. Setup in all example backends. (#1541)
7453- IO: Added Horizontal Mouse Wheel support for horizontal scrolling. (#1463) [@tseeker]
7454- IO: Added IsAnyMouseDown() helper which is helpful for backends to handle mouse capturing.
7455- Window: Clicking on a window with the ImGuiWIndowFlags_NoMove flags takes an ActiveId so
7456 we can't hover something else when dragging afterwards. (#1381, #1337)
7457- Window: IsWindowHovered(): Added ImGuiHoveredFlags_AnyWindow, ImGuiFocusedFlags_AnyWindow flags
7458 (See Breaking Changes). Added to demo. (#1382)
7459- Window: Added SetNextWindowBgAlpha() helper. Particularly helpful since the legacy 5-parameters
7460 version of Begin() has been marked as obsolete in 1.53. (#1567)
7461- Window: Fixed SetNextWindowContentSize() with 0.0f on Y axis (or SetNextWindowContentWidth())
7462 overwriting the contents size. Got broken on Dec 10 (1.53). (#1363)
7463- ArrowButton: Added ArrowButton() given a cardinal direction (e.g. ImGuiDir_Left).
7464- InputText: Added alternative clipboard shortcuts: Shift+Delete (cut), CTRL+Insert (copy), Shift+Insert (paste). (#1541)
7465- InputText: Fixed losing Cursor X position when clicking outside on an item that's submitted
7466 after the InputText(). It was only noticeable when restoring focus programmatically. (#1418, #1554)
7467- InputText: Added ImGuiInputTextFlags_CharsScientific flag to also allow 'e'/'E' for input of values
7468 using scientific notation. Automatically used by InputFloat.
7469- Style: Default style is now StyleColorsDark(), instead of the old StyleColorsClassic(). (#707)
7470- Style: Enable window border by default. (#707)
7471- Style: Exposed ImGuiStyleVar_WindowTitleAlign, ImGuiStyleVar_ScrollbarSize, ImGuiStyleVar_ScrollbarRounding,
7472 ImGuiStyleVar_GrabRounding + added an assert to reduce accidental breakage. (#1181)
7473- Style: Added style.MouseCursorScale help when using the software mouse cursor facility. (#939).
7474- Style: Close buttons now display a cross before hovering. Fixed cross positioning being a little off. Uses button colors for highlight when hovering. (#707)
7475- Popup: OpenPopup() Always reopen existing pop-ups. (Removed imgui_internal.h's OpenPopupEx() which was used for this.) (#1497, #1533).
7476- Popup: BeginPopupContextItem(), BeginPopupContextWindow(), BeginPopupContextVoid(), OpenPopupOnItemClick() all react on mouse release instead of mouse press. (~#439)
7477- Popup: Better handling of user mistakenly calling OpenPopup() every frame (with the 'reopen_existing' option).
7478 The error will now be more visible and easier to understand. (#1497)
7479- Popup: BeginPopup(): Exposed extra_flags parameter that are passed through to Begin(). (#1533)
7480- Popup: BeginPopupModal: fixed the conditional test for SetNextWindowPos() which was polling
7481 the wrong window, which in practice made the test succeed all the time.
7482- Tooltip: BeginTooltip() sets ImGuiWindowFlags_NoInputs flag.
7483- Scrollbar: Fixed ScrollbarY enable test after ScrollbarX has been enabled being a little
7484 off (small regression from Nov 2017). (#1574)
7485- Scrollbar: Fixed ScrollbarX enable test subtracting WindowPadding.x (this has been there
7486 since the addition of horizontal scroll bar!).
7487- Columns: Clear offsets data when columns count changed. (#1525)
7488- Columns: Fixed a memory leak of ImGuiColumnsSet's Columns vector. (#1529) [@unprompted]
7489- Columns: Fixed resizing a window very small breaking some columns positioning (broken in 1.53).
7490- Columns: The available column extent takes consideration of the right-most clipped pixel,
7491 so the right-most column may look a little wider but will contain the same amount of visible contents.
7492- MenuBar: Fixed menu bar pushing a clipping rect outside of its allocated bound (usually unnoticeable).
7493- TreeNode: nodes with the ImGuiTreeNodeFlags_Leaf flag correctly disable highlight when DragDrop is active. (#143, #581)
7494- Drag and Drop: Increased payload type string to 32 characters instead of 8. (#143)
7495- Drag and Drop: TreeNode as drop target displays rectangle over full frame. (#1597, #143)
7496- DragFloat: Fix/workaround for backends which do not preserve a valid mouse position when dragged out of bounds. (#1559)
7497- InputFloat: Allow inputting value using scientific notation e.g. "1e+10".
7498- InputDouble: Added InputDouble() function. We use a format string instead of a 'decimal_precision'
7499 parameter to also for "%e" and variants. (#1011)
7500- Slider, Combo: Use ImGuiCol_FrameBgHovered color when hovered. (#1456) [@stfx]
7501- Combo: BeginCombo(): Added ImGuiComboFlags_NoArrowButton to disable the arrow button and
7502 only display the wide value preview box.
7503- Combo: BeginCombo(): Added ImGuiComboFlags_NoPreview to disable the preview and only
7504 display a square arrow button.
7505- Combo: Arrow button isn't displayed over frame background so its blended color matches other buttons. Left side of the button isn't rounded.
7506- PlotLines: plot a flat line if scale_min==scale_max. (#1621)
7507- Fonts: Changed DisplayOffset.y to defaults to 0 instead of +1. Fixed rounding of Ascent/Descent
7508 to match TrueType renderer. If you were adding or subtracting (not assigning) to ImFont::DisplayOffset
7509 check if your fonts are correctly aligned vertically. (#1619)
7510- Fonts: Updated stb_truetype from 1.14 to stb_truetype 1.19. (w/ include fix from some platforms #1622)
7511- Fonts: Added optional FreeType rasterizer in misc/freetype. Moved from imgui_club repo. (#618) [@Vuhdo, @mikesart, @ocornut]
7512- Fonts: Moved extra_fonts/ to misc/fonts/.
7513- ImFontAtlas: Fixed cfg.MergeMode not reusing existing glyphs if available (always overwrote).
7514- ImFontAtlas: Handle stb_truetype stbtt_InitFont() and stbtt_PackBegin() possible failures
7515 more gracefully, GetTexDataAsRGBA32() won't crash during conversion. (#1527)
7516- ImFontAtlas: Moved mouse cursor data out of ImGuiContext, fix drawing them with multiple contexts.
7517 Also remove the last remaining undesirable dependency on ImGui in imgui_draw.cpp. (#939)
7518- ImFontAtlas: Added ImFontAtlasFlags_NoPowerOfTwoHeight flag to disable padding font height
7519 to nearest power of two. (#1613)
7520- ImFontAtlas: Added ImFontAtlasFlags_NoMouseCursors flag to disable baking software mouse cursors,
7521 mostly to save texture memory on very low end hardware. (#1613)
7522- ImDrawList: Fixed AddRect() with anti-aliasing disabled (lower-right corner pixel was often
7523 missing, rounding looks a little better.) (#1646)
7524- ImDrawList: Added CloneOutput() helper to facilitate the cloning of ImDrawData or ImDrawList for multi-threaded rendering.
7525- Misc: Functions passed to libc qsort are explicitly marked cdecl to support compiling with
7526 vectorcall as the default calling convention. (#1230, #1611) [@RandyGaul]
7527- Misc: ImVec2: added [] operator. This is becoming desirable for some code working of either
7528 axes independently. Better adding it sooner than later.
7529- Misc: NewFrame(): Added an assert to detect incorrect filling of the io.KeyMap[] array earlier. (#1555)
7530- Misc: Added IM_OFFSETOF() helper in imgui.h (previously was in imgui_internal.h)
7531- Misc: Added IM_NEW(), IM_DELETE() helpers in imgui.h (previously were in imgui_internal.h)
7532- Misc: Added obsolete redirection function GetItemsLineHeightWithSpacing() (which redirects to GetFrameHeightWithSpacing()), as intended and stated in docs of 1.53.
7533- Misc: Added misc/natvis/imgui.natvis for visual studio debugger users to easily visualize imgui internal types. Added to examples projects.
7534- Misc: Added IMGUI_USER_CONFIG to define a custom configuration filename. (#255, #1573, #1144, #41)
7535- Misc: Added IMGUI_STB_TRUETYPE_FILENAME and IMGUI_STB_RECT_PACK_FILENAME compile time directives to use another version of the stb_ files.
7536- Misc: Updated stb_rect_pack from 0.10 to 0.11 (minor changes).
7537 (Those flags are not used by ImGui itself, they only exists to make it easy for the engine/backend to pass information to the application in a standard manner.)
7538- Metrics: Added display of Columns state.
7539- Demo: Improved Selectable() examples. (#1528)
7540- Demo: Tweaked the Child demos, added a menu bar to the second child to test some navigation functions.
7541- Demo: Console: Using ImGuiCol_Text to be more friendly to color changes.
7542- Demo: Using IM_COL32() instead of ImColor() in ImDrawList-centric contexts. Trying to phase out use of the ImColor helper whenever possible.
7543- Examples: Files in examples/ now include their own changelog so it is easier to occasionally update your backends if needed.
7544- Examples: Using Dark theme by default. (#707). Tweaked demo code.
7545- Examples: Added support for horizontal mouse wheel for API that allows it. (#1463) [@tseeker]
7546- Examples: All examples now setup the io.BackendFlags to signify they can honor mouse cursors, gamepad, etc.
7547- Examples: DirectX10: Fixed erroneous call to io.Fonts->ClearInputData() + ClearTexData() that
7548 was left in DX10 example but removed in 1.47 (Nov 2015) in every other backends. (#1733)
7549- Examples: DirectX12: Added DirectX 12 example. (#301) [@jdm3]
7550- Examples: OpenGL3+GLFW,SDL: Changed GLSL shader version from 330 to 150. (#1466, #1504)
7551- Examples: OpenGL3+GLFW,SDL: Added a way to override the GLSL version string in the Init function. (#1466, #1504).
7552- Examples: OpenGL3+GLFW,SDL: Creating VAO in the render function so it can be more easily used by multiple shared OpenGL contexts. (#1217)
7553- Examples: OpenGL3+GLFW: Using 3.2 context instead of 3.3. (#1466)
7554- Examples: OpenGL: Setting up glPixelStorei() explicitly before uploading texture.
7555- Examples: OpenGL: Calls to glPolygonMode() are casting parameters as GLEnum to not fail with more strict backends. (#1628) [@ilia-glushchenko]
7556- Examples: Win32 (DirectX9,10,11,12): Added support for mouse cursor shapes. (#1495)
7557- Examples: Win32 (DirectX9,10,11,12: Support for windows using the CS_DBLCLKS class flag by handling the double-click messages (WM_LBUTTONDBLCLK etc.). (#1538, #754) [@ndandoulakis]
7558- Examples: Win32 (DirectX9,10,11,12): Made the Win32 proc handlers not assert if there is no active context yet, to be more flexible with creation order. (#1565)
7559- Examples: GLFW: Added support for mouse cursor shapes (the diagonal resize cursors are unfortunately not supported by GLFW at the moment. (#1495)
7560- Examples: GLFW: Don't attempt to change the mouse cursor input mode if it is set to GLFW_CURSOR_DISABLED by the application. (#1202) [@PhilCK]
7561- Examples: SDL: Added support for mouse cursor shapes. (#1626) [@olls]
7562- Examples: SDL: Using SDL_CaptureMouse() to retrieve coordinates outside of client area when dragging
7563 (SDL 2.0.4+ only, otherwise using SDL_WINDOW_INPUT_FOCUS instead of previously SDL_WINDOW_MOUSE_FOCUS). (#1559)
7564- Examples: SDL: Enabled vsync by default so people don't come at us when the examples are running at 2000 FPS and burning a CPU core.
7565- Examples: SDL: Using SDL_GetPerformanceCounter() / SDL_GetPerformanceFrequency() to handle frame-rate over 1000 FPS properly. (#996)
7566- Examples: SDL: Using scan-code exclusively instead of a confusing mixture of scan-codes and key-codes.
7567- Examples: SDL: Visual Studio: Added .vcxproj file. Using %SDL2_DIR% in the default .vcxproj
7568 and build files instead of %SDL_DIR%, the earlier being more standard.
7569- Examples: Vulkan: Visual Studio: Added .vcxproj file.
7570- Examples: Apple: Fixed filenames in OSX xcode project. Various other Mac friendly fixes. [@gerryhernandez etc.]
7571- Examples: Visual Studio: Disabled extraneous function-level check in Release build.
7572- Various fixes, tweaks, internal refactoring, optimizations, comments.
7573
7574
7575-----------------------------------------------------------------------
7576 VERSION 1.53 (Released 2017-12-25)
7577-----------------------------------------------------------------------
7578
7579Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.53
7580
7581Breaking Changes:
7582
7583- Renamed the emblematic `ShowTestWindow()` function to `ShowDemoWindow()`. Kept redirection function (will obsolete).
7584- Renamed `GetItemsLineHeightWithSpacing()` to `GetFrameHeightWithSpacing()` for consistency. Kept redirection function (will obsolete).
7585- Renamed `ImGuiTreeNodeFlags_AllowOverlapMode` flag to `ImGuiTreeNodeFlags_AllowItemOverlap`. Kept redirection enum (will obsolete).
7586- Obsoleted `IsRootWindowFocused()` in favor of using `IsWindowFocused(ImGuiFocusedFlags_RootWindow)`. Kept redirection function (will obsolete). (#1382)
7587- Obsoleted `IsRootWindowOrAnyChildFocused()` in favor of using `IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows)`. Kept redirection function (will obsolete). (#1382)
7588- Obsoleted `IsRootWindowOrAnyChildHovered()` in favor of using `IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows)`. Kept redirection function (will obsolete). (#1382)
7589- Obsoleted `SetNextWindowContentWidth() in favor of using `SetNextWindowContentSize()`. Kept redirection function (will obsolete).
7590- Renamed `ImGuiTextBuffer::append()` helper to `appendf()`, and `appendv()` to `appendfv()` for consistency. If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed.
7591- ImDrawList: Removed 'bool anti_aliased = true' final parameter of `ImDrawList::AddPolyline()` and `ImDrawList::AddConvexPolyFilled()`. Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame.
7592- Style, ImDrawList: Renamed `style.AntiAliasedShapes` to `style.AntiAliasedFill` for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags.
7593- Style, Begin: Removed `ImGuiWindowFlags_ShowBorders` window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. `style.FrameBorderSize`, `style.WindowBorderSize`, `style.PopupBorderSize`).
7594 Use `ImGui::ShowStyleEditor()` to look them up.
7595 Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time.
7596 It is recommended that you use the `StyleColorsClassic()`, `StyleColorsDark()`, `StyleColorsLight()` functions. Also see `ShowStyleSelector()`.
7597- Style: Removed `ImGuiCol_ComboBg` in favor of combo boxes using `ImGuiCol_PopupBg` for consistency. Combo are normal pop-ups.
7598- Style: Renamed `ImGuiCol_ChildWindowBg` to `ImGuiCol_ChildBg`.
7599- Style: Renamed `style.ChildWindowRounding` to `style.ChildRounding`, `ImGuiStyleVar_ChildWindowRounding` to `ImGuiStyleVar_ChildRounding`.
7600- Removed obsolete redirection functions: SetScrollPosHere() - marked obsolete in v1.42, July 2015.
7601- Removed obsolete redirection functions: GetWindowFont(), GetWindowFontSize() - marked obsolete in v1.48, March 2016.
7602
7603Other Changes:
7604
7605- Added `io.OptCursorBlink` option to allow disabling cursor blinking. (#1427) [renamed to io.ConfigCursorBlink in 1.63]
7606- Added `GetOverlayDrawList()` helper to quickly get access to a ImDrawList that will be rendered in front of every windows.
7607- Added `GetFrameHeight()` helper which returns `(FontSize + style.FramePadding.y * 2)`.
7608- Drag and Drop: Added Beta API to easily use drag and drop patterns between imgui widgets.
7609 - Setup a source on a widget with `BeginDragDropSource()`, `SetDragDropPayload()`, `EndDragDropSource()` functions.
7610 - Receive data with `BeginDragDropTarget()`, `AcceptDragDropPayload()`, `EndDragDropTarget()`.
7611 - See ImGuiDragDropFlags for various options.
7612 - The ColorEdit4() and ColorButton() widgets now support Drag and Drop.
7613 - The API is tagged as Beta as it still may be subject to small changes.
7614- Drag and Drop: When drag and drop is active, tree nodes and collapsing header can be opened
7615 by hovering on them for 0.7 seconds.
7616- Renamed io.OSXBehaviors to io.OptMacOSXBehaviors. Should not affect users as the compile-time
7617 default is usually enough. (#473, #650)
7618- Style: Added StyleColorsDark() style. (#707) [@dougbinks]
7619- Style: Added StyleColorsLight() style. Best used with frame borders + thicker font than the default font. (#707)
7620- Style: Added style.PopupRounding setting. (#1112)
7621- Style: Added style.FrameBorderSize, style.WindowBorderSize, style.PopupBorderSize.
7622 Removed ImGuiWindowFlags_ShowBorders window flag!
7623 Borders are now fully set up in the ImGuiStyle structure. Use ImGui::ShowStyleEditor() to look them up. (#707, fix #819, #1031)
7624- Style: Various small changes to the classic style (most noticeably, buttons are now using blue shades). (#707)
7625- Style: Renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg.
7626- Style: Renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding.
7627- Style: Removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. (#707)
7628- Style: Made the ScaleAllSizes() helper rounds down every values so they are aligned on integers.
7629- Focus: Added SetItemDefaultFocus(), which in the current (master) branch behave the same
7630 as doing `if (IsWindowAppearing()) SetScrollHere()`. In the navigation branch this will also
7631 set the default focus. Prefer using this when creating combo boxes with `BeginCombo()` so your
7632 code will be forward-compatible with gamepad/keyboard navigation features. (#787)
7633- Combo: Pop-up grows horizontally to accommodate for contents that is larger then the parent
7634 combo button.
7635- Combo: Added BeginCombo()/EndCombo() API which allows use to submit content of any form and
7636 manage your selection state without relying on indices.
7637- Combo: Added ImGuiComboFlags_PopupAlignLeft flag to BeginCombo() to prioritize keeping the
7638 pop-up on the left side (for small-button-looking combos).
7639- Combo: Added ImGuiComboFlags_HeightSmall, ImGuiComboFlags_HeightLarge, ImGuiComboFlags_HeightLargest
7640 to easily provide desired pop-up height.
7641- Combo: You can use SetNextWindowSizeConstraints() before BeginCombo() to specify specific
7642 pop-up width/height constraints.
7643- Combo: Offset popup position by border size so that a double border isn't so visible. (#707)
7644- Combo: Recycling windows by using a stack number instead of a unique id, wasting less memory (like menus do).
7645- InputText: Added ImGuiInputTextFlags_NoUndoRedo flag. (#1506, #1508) [@ibachar]
7646- Window: Fixed auto-resize allocating too much space for scrollbar when SizeContents is
7647 bigger than maximum window size (fixes c0547d3). (#1417)
7648- Window: Child windows with MenuBar use regular WindowPadding.y so layout look consistent as
7649 child or as a regular window.
7650- Window: Begin(): Fixed appending into a child window with a second Begin() from a different
7651 window stack querying the wrong window for the window->Collapsed test.
7652- Window: Calling IsItemActive(), IsItemHovered() etc. after a call to Begin() provides item
7653 data for the title bar, so you can easily test if the title bar is being hovered, etc. (#823)
7654- Window: Made it possible to use SetNextWindowPos() on a child window.
7655- Window: Fixed a one frame glitch. When an appearing window claimed the focus themselves, the
7656 title bar wouldn't use the focused color for one frame.
7657- Window: Added ImGuiWindowFlags_ResizeFromAnySide flag to resize from any borders or from the
7658 lower-left corner of a window. This requires your backend to honor GetMouseCursor() requests
7659 for full usability. (#822)
7660- Window: Sizing fixes when using SetNextWindowSize() on individual axes.
7661- Window: Hide new window for one frame until they calculate their size.
7662 Also fixes SetNextWindowPos() given a non-zero pivot. (#1694)
7663- Window: Made mouse wheel scrolling accommodate better to windows that are smaller than the scroll step.
7664- Window: SetNextWindowContentSize() adjust for the size of decorations (title bar/menu bar),
7665 but _not_ for borders are we consistently make borders not affect layout.
7666 If you need a non-child window of an exact size with border enabled but zero window padding,
7667 you'll need to accommodate for the border size yourself.
7668- Window: Using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel
7669 event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar
7670 are also set. (#1380, #1502)
7671- Window: Active Modal window always set the WantCaptureKeyboard flag. (#744)
7672- Window: Moving window doesn't use accumulating MouseDelta so straying out of imgui boundaries keeps moved imgui window at the same cursor-relative position.
7673- IsWindowFocused(): Added ImGuiFocusedFlags_ChildWindows flag to include child windows in the focused test. (#1382).
7674- IsWindowFocused(): Added ImGuiFocusedFlags_RootWindow flag to start focused test from the root (top-most) window. Obsolete IsRootWindowFocused(). (#1382)
7675- IsWindowHovered(): Added ImGuiHoveredFlags_ChildWindows flag to include child windows in the hovered test. (#1382).
7676- IsWindowHovered(): Added ImGuiHoveredFlags_RootWindow flag to start hovered test from the root (top-most) window. The combination of both flags obsoletes IsRootWindowOrAnyChildHovered(). (#1382)
7677- IsWindowHovered(): Fixed return value when an item is active to use the same logic as IsItemHovered(). (#1382, #1404)
7678- IsWindowHovered(): Always return true when current window is being moved. (#1382)
7679- Scrollbar: Fixed issues with vertical scrollbar flickering/appearing, typically when manually
7680 resizing and using a pattern of filling available height (e.g. full sized BeginChild).
7681- Scrollbar: Minor graphical fix for when scrollbar don't have enough visible space to display the full grab.
7682- Scrolling: Fixed padding and scrolling asymmetry where lower/right sides of a window wouldn't
7683 use WindowPadding properly + causing minor scrolling glitches.
7684- Tree: TreePush with zero arguments was ambiguous. Resolved by making it call TreePush(const void*). [@JasonWilkins]
7685- Tree: Renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. (#600, #1330)
7686- MenuBar: Fixed minor rendering issues on the right size when resizing a window very small and using rounded window corners.
7687- MenuBar: better software clipping to handle small windows, in particular child window don't have
7688 minimum constraints so we need to render clipped menus better.
7689- BeginMenu(): Tweaked the Arrow/Triangle displayed on child menu items.
7690- Columns: Clipping columns borders on Y axis on CPU because some Linux GPU drivers appears to
7691 be unhappy with triangle spanning large regions. (#125)
7692- Columns: Added ImGuiColumnsFlags_GrowParentContentsSize to internal API to restore old content
7693 sizes behavior (may be obsolete). (#1444, #125)
7694- Columns: Columns width is no longer lost when dragging a column to the right side of the window,
7695 until releasing the mouse button you have a chance to save them. (#1499, #125). [@ggtucker]
7696- Columns: Fixed dragging when using a same of columns multiple times in the frame. (#125)
7697- Indent(), Unindent(): Allow passing negative values.
7698- ColorEdit4(): Made IsItemActive() return true when picker pop-up is active. (#1489)
7699- ColorEdit4(): Tweaked tooltip so that the color button aligns more correctly with text.
7700- ColorEdit4(): Support drag and drop. Color buttons can be used as drag sources, and ColorEdit
7701 widgets as drag targets. (#143)
7702- ColorPicker4(): Fixed continuously returning true when holding mouse button on the sat/value/alpha
7703 locations. We only return true on value change. (#1489)
7704- NewFrame(): using literal strings in the most-frequently firing IM_ASSERT expressions to
7705 increase the odd of programmers seeing them (especially those who don't use a debugger).
7706- NewFrame() now asserts if neither Render or EndFrame have been called. Exposed EndFrame().
7707 Made it legal to call EndFrame() more than one. (#1423)
7708- ImGuiStorage: Added BuildSortByKey() helper to rebuild storage from scratch.
7709- ImFont: Added GetDebugName() helper.
7710- ImFontAtlas: Added missing Thai punctuation in the GetGlyphRangesThai() ranges. (#1396) [@nProtect]
7711- ImDrawList: Removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Anti-aliasing is controlled via the regular style.AntiAliased flags.
7712- ImDrawList: Added ImDrawList::AddImageRounded() helper. (#845) [@thedmd]
7713- ImDrawList: Refactored to make ImDrawList independent of ImGui. Removed static variable in PathArcToFast() which caused linking issues to some.
7714- ImDrawList: Exposed ImDrawCornerFlags, replaced occurrences of ~0 with an explicit ImDrawCornerFlags_All.
7715 NB: Inversed BotLeft (prev 1<<3, now 1<<2) and BotRight (prev 1<<2, now 1<<3).
7716- ImVector: Added ImVector::push_front() helper.
7717- ImVector: Added ImVector::contains() helper.
7718- ImVector: insert() uses grow_capacity() instead of using grow policy inconsistent with push_back().
7719- Internals: Remove requirement to define IMGUI_DEFINE_PLACEMENT_NEW to use the IM_PLACEMENT_NEW macro. (#1103)
7720- Internals: ButtonBehavior: Fixed ImGuiButtonFlags_NoHoldingActiveID flag from incorrectly
7721 setting the ActiveIdClickOffset field. This had no known effect within imgui code but could have
7722 affected custom drag and drop patterns. And it is more correct this way! (#1418)
7723- Internals: ButtonBehavior: Fixed ImGuiButtonFlags_AllowOverlapMode to avoid temporarily activating
7724widgets on click before they have been correctly double-hovered. (#319, #600)
7725- Internals: Added SplitterBehavior() helper. (#319)
7726- Internals: Added IM_NEW(), IM_DELETE() helpers. (#484, #504, #1517)
7727- Internals: Basic refactor of the settings API which now allows external elements to be loaded/saved.
7728- Demo: Added ShowFontSelector() showing loaded fonts.
7729- Demo: Added ShowStyleSelector() to select among default styles. (#707)
7730- Demo: Renamed the emblematic ShowTestWindow() function to ShowDemoWindow().
7731- Demo: Style Editor: Added a "Simplified settings" sections with check-boxes for border size and frame rounding. (#707, #1019)
7732- Demo: Style Editor: Added combo box to select stock styles and select current font when multiple are loaded. (#707)
7733- Demo: Style Editor: Using local storage so Save/Revert button makes more sense without code passing
7734 its storage. Added horizontal scroll bar. Fixed Save/Revert button to be always accessible. (#1211)
7735- Demo: Console: Fixed context menu issue. (#1404)
7736- Demo: Console: Fixed incorrect positioning which was hidden by a minor scroll issue (this would
7737 affect people who copied the Console code as is).
7738- Demo: Constrained Resize: Added more test cases. (#1417)
7739- Demo: Custom Rendering: Fixed clipping rectangle extruding out of parent window.
7740- Demo: Layout: Removed unnecessary and misleading BeginChild/EndChild calls.
7741- Demo: The "Color Picker with Palette" demo supports drag and drop. (#143)
7742- Demo: Display better mouse cursor info for debugging backends.
7743- Demo: Stopped using rand() function in demo code.
7744- Examples: Added a handful of extra comments (about fonts, third-party libraries used in the examples, etc.).
7745- Examples: DirectX9: Handle loss of D3D9 device (D3DERR_DEVICELOST). (#1464)
7746- Examples: Added null_example/ which is helpful for quick testing on multiple compilers/settings without relying on graphics library.
7747- Fix for using alloca() in "Clang with Microsoft Codechain" mode.
7748- Various fixes, optimizations, comments.
7749
7750
7751-----------------------------------------------------------------------
7752 VERSION 1.52 (2017-10-27)
7753-----------------------------------------------------------------------
7754
7755Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.52
7756
7757Breaking Changes:
7758
7759- IO: `io.MousePos` needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing,
7760 instead of ImVec2(-1,-1) as previously) This is needed so we can clear `io.MouseDelta` field when
7761 the mouse is made available again.
7762- Renamed `AlignFirstTextHeightToWidgets()` to `AlignTextToFramePadding()`.
7763 Kept inline redirection function (will obsolete).
7764- Obsoleted the legacy 5 parameters version of Begin(). Please avoid using it. If you need a
7765 transparent window background, uses `PushStyleColor()`. The old size parameter there was also
7766 misleading and equivalent to calling `SetNextWindowSize(size, ImGuiCond_FirstTimeEver)`.
7767 Kept inline redirection function (will obsolete).
7768- Obsoleted `IsItemHoveredRect()`, `IsMouseHoveringWindow()` in favor of using the newly introduced
7769 flags of `IsItemHovered()` and `IsWindowHovered()`. Kept inline redirection function (will obsolete). (#1382)
7770- Obsoleted 'SetNextWindowPosCenter()' in favor of using 1SetNextWindowPos()` with a pivot value which
7771 allows to do the same and more. Keep inline redirection function.
7772- Removed `IsItemRectHovered()`, `IsWindowRectHovered()` recently introduced in 1.51 which were merely
7773 the more consistent/correct names for the above functions which are now obsolete anyway. (#1382)
7774- Changed `IsWindowHovered()` default parameters behavior to return false if an item is active in
7775 another window (e.g. click-dragging item from another window to this window). You can use the newly
7776 introduced IsWindowHovered() flags to requests this specific behavior if you need it. (#1382)
7777- Renamed imconfig.h's `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS`
7778 to `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS` for consistency.
7779- Renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete).
7780
7781Other Changes:
7782
7783- ProgressBar: fixed rendering when straddling rounded area. (#1296)
7784- SliderFloat, DragFloat: Using scientific notation e.g. "%.1e" in the displayed format string doesn't
7785 mistakenly trigger rounding of the value. [@MomentsInGraphics]
7786- Combo, InputFloat, InputInt: Made the small button on the right side align properly with the
7787 equivalent colored button of ColorEdit4().
7788- IO: Tweaked logic for `io.WantCaptureMouse` so it now outputs false when e.g. hovering over void
7789 while an InputText() is active. (#621) [@pdoane]
7790- IO: Fixed `io.WantTextInput` from mistakenly outputting true when an activated Drag or Slider was
7791 previously turned into an InputText(). (#1317)
7792- Misc: Added flags to `IsItemHovered()`, `IsWindowHovered()` to access advanced hovering-test behavior.
7793 Generally useful for pop-ups and drag and drop behaviors: (relates to ~#439, #1013, #143, #925)
7794 - `ImGuiHoveredFlags_AllowWhenBlockedByPopup`
7795 - `ImGuiHoveredFlags_AllowWhenBlockedByActiveItem`
7796 - `ImGuiHoveredFlags_AllowWhenOverlapped`
7797 - `ImGuiHoveredFlags_RectOnly`
7798- Input: Added `IsMousePosValid()` helper.
7799- Input: Added `GetKeyPressedAmount()` to easily measure press count when the repeat rate is faster than the frame rate.
7800- Input/Focus: Disabled TAB and Shift+TAB when CTRL key is held.
7801- CheckBox: Now rendering a tick mark instead of a full square.
7802- ColorEdit4: Added "Copy as..." option in context menu. (#346)
7803- ColorPicker: Improved ColorPicker hue wheel color interpolation. (#1313) [@thevaber]
7804- ColorButton: Reduced bordering artifact that would be particularly visible with an opaque
7805 Col_FrameBg and FrameRounding enabled.
7806- ColorButton: Fixed rendering color button with a checkerboard if the transparency comes from the global
7807 style.Alpha and not from the actual source color.
7808- TreeNode: Added `ImGuiTreeNodeFlags_FramePadding` flag to conveniently create a tree node with full
7809 padding at the beginning of a line, without having to call `AlignTextToFramePadding()`.
7810- Trees: Fixed calling `SetNextTreeNodeOpen()` on a collapsed window leaking to the first tree node item of the next frame.
7811- Layout: Horizontal layout is automatically enforced in a menu bar, so you can use non-MenuItem elements
7812 without calling SameLine().
7813- Separator: Output a vertical separator when used inside a menu bar (or in general when horizontal layout
7814 is active, but that isn't exposed yet!).
7815- Window: Added `IsWindowAppearing()` helper (helpful e.g. as a condition before initializing some of your own things.).
7816- Window: Added pivot parameter to `SetNextWindowPos()`, making it possible to center or right align a window. Obsoleted `SetNextWindowPosCenter()`.
7817- Window: Fixed title bar color of top-most window under a modal window.
7818- Window: Fixed not being able to move a window by clicking on one of its child window. (#1337, #635)
7819- Window: Fixed `Begin()` auto-fit calculation code that predict the presence of a scrollbar so it works
7820 better when window size constraints are used.
7821- Window: Fixed calling `Begin()` more than once per frame setting `window_just_activated_by_user` which
7822 in turn would set enable the Appearing condition for that frame.
7823- Window: The implicit "Debug" window now uses a "Debug##Default" identifier instead of "Debug" to allow
7824 user creating a window called "Debug" without losing their custom flags.
7825- Window: Made the `ImGuiWindowFlags_NoMove` flag properly inherited from parent to child. In a setup
7826 with ParentWindow (no flag) -> Child (NoMove) -> SubChild (no flag), the user won't be able to move
7827 the parent window by clicking on SubChild. (#1381)
7828- Popups: Pop-ups can be closed with a right-click anywhere, without altering focus under the pop-up. (~#439)
7829- Popups: `BeginPopupContextItem()`, `BeginPopupContextWindow()` are now setup to allow reopening
7830 a context menu by right-clicking again. (~#439)
7831- Popups: `BeginPopupContextItem()` now supports a NULL string identifier and uses the last item ID if available.
7832- Popups: Added `OpenPopupOnItemClick()` helper which mimic `BeginPopupContextItem()` but doesn't do the BeginPopup().
7833- MenuItem: Only activating on mouse release. [@Urmeli0815] (was already fixed in nav branch).
7834- MenuItem: Made tick mark thicker (thick mark?).
7835- MenuItem: Tweaks to be usable inside a menu bar (nb: it looks like a regular menu and thus is misleading,
7836 prefer using Button() and regular widgets in menu bar if you need to). (#1387)
7837- ImDrawList: Fixed a rare draw call merging bug which could lead to undisplayed triangles. (#1172, #1368)
7838- ImDrawList: Fixed a rare bug in `ChannelsMerge()` when all contents has been clipped, leading to
7839 an extraneous draw call being created. (#1172, #1368)
7840- ImFont: Added `AddGlyph()` building helper for use by custom atlas builders.
7841- ImFontAtlas: Added support for CustomRect API to submit custom rectangles to be packed into the atlas.
7842 You can map them as font glyphs, or use them for custom purposes.
7843 After the atlas is built you can query the position of your rectangles in the texture and then copy
7844 your data there. You can use this features to create e.g. full color font-mapped icons.
7845- ImFontAtlas: Fixed fall-back handling when merging fonts, if a glyph was missing from the second font
7846 input it could have used a glyph from the first one. (#1349) [@inolen]
7847- ImFontAtlas: Fixed memory leak on build failure case when stbtt_InitFont failed (generally due to
7848 incorrect or supported font type). (#1391) (@Moka42)
7849- ImFontConfig: Added `RasterizerMultiply` option to alter the brightness of individual fonts at
7850 rasterization time, which may help increasing readability for some.
7851- ImFontConfig: Added `RasterizerFlags` to pass options to custom rasterizer (e.g. the
7852 [imgui_freetype](https://github.com/ocornut/imgui_club/tree/master/imgui_freetype) rasterizer in imgui_club has such options).
7853- ImVector: added resize() variant with initialization value.
7854- Misc: Changed the internal name formatting of child windows identifier to use slashes
7855 (instead of dots) as separator, more readable.
7856- Misc: Fixed compilation with `IMGUI_DISABLE_OBSOLETE_FUNCTIONS` defined.
7857- Misc: Marked all format+va_list functions with format attribute so GCC/Clang can warn about misuses.
7858- Misc: Fixed compilation on NetBSD due to missing alloca.h (#1319) [@RyuKojiro]
7859- Misc: Improved warnings compilation for newer versions of Clang. (#1324) (@waywardmonkeys)
7860- Misc: Added `io.WantMoveMouse flags` (from Nav branch) and honored in Examples applications.
7861 Currently unused but trying to spread Examples applications code that supports it.
7862- Misc: Added `IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS` support in imconfig.h to allow user
7863 reimplementing the `ImFormatString()` functions e.g. to use stb_printf(). (#1038)
7864- Misc: [Windows] Fixed default Win32 `SetClipboardText()` handler leaving the Win32 clipboard
7865 handler unclosed on failure. [@pdoane]
7866- Style: Added `ImGuiStyle::ScaleAllSizes(float)` helper to make it easier to have application
7867 transition e.g. from low to high DPI with a matching style.
7868- Metrics: Draw window bounding boxes when hovering Pos/Size; List all draw layers; Trimming empty commands like Render() does.
7869- Examples: OpenGL3: Save and restore sampler state. (#1145) [@nlguillemot]
7870- Examples: OpenGL2, OpenGL3: Save and restore polygon mode. (#1307) [@JJscott]
7871- Examples: DirectX11: Allow creating device with feature level 10 since we don't really need much for that example. (#1333)
7872- Examples: DirectX9/10/12: Using the Win32 SetCapture/ReleaseCapture API to read mouse coordinates
7873 when they are out of bounds. (#1375) [@Gargaj, @ocornut]
7874- Tools: Fixed binary_to_compressed_c tool to return 0 when successful. (#1350) [@benvanik]
7875- Internals: Exposed more helpers and unfinished features in imgui_internal.h. (use at your own risk!).
7876- Internals: A bunch of internal refactoring, hopefully haven't broken anything!
7877 Merged a bunch of internal changes from the upcoming Navigation branch.
7878- Various tweaks, fixes and documentation changes.
7879
7880Beta Navigation Branch:
7881(Lots of work has been done toward merging the Beta Gamepad/Keyboard Navigation branch (#787) in master.)
7882(Please note that this branch is always kept up to date with master. If you are using the navigation branch, some of the changes include:)
7883- Nav: Added `#define IMGUI_HAS_NAV` in imgui.h to ease sharing code between both branches. (#787)
7884- Nav: MainMenuBar now releases focus when user gets out of the menu layer. (#787)
7885- Nav: When applying focus to a window with only menus, the menu layer is automatically activated. (#787)
7886- Nav: Added `ImGuiNavInput_KeyMenu` (~Alt key) aside from ImGuiNavInput_PadMenu input as it is
7887 one differentiator of pad vs keyboard that was detrimental to the keyboard experience.
7888 Although isn't officially supported, it makes the current experience better. (#787)
7889- Nav: Move requests now wrap vertically inside Menus and Pop-ups. (#787)
7890- Nav: Allow to collapse tree nodes with NavLeft and open them with NavRight. (#787, #1079).
7891- Nav: It's now possible to navigate sibling of a menu-bar while navigating inside one of their child.
7892 If a Left<>Right navigation request fails to find a match we forward the request to the root menu. (#787, #126)
7893- Nav: Fixed `SetItemDefaultFocus` from stealing default focus when we are initializing default focus for a menu bar layer. (#787)
7894- Nav: Support for fall-back horizontal scrolling with PadLeft/PadRight (nb: fall-back scrolling
7895 is only used to navigate windows that have no interactive items). (#787)
7896- Nav: Fixed tool-tip from being selectable in the window selection list. (#787)
7897- Nav: `CollapsingHeader(bool*)` variant: fixed for `IsItemHovered()` not working properly in the nav branch. (#600, #787)
7898- Nav: InputText: Fixed using Up/Down history callback feature when Nav is enabled. (#787)
7899- Nav: InputTextMultiline: Fixed navigation/selection. Disabled selecting all when activating a multi-line text editor. (#787)
7900- Nav: More consistently drawing a (thin) navigation rectangle hover filled frames such as tree nodes, collapsing header, menus. (#787)
7901- Nav: Various internal refactoring.
7902
7903
7904-----------------------------------------------------------------------
7905 VERSION 1.51 (2017-08-24)
7906-----------------------------------------------------------------------
7907
7908Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.51
7909
7910Breaking Changes:
7911
7912Work on dear imgui has been gradually resuming. It means that fixes and new features should be tackled at
7913a faster rate than last year. However, in order to move forward with the library and get rid of some cruft,
7914I have taken the liberty to be a little bit more aggressive than usual with API breaking changes.
7915Read the details below and search for those names in your code! In the grand scheme of things,
7916those changes are small and should not affect everyone, but this is technically our most aggressive
7917release so far in term of API breakage.
7918If you want to be extra forward-facing, you can enable `#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in
7919your imconfig.h to disable the obsolete names/redirection.
7920
7921- Renamed `IsItemHoveredRect()` to `IsItemRectHovered()`. Kept inline redirection function (will obsolete).
7922- Renamed `IsMouseHoveringWindow()` to `IsWindowRectHovered()` for consistency. Kept inline redirection function (will obsolete).
7923- Renamed `IsMouseHoveringAnyWindow()` to `IsAnyWindowHovered()` for consistency. Kept inline redirection function (will obsolete).
7924- Renamed `ImGuiCol_Columns***` enums to `ImGuiCol_Separator***`. Kept redirection enums (will obsolete).
7925- Renamed `ImGuiSetCond***` types and enums to `ImGuiCond***`. Kept redirection enums (will obsolete).
7926- Renamed `GetStyleColName()` to `GetStyleColorName()` for consistency. Unlikely to be used by end-user!
7927- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload, which _might_ cause an "ambiguous call"
7928 compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicitly to fix.
7929- Marked the weird `IMGUI_ONCE_UPON_A_FRAME` helper macro as obsolete. Prefer using the more explicit `ImGuiOnceUponAFrame`.
7930- Changed `ColorEdit4(const char* label, float col[4], bool show_alpha = true)` signature to
7931 `ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)`, where flags 0x01 is a safe no-op
7932 (hello dodgy backward compatibility!). The new `ColorEdit4`/`ColorPicker4` functions have lots of available flags!
7933 Check and run the demo window, under "Color/Picker Widgets", to understand the various new options.
7934- Changed signature of `ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)`
7935 to `ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0,0))`.
7936 This function was rarely used and was very dodgy (no explicit ID!).
7937- Changed `BeginPopupContextWindow(bool also_over_items=true, const char* str_id=NULL, int mouse_button=1)`
7938 signature to `(const char* str_id=NULL, int mouse_button=1, bool also_over_items=true)`.
7939 This is perhaps the most aggressive change in this update, but note that the majority of users relied
7940 on default parameters completely, so this will affect only a fraction of users of this already rarely
7941 used function.
7942- Removed `IsPosHoveringAnyWindow()`, which was partly broken and misleading. In the vast majority of cases,
7943 people using that function wanted to use `io.WantCaptureMouse` flag. Replaced with IM_ASSERT + a comment
7944 redirecting user to `io.WantCaptureMouse`. (#1237)
7945- Removed the old `ValueColor()` helpers, they are equivalent to calling `Text(label)` + `SameLine()` + `ColorButton()`.
7946- Removed `ColorEditMode()` and `ImGuiColorEditMode` type in favor of `ImGuiColorEditFlags` and
7947 parameters to the various Color*() functions. The `SetColorEditOptions()` function allows to
7948 initialize default but the user can still change them with right-click context menu.
7949 Commenting out your old call to `ColorEditMode()` may just be fine!
7950
7951Other Changes:
7952
7953- Added flags to `ColorEdit3()`, `ColorEdit4()`. The color edit widget now has a context-menu
7954 and access to the color picker. (#346)
7955- Added flags to `ColorButton()`. (#346)
7956- Added `ColorPicker3()`, `ColorPicker4()`. (#346) [@r-lyeh, @nem0, @thennequin, @dariomanesku and @ocornut]
7957 The API along with those of the updated `ColorEdit4()` was designed so you may use them in various
7958 situation and hopefully compose your own picker if required. There are a bunch of available flags,
7959 check the Demo window and comment for `ImGuiColorEditFlags_`.
7960 Some of the options it supports are: two color picker types (hue bar + sat/val rectangle,
7961 hue wheel + rotating sat/val triangle), display as u8 or float, lifting 0.0..1.0 constraints
7962 (currently rgba only), context menus, alpha bar, background checkerboard options, preview tooltip,
7963 basic revert. For simple use, calling the existing `ColorEdit4()` function as you did before
7964 will be enough, as you can now open the color picker from there.
7965- Added `SetColorEditOptions()` to set default color options (e.g. if you want HSV over RGBA,
7966 float over u8, select a default picker mode etc. at startup time without a user intervention.
7967 Note that the user can still change options with the context menu unless disabled with
7968 `ImGuiColorFlags_NoOptions` or explicitly enforcing a display type/picker mode etc.).
7969- Added user-facing `IsPopupOpen()` function. (#891) [@mkeeter]
7970- Added `GetColorU32(u32)` variant that perform the style alpha multiply without a floating-point
7971 round trip, and helps makes code more consistent when using ImDrawList APIs.
7972- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload.
7973- Added `GetStyleColorVec4(ImGuiCol idx)` which is equivalent to accessing `ImGui::GetStyle().Colors[idx]`
7974 (aka return the raw style color without alpha alteration).
7975- ImFontAtlas: Added `GlyphRangesBuilder` helper class, which makes it easier to build custom glyph ranges
7976 from your app/game localization data, or add into existing glyph ranges.
7977- ImFontAtlas: Added `TexGlyphPadding` option. (#1282) [@jadwallis]
7978- ImFontAtlas: Made it possible to override size of AddFontDefault() (even if it isn't really recommended!).
7979- ImDrawList: Added `GetClipRectMin()`, `GetClipRectMax()` helpers.
7980- Fixed Ini saving crash if the ImGuiWindowFlags_NoSavedSettings gets removed from a window after its creation (unlikely!). (#1000)
7981- Fixed `PushID()`/`PopID()` from marking parent window as Accessed (which needlessly woke up the
7982 root "Debug" window when used outside of a regular window). (#747)
7983- Fixed an assert when calling `CloseCurrentPopup()` twice in a row. [@nem0]
7984- Window size can be loaded from .ini data even if ImGuiWindowFlags_NoResize flag is set. (#1048, #1056)
7985- Columns: Added `SetColumnWidth()`. (#913) [@ggtucker]
7986- Columns: Dragging a column preserve its width by default. (#913) [@ggtucker]
7987- Columns: Fixed first column appearing wider than others. (#1266)
7988- Columns: Fixed allocating space on the right-most side with the assumption of a vertical scrollbar.
7989 The space is only allocated when needed. (#125, #913, #893, #1138)
7990- Columns: Fixed the right-most column from registering its content width to the parent window,
7991 which led to various issues when using auto-resizing window or e.g. horizontal scrolling. (#519, #125, #913)
7992- Columns: Refactored some of the columns code internally toward a better API (not yet exposed) + minor optimizations. (#913) [@ggtucker, @ocornut]
7993- Popups: Most pop-ups windows can be moved by the user after appearing (if they don't have explicit
7994 positions provided by caller, or e.g. sub-menu pop-up). The previous restriction was totally arbitrary. (#1252)
7995- Tooltip: `SetTooltip()` is expanded immediately into a window, honoring current font / styling setting.
7996 Add internal mechanism to override tooltips. (#862)
7997- PlotHistogram: bars are drawn based on zero-line, so negative values are going under. (#828)
7998- Scrolling: Fixed return values of `GetScrollMaxX()`, `GetScrollMaxY()` when both scrollbars were enabled.
7999 Tweak demo to display more data. (#1271) [@degracode]
8000- Scrolling: Fixes for Vertical Scrollbar not automatically getting enabled if enabled Horizontal Scrollbar straddle the vertical limit. (#1271, #246)
8001- Scrolling: `SetScrollHere()`, `SetScrollFromPosY()`: Fixed Y scroll aiming when Horizontal Scrollbar is enabled. (#665).
8002- [Windows] Clipboard: Fixed not closing Win32 clipboard on early open failure path. (#1264)
8003- Removed an unnecessary dependency on int64_t which failed on some older compilers.
8004- Demo: Rearranged everything under Widgets in a more consistent way.
8005- Demo: Columns: Added Horizontal Scrolling demo. Tweaked another Columns demo. (#519, #125, #913)
8006- Examples: OpenGL: Various makefiles for MINGW, Linux. (#1209, #1229, #1209) [@fr500, @acda]
8007- Examples: Enabled vsync by default in example applications, so it doesn't confuse people that
8008 the sample run at 2000+ fps and waste an entire CPU. (#1213, #1151).
8009- Various other small fixes, tweaks, comments, optimizations.
8010
8011
8012-----------------------------------------------------------------------
8013 VERSION 1.50 (2017-06-02)
8014-----------------------------------------------------------------------
8015
8016Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.50
8017
8018Breaking Changes:
8019
8020- Added a void* user_data parameter to Clipboard function handlers. (#875)
8021- SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window.
8022 This was sort of always the intent and hopefully breakage should be minimal.
8023- Renamed ImDrawList::PathFill() - rarely used directly - to ImDrawList::PathFillConvex() for clarity and consistency.
8024- Removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset.
8025- Style: style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f)
8026 for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc.
8027- BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions
8028 as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple
8029 times to a same child from different locations of the stack id. If that's the case, generate an id with GetId()
8030 and use it instead of passing string to BeginChild().
8031
8032Other Changes:
8033
8034- InputText(): Added support for CTRL+Backspace (delete word).
8035- InputText(): OSX uses Super+Arrows for home/end. Add Shortcut+Backspace support. (#650) [@michaelbartnett]
8036- InputText(): Got rid of individual OSX-specific options in ImGuiIO, added a single io.OSXBehaviors flag. (#473, #650)
8037- InputText(): Fixed pressing home key on last character when it isn't a trailing \n (#588, #815)
8038- InputText(): Fixed state corruption/crash bug in stb_textedit.h redo logic when exhausting undo/redo char buffer. (#715. #681)
8039- InputTextMultiline(): Fixed CTRL+DownArrow moving scrolling out of bounds.
8040- InputTextMultiline(): Scrollbar fix for when input and latched internal buffers differs in
8041 a way that affects vertical scrollbar existence. (#725)
8042- ImFormatString(): Fixed an overflow handling bug with implementation of vsnprintf() that do not return -1. (#793)
8043- BeginChild(const char*) now applies stack id to provided label, consistent with other widgets. (#894, #713)
8044- SameLine() with explicit X position is relative to left of group/columns. (ref #746, #125, #630)
8045- SliderInt(), SliderFloat() supports reverse direction (where v_min > v_max). (#854)
8046- SliderInt(), SliderFloat() better support for when v_min==v_max. (#919)
8047- SliderInt(), SliderFloat() enforces writing back value when interacting, to be consistent with other widgets. (#919)
8048- SliderInt, SliderFloat(): Fixed edge case where style.GrabMinSize being bigger than slider width can lead to a division by zero. (#919)
8049- Added IsRectVisible() variation with explicit start-end positions. (#768) [@thedmd]
8050- Fixed TextUnformatted() clipping bug in the large-text path when horizontal scroll has been applied. (#692, #246)
8051- Fixed minor text clipping issue in window title when using font straying above usual line. (#699)
8052- Fixed SetCursorScreenPos() fixed not adjusting CursorMaxPos as well.
8053- Fixed scrolling offset when using SetScrollY(), SetScrollFromPosY(), SetScrollHere() with menu bar.
8054- Fixed using IsItemActive() after EndGroup() or any widget using groups. (#840, #479)
8055- Fixed IsItemActive() lagging by one frame on initial widget activation. (#840)
8056- Fixed Separator() zero-height bounding box resulting in clipping when laying exactly on top line of clipping rectangle (#860)
8057- Fixed PlotLines() PlotHistogram() calling with values_count == 0.
8058- Fixed clicking on a window's void while staying still overzealously marking .ini settings as dirty. (#923)
8059- Fixed assert triggering when a window has zero rendering but has a callback. (#810)
8060- Scrollbar: Fixed rendering when sizes are negative to reduce glitches (which can happen with
8061 certain style settings and zero WindowMinSize).
8062- EndGroup(): Made IsItemHovered() work when an item was activated within the group. (#849)
8063- BulletText(): Fixed stopping to display formatted string after the '##' mark.
8064- Closing the focused window restore focus to the first active root window in descending z-order. (part of #727)
8065- Word-wrapping: Fixed a bug where we never wrapped after a 1 character word. [@sronsse]
8066- Word-wrapping: Fixed TextWrapped() overriding wrap position if one is already set. (#690)
8067- Word-wrapping: Fixed incorrect testing for negative wrap coordinates, they are perfectly legal. (#706)
8068- ImGuiListClipper: Fixed automatic-height calc path dumbly having user display element 0 twice. (#661, #716)
8069- ImGuiListClipper: Fix to behave within column. (#661, #662, #716)
8070- ImDrawList: Renamed ImDrawList::PathFill() to ImDrawList::PathFillConvex() for clarity. (BREAKING API)
8071- Columns: End() avoid calling Columns(1) if no columns set is open, not sure why it wasn't the
8072 case already (pros: faster, cons: exercise less code).
8073- ColorButton(): Fix ColorButton showing wrong hex value for alpha. (#1068) [@codecat]
8074- ColorEdit4(): better preserve inputting value out of 0..255 range, display then clamped in Hexadecimal form.
8075- Shutdown() clear out some remaining pointers for sanity. (#836)
8076- Added IMGUI_USE_BGRA_PACKED_COLOR option in imconfig.h (#767, #844) [@thedmd]
8077- Style: Removed the inconsistent shadow under RenderCollapseTriangle() (~#707)
8078- Style: Added ButtonTextAlign, ImGuiStyleVar_ButtonTextAlign. (#842)
8079- ImFont: Allowing to use up to 0xFFFE glyphs in same font (increased from previous 0x8000).
8080- ImFont: Added GetGlyphRangesThai() helper. [@nProtect]
8081- ImFont: CalcWordWrapPositionA() fixed font scaling with fallback character.
8082- ImFont: Calculate and store the approximate texture surface to get an idea of how costly each source font is.
8083- ImFontConfig: Added GlyphOffset to explicitly offset glyphs at font build time, useful for merged fonts.
8084 Removed MergeGlyphCenterV. (BREAKING API)
8085- Clarified asserts in CheckStacksSize() when there is a stack mismatch.
8086- Context: Support for #define-ing GImGui and IMGUI_SET_CURRENT_CONTEXT_FUNC to enable custom thread-based hackery (#586)
8087- Updated stb_truetype.h to 1.14 (added OTF support, removed warnings). (#883, #976)
8088- Updated stb_rect_pack.h to 0.10 (removed warnings). (#883)
8089- Added ImGuiMouseCursor_None enum value for convenient usage by app/backends.
8090- Clipboard: Added a void* user_data parameter to Clipboard function handlers. (#875) (BREAKING API)
8091- Internals: Refactor internal text alignment options to use ImVec2, removed ImGuiAlign. (#842, #222)
8092- Internals: Renamed ImLoadFileToMemory to ImFileLoadToMemory to be consistent with ImFileOpen + fix mismatching .h name. (#917)
8093- OS/Windows: Fixed Windows default clipboard handler leaving its buffer unfreed on application's exit. (#714)
8094- OS/Windows: No default IME handler when compiling for Windows using GCC. (#738)
8095- OS/Windows: Now using _wfopen() instead of fopen() to allow passing in paths/filenames with UTF-8 characters. (#917)
8096- Tools: binary_to_compressed_c: Avoid ?? trigraphs sequences in string outputs which break some older compilers. (#839)
8097- Demo: Added an extra 3-way columns demo.
8098- Demo: ShowStyleEditor: show font character map / grid in more details.
8099- Demo: Console: Fixed a completion bug when multiple candidates are equals and match until the end.
8100- Demo: Fixed 1-byte off overflow in the ShowStyleEditor() combo usage. (#783) [@bear24rw]
8101- Examples: Accessing ImVector fields directly, feel less stl-y. (#810)
8102- Examples: OpenGL*: Saving/restoring existing scissor rectangle for completeness. (#807)
8103- Examples: OpenGL*: Saving/restoring active texture number (the value modified by glActiveTexture). (#1087, #1088, #1116)
8104- Examples: OpenGL*: Saving/restoring separate color/alpha blend functions correctly. (#1120) [@greggman]
8105- Examples: OpenGL2: Uploading font texture as RGBA32 to increase compatibility with users shaders for beginners. (#824)
8106- Examples: Vulkan: Countless fixes and improvements. (#785, #804, #910, #1017, #1039, #1041,
8107 #1042, #1043, #1080) [@martty, @Loftilus, @ParticlePeter, @SaschaWillems]
8108- Examples: DirectX9/10/10: Only call SetCursor(NULL) is io.MouseDrawCursor is set. (#585, #909)
8109- Examples: DirectX9: Explicitly setting viewport to match that other examples are doing. (#937)
8110- Examples: GLFW+OpenGL3: Fixed Shutdown() calling GL functions with NULL parameters if NewFrame was never called. (#800)
8111- Examples: GLFW+OpenGL2: Renaming opengl_example/ to opengl2_example/ for clarity.
8112- Examples: SDL+OpenGL: explicitly setting GL_UNPACK_ROW_LENGTH to reduce issues because SDL changes it. (#752)
8113- Examples: SDL2: Added build .bat files for Win32.
8114- Added various links to language/engine bindings.
8115- Various other minor fixes, tweaks, comments, optimizations.
8116
8117
8118-----------------------------------------------------------------------
8119 VERSION 1.49 (2016-05-09)
8120-----------------------------------------------------------------------
8121
8122Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.49
8123
8124Breaking Changes:
8125
8126- Renamed `SetNextTreeNodeOpened()` to `SetNextTreeNodeOpen()` for consistency, no redirection.
8127- Removed confusing set of `GetInternalState()`, `GetInternalStateSize()`, `SetInternalState()` functions.
8128 Now using `CreateContext()`, `DestroyContext()`, `GetCurrentContext()`, `SetCurrentContext()`.
8129 If you were using multiple contexts the change should be obvious and trivial.
8130- Obsoleted old signature of `CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false)`,
8131 as extra parameters were badly designed and rarely used. Most uses were using 1 parameter and shouldn't affect you.
8132 You can replace the "default_open = true" flag in new API with `CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen)`.
8133- Changed `ImDrawList::PushClipRect(ImVec4 rect)` to `ImDraw::PushClipRect(ImVec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false)`.
8134 Note that higher-level `ImGui::PushClipRect()` is preferable because it will clip at logic/widget level, whereas `ImDrawList::PushClipRect()` only affect your renderer.
8135- Title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background
8136 (ImGuiCol_WindowBg color) anymore (see #655). If your TitleBg/TitleBgActive alpha was 1.0f or you are using
8137 the default theme it will not affect you. However if your TitleBg/TitleBgActive alpha was <1.0f you need to
8138 tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar.
8139 This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output,
8140 given the OLD color and the OLD WindowBg color. (Or If this is confusing, just pick the RGB value from
8141 title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create
8142 TitleBgActive from a tweaked TitleBg color.)
8143
8144 ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col)
8145 {
8146 float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w));
8147 float k = title_bg_col.w / new_a;
8148 return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a);
8149 }
8150
8151Other changes:
8152
8153- New version of ImGuiListClipper helper calculates item height automatically.
8154 See comments and demo code. (#662, #661, #660)
8155- Added SetNextWindowSizeConstraints() to enable basic min/max and programmatic size constraints on window. Added demo. (#668)
8156- Added PushClipRect()/PopClipRect() (previously part of imgui_internal.h).
8157 Changed ImDrawList::PushClipRect() prototype. (#610)
8158- Added IsRootWindowOrAnyChildHovered() helper. (#615)
8159- Added TreeNodeEx() functions. (#581, #600, #190)
8160- Added ImGuiTreeNodeFlags_Selected flag to display TreeNode as "selected". (#581, #190)
8161- Added ImGuiTreeNodeFlags_AllowOverlapMode flag. (#600)
8162- Added ImGuiTreeNodeFlags_NoTreePushOnOpen flag (#590).
8163- Added ImGuiTreeNodeFlags_NoAutoOpenOnLog flag (previously private).
8164- Added ImGuiTreeNodeFlags_DefaultOpen flag (previously private).
8165- Added ImGuiTreeNodeFlags_OpenOnDoubleClick flag.
8166- Added ImGuiTreeNodeFlags_OpenOnArrow flag.
8167- Added ImGuiTreeNodeFlags_Leaf flag, always opened, no arrow, for convenience.
8168 For simple use case prefer using TreeAdvanceToLabelPos()+Text().
8169- Added ImGuiTreeNodeFlags_Bullet flag, to add a bullet to Leaf node or replace Arrow with a bullet.
8170- Added TreeAdvanceToLabelPos(), GetTreeNodeToLabelSpacing() helpers. (#581, #324)
8171- Added CreateContext()/DestroyContext()/GetCurrentContext()/SetCurrentContext().
8172 Obsoleted nearly identical GetInternalState()/SetInternalState() functions. (#586, #269)
8173- Added NewLine() to undo a SameLine() and as a shy reminder that horizontal layout support hasn't been implemented yet.
8174- Added IsItemClicked() helper. (#581)
8175- Added CollapsingHeader() variant with close button. (#600)
8176- Fixed MenuBar missing lower border when borders are enabled.
8177- InputText(): Fixed clipping of cursor rendering in case it gets out of the box (which can be forced w/ ImGuiInputTextFlags_NoHorizontalScroll. (#601)
8178- Style: Changed default IndentSpacing from 22 to 21. (#581, #324)
8179- Style: Fixed TitleBg/TitleBgActive color being rendered above WindowBg color, which was
8180 inconsistent and causing visual artifact. (#655)
8181 This broke the meaning of TitleBg and TitleBgActive. Only affect values where Alpha<1.0f.
8182 Fixed default theme. Read comments in "API BREAKING CHANGES" section to convert.
8183- Relative rendering of order of Child windows creation is preserved, to allow more control with overlapping children. (#595)
8184- Fixed GetWindowContentRegionMax() being off by ScrollbarSize amount when explicit SizeContents is set.
8185- Indent(), Unindent(): optional non-default indenting width. (#324, #581)
8186- Bullet(), BulletText(): Slightly bigger. Less polygons.
8187- ButtonBehavior(): fixed subtle old bug when a repeating button would also return true on mouse
8188 release (barely noticeable unless RepeatRate is set to be very slow). (#656)
8189- BeginMenu(): a menu that becomes disabled while open gets closed down, facilitate user's code. (#126)
8190- BeginGroup(): fixed using within Columns set. (#630)
8191- Fixed a lag in reading the currently hovered window when dragging a window. (#635)
8192- Obsoleted 4 parameters version of CollapsingHeader(). Refactored code into TreeNodeBehavior. (#600, #579)
8193- Scrollbar: minor fix for top-right rounding of scrollbar background when window has menu bar but no title bar.
8194- MenuItem(): the check mark renders in disabled color when menu item is disabled.
8195- Fixed clipping rectangle floating point representation to ensure renderer-side floating-point
8196 operations yield correct results in typical DirectX/GL settings. (#582, 597)
8197- Fixed GetFrontMostModalRootWindow(), fixing missing fade-out when a combo pop was used stacked
8198 over a modal window. (#604)
8199- ImDrawList: Added AddQuad(), AddQuadFilled() helpers.
8200- ImDrawList: AddText() refactor, moving some code to ImFont, reserving less unused vertices when large vertical clipping occurs.
8201- ImFont: Added RenderChar() helper.
8202- ImFont: Added AddRemapChar() helper. (#609)
8203- ImFontConfig: Clarified persistence requirement of GlyphRanges array. (#651)
8204- ImGuiStorage: Added bool helper functions for completeness.
8205- AddFontFromMemoryCompressedTTF(): Fix ImFontConfig propagation. (#587)
8206- Renamed majority of use of the word "opened" to "open" for clarity. Renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(). (#625, #579)
8207- Examples: OpenGL3: Saving/restoring glActiveTexture() state. (#602)
8208- Examples: DirectX9: save/restore all device state.
8209- Examples: DirectX9: Removed dependency on d3dx9.h, d3dx9.lib, dxguid.lib so it can be used in
8210 a DirectXMath.h only environment. (#611)
8211- Examples: DirectX10/X11: Apply depth-stencil state (no use of depth buffer). (#640, #636)
8212- Examples: DirectX11/X11: Added comments on removing dependency on D3DCompiler. (#638)
8213- Examples: SDL: Initialize video+timer subsystem only.
8214- Examples: Apple/iOS: lowered XCode project deployment target from 10.7 to 10.11. (#598, #575)
8215
8216
8217-----------------------------------------------------------------------
8218 VERSION 1.48 (2016-04-09)
8219-----------------------------------------------------------------------
8220
8221Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.48
8222
8223Breaking Changes:
8224
8225- Consistently honoring exact width passed to PushItemWidth() (when positive), previously it would
8226 add extra FramePadding.x*2 over that width. Some hand-tuned layout may be affected slightly. (#346)
8227- Style: removed `style.WindowFillAlphaDefault` which was confusing and redundant, baked alpha into
8228 `ImGuiCol_WindowBg` color. If you had a custom WindowBg color but didn't change WindowFillAlphaDefault,
8229 multiply WindowBg alpha component by 0.7. Renamed `ImGuiCol_TooltipBg` to `ImGuiCol_PopupBG`,
8230 applies to other types of pop-ups. `bg_alpha` parameter of 5-parameters version of Begin() is an override. (#337)
8231- InputText(): Added BufTextLen field in ImGuiTextEditCallbackData. Requesting user to update it
8232 if the buffer is modified in the callback. Added a temporary length-check assert to minimize panic
8233 for the 3 people using the callback. (#541)
8234- Renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize().
8235 Kept inline redirection function (will obsolete). (#340)
8236
8237Other Changes:
8238
8239- Consistently honoring exact width passed to PushItemWidth(), previously it would add extra
8240 FramePadding.x*2 over that width. Some hand-tuned layout may be affected slightly. (#346)
8241- Fixed clipping of child windows within parent not taking account of child outer clipping
8242 boundaries (including scrollbar, etc.). (#506)
8243- TextUnformatted(): Fixed rare crash bug with large blurb of text (2k+) not finished with
8244 a '\n' and fully above the clipping Y line. (#535)
8245- IO: Added 'KeySuper' field to hold CMD keyboard modifiers for OS X. Updated all examples accordingly. (#473)
8246- Added ImGuiWindowFlags_ForceVerticalScrollbar, ImGuiWindowFlags_ForceHorizontalScrollbar flags. (#476)
8247- Added IM_COL32 macros to generate a U32 packed color, convenient for direct use of ImDrawList api. (#346)
8248- Added GetFontTexUvWhitePixel() helper, convenient for direct use of ImDrawList api.
8249- Selectable(): Added ImGuiSelectableFlags_AllowDoubleClick flag to allow user reacting
8250 on double-click. (@zapolnov) (#516)
8251- Begin(): made the close button explicitly set the boolean to false instead of toggling it. (#499)
8252- BeginChild()/EndChild(): fixed incorrect layout to allow widgets submitted after an auto-fitted child window. (#540)
8253- BeginChild(): Added ImGuiWindowFlags_AlwaysUseWindowPadding flag to ensure non-bordered child window
8254 uses window padding. (#462)
8255- Fixed InputTextMultiLine(), ListBox(), BeginChildFrame(), ProgressBar(): outer frame not
8256 honoring bordering. (#462, #503)
8257- Fixed Image(), ImageButtion() rendering a rectangle 1 px too large on each axis. (#457)
8258- SetItemAllowOverlap(): Promoted from imgui_internal.h to public imgui.h api. (#517)
8259- Combo(): Right-most button stays highlighted when pop-up is open.
8260- Combo(): Display pop-up above if there's isn't enough space below / or select largest side. (#505)
8261- DragFloat(), SliderFloat(), InputFloat(): fixed cases of erroneously returning true repeatedly
8262 after a text input modification (e.g. "0.0" --> "0.000" would keep returning true). (#564)
8263- DragFloat(): Always apply value when mouse is held/widget active, so that an always-resetting
8264 variable (e.g. non saved local) can be passed.
8265- InputText(): OS X friendly behaviors: (@zhiayang), (#473)
8266 - Word movement uses ALT key;
8267 - Shortcuts uses CMD key;
8268 - Double-clicking text select a single word;
8269 - Jumping to next word sets cursor to end of current word instead of beginning of current word.
8270- InputText(): Added BufTextLen in ImGuiTextEditCallbackData. Requesting user to maintain it
8271 if buffer is modified. Zero-ing structure properly before use. (#541)
8272- CheckboxFlags(): Added support for testing/setting multiple flags at the same time. (@DMartinek) (#555)
8273- TreeNode(), CollapsingHeader() fixed not being able to use "##" sequence in a formatted label.
8274- ColorEdit4(): Empty label doesn't add InnerSpacing.x, matching behavior of other widgets. (#346)
8275- ColorEdit4(): Removed unnecessary calls to scanf() when idle in hexadecimal edit mode.
8276- BeginPopupContextItem(), BeginPopupContextWindow(): added early out optimization.
8277- CaptureKeyboardFromApp() / CaptureMouseFromApp(): added argument to allow clearing the capture flag. (#533)
8278- ImDrawList: Fixed index-overflow check broken by AddText() casting current index back to ImDrawIdx. (#514)
8279- ImDrawList: Fixed incorrect removal of trailing draw command if it is a callback command.
8280- ImDrawList: Allow windows with only a callback only to be functional. (#524)
8281- ImDrawList: Fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. (#457)
8282- ImDrawList: Fixed ImDrawList::AddCircle() to fit precisely within bounding box like AddCircleFilled() and AddRectFilled(). (#457)
8283- ImDrawList: AddCircle(), AddRect() takes optional thickness parameter.
8284- ImDrawList: Added AddTriangle().
8285- ImDrawList: Added PrimQuadUV() helper to ease custom rendering of textured quads (require primitive reserve).
8286- ImDrawList: Allow AddText(ImFont\* font, float font_size, ...) variant to take NULL/0.0f as default.
8287- ImFontAtlas: heuristic increase default texture width up for large number of glyphs. (#491)
8288- ImTextBuffer: Fixed empty() helper which was utterly broken.
8289- Metrics: allow to inspect individual triangles in draw calls.
8290- Demo: added more draw primitives in the Custom Rendering example. (#457)
8291- Demo: extra comments and example for PushItemWidth(-1) patterns.
8292- Demo: InputText password demo filters out blanks. (#515)
8293- Demo: Fixed malloc/free mismatch and leak when destructing demo console, if it has been used. (@fungos) (#536)
8294- Demo: plot code doesn't use ImVector to avoid heap allocation and be more friendly to custom allocator users. (#538)
8295- Fixed compilation on DragonFly BSD (@mneumann) (#563)
8296- Examples: Vulkan: Added a Vulkan example (@Loftilus) (#549)
8297- Examples: DX10, DX11: Saving/restoring most device state so dropping render function in your
8298 codebase shouldn't have DX device side-effects. (#570)
8299- Examples: DX10, DX11: Fixed ImGui_ImplDX??_NewFrame() from recreating device objects if render isn't called (g_pVB not set).
8300- Examples: OpenGL3: Fix BindVertexArray/BindBuffer order. (@nlguillemot) (#527)
8301- Examples: OpenGL: skip rendering and calling glViewport() if we have zero-fixed buffer. (#486)
8302- Examples: SDL2+OpenGL3: Fix context creation options. Made ImGui_ImplSdlGL3_NewFrame() signature
8303 match GL2 one. (#468, #463)
8304- Examples: SDL2+OpenGL2/3: Fix for high-dpi displays. (@nickgravelyn)
8305- Various extra comments and clarification in the code.
8306- Various other fixes and optimizations.
8307
8308
8309-----------------------------------------------------------------------
8310 VERSION 1.47 (2015-12-25)
8311-----------------------------------------------------------------------
8312
8313Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.47
8314
8315Changes:
8316
8317- Rebranding "ImGui" -> "dear imgui" as an optional first name to reduce ambiguity with IMGUI term. (#21)
8318- Added ProgressBar(). (#333)
8319- InputText(): Added ImGuiInputTextFlags_Password mode: hide display, disable logging/copying to clipboard. (#237, #363, #374)
8320- Added GetColorU32() helper to retrieve color given enum with global alpha and extra applied.
8321- Added ImGuiIO::ClearInputCharacters() superfluous helper.
8322- Fixed ImDrawList draw command merging bug where using PopClipRect() along with PushTextureID()/PopTextureID() functions
8323 would occasionally restore an incorrect clipping rectangle.
8324- Fixed ImDrawList draw command merging so PushTextureID(XXX)/PopTextureID()/PushTextureID(XXX) sequence are now properly merged.
8325- Fixed large popups positioning issues when their contents on either axis is larger than DisplaySize,
8326 and WindowPadding < DisplaySafeAreaPadding.
8327- Fixed border rendering in various situations when using non-pixel aligned glyphs.
8328- Fixed border rendering of windows to always contain the border within the window.
8329- Fixed Shutdown() leaking font atlas data if NewFrame() was never called. (#396, #303)
8330- Fixed int>void\* warnings for 64-bit architectures with fancy warnings enabled.
8331- Renamed the dubious Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete.
8332- InputText(): Fixed and better handling of using keyboard while mouse button if being held and dragging. (#429)
8333- InputText(): Replace OS IME (Input Method Editor) cursor on top-left when we are not text editing.
8334- TreeNode(), CollapsingHeader(), Bullet(), BulletText(): various sizing and layout fixes to better support laying out
8335 multiple item with different height on same line. (#414, #282)
8336- Begin(): Initial window creation with ImGuiWindowFlags_NoBringToFrontOnFocus flag pushes it at the front of global window list.
8337- BeginPopupContextWindow() and BeginPopupContextVoid() reopen window on subsequent click. (#439)
8338- ColorEdit4(): Fixed broken tooltip on hovering the color button. (actually fixes #373, #380)
8339- ImageButton(): uses FrameRounding up to a maximum of available framing size. (#394)
8340- Columns: Fixed bug with indentation within columns, also making code a bit shorter/faster. (#414, #125)
8341- Columns: Columns set with no implicit id include the columns count within the id to reduce collisions. (#125)
8342- Columns: Removed one unnecessary allocation when columns are not used by a window. (#125)
8343- ImFontAtlas: Tweaked GetGlyphRangesJapanese() so it is easier to modify.
8344- ImFontAtlas: Updated stb_rect_pack.h to 0.08.
8345- Metrics: Fixed computing ImDrawCmd bounding box when the draw buffer have been unindexed.
8346- Demo: Added a simple "Property Editor" demo applet. (#125, #414)
8347- Demo: Fixed assertion in "Custom Rendering" demo when holding both mouse buttons. (#393)
8348- Demo: Lots of extra comments, fixes.
8349- Demo: Tweaks to Style Editor.
8350- Examples: Not clearing input data/tex data in atlas (will be required for dynamic atlas anyway).
8351- Examples: Added /Zi (output debug information) to Win32 batch files.
8352- Examples: Various fixes for resizing window and recreating graphic context.
8353- Examples: OpenGL2/3: Save/restore viewport as part of default render function. (#392, #441).
8354- Examples; OpenGL3: Fixed gl3w.c for Linux when compiled with a C++ compiler. (#411)
8355- Examples: DirectX: Removed assumption about Unicode build in example main.cpp. (#399)
8356- Examples: DirectX10: Added DirectX10 example. (#424)
8357- Examples: DirectX11: Downgraded requirement from shader model 5.0 to 4.0. (#420)
8358- Examples: DirectX11: Removed Debug flag from graphics context. (#415)
8359- Examples: Added SDL+OpenGL3 example. (#356)
8360
8361
8362-----------------------------------------------------------------------
8363 VERSION 1.46 (2015-10-18)
8364-----------------------------------------------------------------------
8365
8366Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.46
8367
8368Changes:
8369
8370- Begin*(): added ImGuiWindowFlags_NoFocusOnAppearing flag. (#314)
8371- Begin*(): added ImGuiWindowFlags_NoBringToFrontOnFocus flag.
8372- Added GetDrawData() alternative to setting a Render function pointer in ImGuiIO structure.
8373- Added SetClipboardText(), GetClipboardText() helper shortcuts that user code can call directly without reading
8374 from the ImGuiIO structure (to match MemAlloc/MemFree)
8375- Fixed handling of malformed UTF-8 at the end of a non-zero terminated string range.
8376- Fixed mouse click detection when passing DeltaTime 0.0. (#338)
8377- Fixed IsKeyReleased() and IsMouseReleased() returning true on the first frame.
8378- Fixed using SetNextWindow\* functions on Modal windows with a ImGuiSetCond_Appearing condition. (#377)
8379- IsMouseHoveringRect(): Added 'bool clip' parameter to disable clipping provided rectangle. (#316)
8380- InputText(): added ImGuiInputTextFlags_ReadOnly flag. (#211)
8381- InputText(): lose cursor/undo-stack when reactivating focus is buffer has changed size.
8382- InputText(): fixed ignoring text inputs when ALT or ALTGR are pressed. (#334)
8383- InputText(): fixed mouse-dragging not tracking the cursor when text doesn't fit. (#339)
8384- InputText(): fixed cursor pixel-perfect alignment when horizontally scrolling.
8385- InputText(): fixed crash when passing a buf_size==0 (which can be of use for read-only selectable text boxes). (#360)
8386- InputFloat() fixed explicit precision modifier, both display and input were broken.
8387- PlotHistogram(): improved rendering of histogram with a lot of values.
8388- Dummy(): creates an item so functions such as IsItemHovered() can be used.
8389- BeginChildFrame() helper: added the extra_flags parameter.
8390- Scrollbar: fixed rounding of background + child window consistently have ChildWindowBg color under ScrollbarBg fill. (#355).
8391- Scrollbar: background color less translucent in default style so it works better when changing background color.
8392- Scrollbar: fixed minor rendering offset when borders are enabled. (#365)
8393- ImDrawList: fixed 1 leak per ImDrawList using the ChannelsSplit() API (via Columns). (#318)
8394- ImDrawList: fixed rectangle rendering glitches with width/height <= 1/2 and rounding enabled.
8395- ImDrawList: AddImage() uv parameters default to (0,0) and (1,1).
8396- ImFontAtlas: Added TexDesiredWidth and tweaked default cheapo best-width choice. (#327)
8397- ImFontAtlas: Added GetGlyphRangesKorean() helper to retrieve unicode ranges for Korean. (#348)
8398- ImGuiTextFilter::Draw() helper return bool and build when filter is modified.
8399- ImGuiTextBuffer: added c_str() helper.
8400- ColorEdit4(): fixed hovering the color button always showing 1.0 alpha. (#373)
8401- ColorConvertFloat4ToU32() round the floats instead of truncating them.
8402- Window: Fixed window lower-right clipping limit so it plays more friendly with both OpenGL and DirectX coordinates.
8403- Internal: Extracted a EndFrame() function out of Render() but kept it internal/private + clarified some asserts. (#335)
8404- Internal: Added missing IMGUI_API definitions in imgui_internal.h (#326)
8405- Internal: ImLoadFileToMemory() return void\* instead of taking void*\* + allow optional int\* file_size.
8406- Demo: Horizontal scrollbar demo allows to enable simultaneous scrollbars on both axes.
8407- Tools: binary_to_compressed_c.cpp: added -nocompress option.
8408- Examples: Added example for the Marmalade platform.
8409- Examples: Added batch files to build Windows examples with VS.
8410- Examples: OpenGL3: Saving/restoring more GL state correctly. (#347)
8411- Examples: OpenGL2/3: Added msys2/mingw64 target to Makefiles.
8412
8413
8414-----------------------------------------------------------------------
8415 VERSION 1.45 (2015-09-01)
8416-----------------------------------------------------------------------
8417
8418Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.45
8419
8420Breaking Changes:
8421
8422- With the addition of better horizontal scrolling primitives I had to make some consistency fixes.
8423 `GetCursorPos()` `SetCursorPos()` `GetContentRegionMax()` `GetWindowContentRegionMin()` `GetWindowContentRegionMax()`
8424 are now incorporating the scrolling amount. They were incorrectly not incorporating this amount previously.
8425 It PROBABLY shouldn't break anything, but that depends on how you used them. Namely:
8426 - If you always used SetCursorPos() with values relative to GetCursorPos() there shouldn't be a problem.
8427 However if you used absolute coordinates, note that SetCursorPosY(100.0f) will put you at +100 from the
8428 initial Y position (which may be scrolled out of the view), NOT at +100 from the window top border.
8429 Since there wasn't any official scrolling value on X axis (past just manually moving the cursor) this can
8430 only affect you if you used to set absolute coordinates on the Y axis which is hopefully rare/unlikely,
8431 and trivial to fix.
8432 - The value of GetWindowContentRegionMax() isn't necessarily close to GetWindowWidth() if horizontally scrolling.
8433 Previously they were roughly interchangeable (roughly because the content region exclude window padding).
8434
8435Other Changes:
8436
8437- Added Horizontal Scrollbar via ImGuiWindowFlags_HorizontalScroll (#246).
8438- Added GetScrollX(), GetScrollX(), GetScrollMaxX() apis (#246).
8439- Added SetNextWindowContentSize(), SetNextWindowContentWidth() to explicitly set the content size of a window, which
8440 define the range of scrollbar. When set explicitly it also define the base value from which widget width are derived.
8441- Added IO.WantTextInput telling when ImGui is expecting text input, so that e.g. OS on-screen keyboard can be enabled.
8442- Added printf attribute to printf-like text formatting functions (Clang/GCC).
8443- Added GetMousePosOnOpeningCurrentPopup() helper.
8444- Added GetContentRegionAvailWidth() helper.
8445- Malformed UTF-8 data don't terminate string, output 0xFFFD instead (#307).
8446- ImDrawList: Added AddBezierCurve(), PathBezierCurveTo() API for cubic bezier curves (#311).
8447- ImDrawList: Allow to override ImDrawIdx type (#292).
8448- ImDrawList: Added an assert on overflowing index value (#292).
8449- ImDrawList: Fixed issues with channels split/merge. Now functional without manually adding a draw cmd. Added comments.
8450- ImDrawData: Added ScaleClipRects() helper useful when rendering scaled. (#287).
8451- Fixed Bullet() inconsistent layout behavior when clipped.
8452- Fixed IsWindowHovered() not taking account of window hoverability (may be disabled because of a popup).
8453- Fixed InvisibleButton() not honoring negative size consistently with other widgets that do so.
8454- Fixed OpenPopup() accessing current window, effectively opening "Debug" when called from an empty window stack.
8455- TreeNode(): Fixed IsItemHovered() result being inconsistent with interaction visuals (#282).
8456- TreeNode(): Fixed mouse interaction padding past the node label being accounted for in layout (#282).
8457- BeginChild(): Passing a ImGuiWindowFlags_NoMove inhibits moving parent window from this child.
8458- BeginChild() fixed missing rounding for child sizes which leaked into layout and have items misaligned.
8459- Begin(): Removed default name = "Debug" parameter. We already have a "Debug" window pushed to the stack in
8460 the first place so it's not really a useful default.
8461- Begin(): Minor fixes with windows main clipping rectangle (e.g. child window with border).
8462- Begin(): Window flags are only read on the first call of the frame. Subsequent calls ignore flags, which allows
8463 appending to a window without worrying about flags.
8464- InputText(): ignore character input when ctrl/alt are held. (Normally those text input are ignored by most wrappers.) (#279).
8465- Demo: Fixed incorrectly formed string passed to Combo (#298).
8466- Demo: Added simple Log demo.
8467- Demo: Added horizontal scrolling example + enabled in console, log and child examples (#246).
8468- Style: made scrollbars rounded by default. Because nice. Minor menu bar background alpha tweak. (#246)
8469- Metrics: display indices along with triangles count (#299) and some internal state.
8470- ImGuiTextFilter::PassFilter() supports string range. Added [] helper to ImGuiTextBuffer.
8471- ImGuiTextFilter::Draw() default parameter width=0.0f for no override, allow override with negative values.
8472- Examples: OpenGL2/OpenGL3: fix for retina displays. Default font current lack crispness.
8473- Examples: OpenGL2/OpenGL3: save/restore more GL state correctly.
8474- Examples: DirectX9/DirectX11: resizing buffers dynamically (#299).
8475- Examples: DirectX9/DirectX11: added missing middle mouse button to Windows event handler.
8476- Examples: DirectX11: fix for Visual Studio 2015 presumably shipping with an updated version of DX11.
8477- Examples: iOS: fixed missing files in project.
8478
8479
8480-----------------------------------------------------------------------
8481 VERSION 1.44 (2015-08-08)
8482-----------------------------------------------------------------------
8483
8484Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.44
8485
8486Breaking Changes:
8487
8488- imgui.cpp has been split intro extra files: imgui_demo.cpp, imgui_draw.cpp, imgui_internal.h.
8489 Add the two extra .cpp to your project or #include them from another .cpp file. (#219)
8490
8491Other Changes:
8492
8493- Internal data structure and several useful functions are now exposed in imgui_internal.h. This should make it easier
8494 and more natural to extend ImGui. However please note that none of the content in imgui_internal.h is guaranteed
8495 for forward-compatibility and code using those types/functions may occasionally break. (#219)
8496- All sample code is in imgui_demo.cpp. Please keep this file in your project and consider allowing your code to call
8497 the ShowTestWindow() function as de facto guide to ImGui features. It will be stripped out by the linker when unused.
8498- Added GetContentRegionAvail() helper (basically GetContentRegionMax() - GetCursorPos()).
8499- Added ImGuiWindowFlags_NoInputs for totally input-passthru window.
8500- Button(): honor negative size consistently with other widgets that do so (width -100 to align the button 100 pixels
8501 before the right-most position of the contents region).
8502- InputTextMultiline(): honor negative size consistently with other widgets that do so.
8503- Combo() clamp popup to lower edge of visible area.
8504- InputInt(): value doesn't pass through an int>float>int casting chain, fix handling lost of precision with "large" integer.
8505- InputInt() allow hexadecimal input (awkwardly via ImGuiInputTextFlags_CharsHexadecimal but we will allow format
8506 string in InputInt* later).
8507- Checkbox(), RadioButton(): fixed scaling of checkbox and radio button for the filling of "active" visual.
8508- Columns: never assume horizontal space for scrollbar if NoScrollbar flag is explicitly set.
8509- Slider: fixed using FramePadding between frame and grab visual. Scaling that spacing would look odd.
8510- Fixed lower-right resize grip hit box not scaling along with its rendered size (#287)
8511- ImDrawList: Fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (v1.43) being off by an extra PI for no reason.
8512- ImDrawList: Added ImDrawList::AddText() shorthand helper.
8513- ImDrawList: Add missing support for anti-aliased thick-lines (#133, also ref #288)
8514- ImFontAtlas: Added AddFontFromMemoryCompressedBase85TTF() to load base85 encoded font string. Default font encoded
8515 as base85 saves ~100 lines / 26 KB of source code. Added base85 output to the binary_to_compressed_c tool.
8516- Build fix for MinGW (#276).
8517- Examples: OpenGL3: Fixed running on script core profiles for OSX (#277).
8518- Examples: OpenGL3: Simplified code using glBufferData for vertices as well (#277, #278)
8519- Examples: DirectX11: Clear font texture view to ensure Release() doesn't get called twice (#290).
8520- Updated to stb_truetype 1.07 (back to vanilla version as our minor changes are now in master & fix unlikely assert
8521 with odd fonts (#280)
8522
8523
8524-----------------------------------------------------------------------
8525 VERSION 1.43 (2015-07-17)
8526-----------------------------------------------------------------------
8527
8528Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.43
8529
8530Breaking Changes:
8531
8532- This is a rather important release and we unfortunately had to break the rendering API.
8533 ImGui now requires you to render indexed vertices instead of non-indexed ones. The fix should be very easy.
8534 Sorry for that! This change is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost.
8535 Each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles
8536 using indices from the index buffer.
8537- If you are using a vanilla copy of one of the imgui_impl_XXXX.cpp provided in the example, you just need to update
8538 your copy and you can ignore the rest.
8539- The signature of the io.RenderDrawListsFn handler has changed
8540 From: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count)
8541 To: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data)
8542 With: argument 'cmd_lists' -> 'draw_data->CmdLists'
8543 argument 'cmd_lists_count' -> 'draw_data->CmdListsCount'
8544 ImDrawList 'commands' -> 'CmdBuffer'
8545 ImDrawList 'vtx_buffer' -> 'VtxBuffer'
8546 ImDrawList n/a -> 'IdxBuffer' (new)
8547 ImDrawCmd 'vtx_count' -> 'ElemCount'
8548 ImDrawCmd 'clip_rect' -> 'ClipRect'
8549 ImDrawCmd 'user_callback' -> 'UserCallback'
8550 ImDrawCmd 'texture_id' -> 'TextureId'
8551- If you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index
8552 the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering!
8553 Refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. Please upgrade!
8554
8555Other Changes:
8556
8557- Added anti-aliasing on lines and shapes based on primitives by @MikkoMononen (#133).
8558 Between the use of indexed-rendering and the fact that the entire rendering codebase has been optimized and massaged
8559 enough, with anti-aliasing enabled ImGui 1.43 is now running FASTER than 1.41.
8560 Made some extra effort in making the code run faster in your typical Debug build.
8561- Anti-aliasing can be disabled in the ImGuiStyle structure via the AntiAliasedLines/AntiAliasedShapes fields for further gains.
8562- ImDrawList: Added AddPolyline(), AddConvexPolyFilled() with optional anti-aliasing.
8563- ImDrawList: Added stateful path building and stroking API. PathLineTo(), PathArcTo(), PathRect(), PathFill(), PathStroke()
8564 with optional anti-aliasing.
8565- ImDrawList: Added AddRectFilledMultiColor() helper.
8566- ImDrawList: Added multi-channel rendering so out of order elements can be rendered in separate channels and then merged
8567 back together (used by columns).
8568- ImDrawList: Fixed merging draw commands when equal clip rectangles are in the two first commands.
8569- ImDrawList: Fixed window draw lists not destructed properly on Shutdown().
8570- ImDrawData: Added DeIndexAllBuffers() helper.
8571- Added lots of new font options ImFontAtlas::AddFont() and the new ImFontConfig structure.
8572 - Added support for oversampling (ImFontConfig: OversampleH, OversampleV) and sub-pixel positioning (ImFontConfig: PixelSnapH).
8573 Oversampling allows sub-pixel positioning but can also be used as a way to get some leeway with scaling fonts without re-rasterizing.
8574 - Added GlyphExtraSpacing option to add extra horizontal spacing between characters (#242).
8575 - Added MergeMode option to merge glyphs from different font inputs into a same font (#182, #232).
8576 - Added FontDataOwnedByAtlas option to keep ownership from the TTF data buffer and request the atlas to make a copy (#220).
8577- Updated to stb_truetype 1.06 (+ minor mods) with better font rasterization.
8578- InputText: Added ImGuiInputTextFlags_NoHorizontalScroll flag.
8579- InputText: Added ImGuiInputTextFlags_AlwaysInsertMode flag.
8580- InputText: Added HasSelection() helper in ImGuiTextEditCallbackData as a clarification.
8581- InputText: Fix for using END key on a multi-line text editor (#275)
8582- Columns: Dispatch render of each column in a sub-draw list and merge on closure, saving a lot of draw calls! (#125)
8583- Popups: Fixed Combo boxes inside menus. (#272)
8584- Style: Added GrabRounding setting to make the sliders etc. grabs rounded.
8585- Changed SameLine() parameters from int to float.
8586- Fixed incorrect assert triggering when code stole ActiveID from user moving a window by calling e.g. SetKeyboardFocusHere().
8587- Fixed CollapsingHeader() label rendering outside its frame in columns context where ClipRect max isn't aligned with the
8588 right-side of the header.
8589- Metrics window: calculate bounding box of actual vertices when hovering a draw list.
8590- Examples: Showing more information in the Fonts section.
8591- Examples: Added a gratuitous About window.
8592- Examples: Updated all examples code (OpenGL/DX9/DX11/SDL/Allegro/iOS) to use indexed rendering.
8593- Examples: Fixed the SDL2 example to support Unicode text input (#274).
8594
8595
8596-----------------------------------------------------------------------
8597 VERSION 1.42 (2015-07-08)
8598-----------------------------------------------------------------------
8599
8600Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.42
8601
8602Breaking Changes:
8603
8604- Renamed SetScrollPosHere() to SetScrollHere(). Kept inline redirection function (will obsolete).
8605- Renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion and make scrolling API consistent,
8606 because positions (e.g. cursor position) are not equivalent to scrolling amount.
8607- Removed obsolete GetDefaultFontData() function that would assert anyway.
8608 If you are updating from <1.30 you'll get a compile error instead of an assertion. (obsoleted 2015/01/11)
8609
8610Other Changes:
8611
8612- Added SDL2 example application (courtesy of @CedricGuillemet)
8613- Added iOS example application (courtesy of @joeld42)
8614- Added Allegro 5 example application (courtesy of @bggd)
8615- Added TitleBgActive color in style so focused window is made visible. (#253)
8616- Added CaptureKeyboardFromApp() / CaptureMouseFromApp() to manually enforce inputs capturing.
8617- Added DragFloatRange2() DragIntRange2() helpers. (#76)
8618- Added a Y centering ratio to SetScrollFromCursorPos() which can be used to aim the top
8619 or bottom of the window. (#150)
8620- Added SetScrollY(), SetScrollFromPos(), GetCursorStartPos() for manual scrolling manipulations. (#150).
8621- Added GetKeyIndex() helper for converting from ImGuiKey_\* enum to user's keycodes.
8622 Basically pulls from io.KeysMap[].
8623- Added missing ImGuiKey_PageUp, ImGuiKey_PageDown so more UI code can be written without
8624 referring to implementation-side keycodes.
8625- MenuItem() can be activated on release. (#245)
8626- Allowing NewFrame() with DeltaTime==0.0f to not assert.
8627- Fixed IsMouseDragging(). (#260)
8628- Fixed PlotLines(), PlotHistogram() using incorrect hovering test so they would show their tooltip even when there is
8629 a popup between mouse and the graph.
8630- Fixed window padding being reported incorrectly for child windows with borders when parent have no borders.
8631- Fixed a bug with TextUnformatted() clipping of long text blob when clipping y1 line sits on the first line of text. (#257)
8632- Fixed text baseline alignment of small button (no padding) after regular buttons.
8633- Fixed ListBoxHeader() not honoring negative sizes the same way as BeginChild() or BeginChildFrame(). (#263)
8634- Fixed warnings for more pedantic compiler settings (#258).
8635- ImVector<> cannot be re-defined anymore, cannot be replaced with std::vector<>.
8636 Allowed us to clean up and optimize lots of code. Yeah! (#262)
8637- ImDrawList: store pointer to their owner name for easier auditing/debugging.
8638- Examples: added scroll tracking example with SetScrollFromCursorPos().
8639- Examples: metrics windows render clip rectangle when hovering over a draw call.
8640- Lots of small optimization (particularly to run faster on unoptimized builds) and tidying up.
8641- Added font links in extra_fonts/ + instructions for using compressed fonts in C array.
8642
8643
8644-----------------------------------------------------------------------
8645 VERSION 1.41 (2015-06-26)
8646-----------------------------------------------------------------------
8647
8648Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.41
8649
8650Breaking Changes:
8651
8652- Changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent).
8653 Only makes a difference when texture have transparency.
8654- Changed Selectable() API from (label, selected, size) to (label, selected, flags, size).
8655 Size override should be used very rarely so hopefully it doesn't affect many people. Sorry!
8656
8657Other Changes:
8658
8659- Added InputTextMultiline() multi-line text editor, vertical scrolling, selection, optimized
8660 enough to handle rather big chunks of text in stateless context (thousands of lines are ok),
8661 option for allowing Tab to be input, option for validating with Return or Ctrl+Return (#200).
8662- Added modal window API, BeginPopupModal(), follows the popup api scheme. Modal windows can be closed
8663 by clicking outside. By default the rest of the screen is dimmed (using ImGuiCol_ModalWindowDarkening).
8664 Modal windows can be stacked.
8665- Added GetGlyphRangesCyrillic() helper (#237).
8666- Added SetNextWindowPosCenter() to center a window prior to knowing its size. (#249)
8667- Added IsWindowHovered() helper.
8668- Added IsMouseReleased(), IsKeyReleased() helpers to allow to user to avoid tracking them. (#248)
8669- Allow Set*WindowSize() calls to be used with popups.
8670- Window: AutoFit can be triggered on each axis separately via SetNextWindowSize(), etc.
8671- Window: fixed scrolling with mouse wheel while window was collapsed.
8672- Window: fixed mouse wheel scroll issues.
8673- DragFloat(), SliderFloat(): Fixed rounding of negative numbers which sometime made the negative lower bound unreachable.
8674- InputText(): lifted character count limit.
8675- InputText(): fixes in case of using per-window font scaling.
8676- Selectable(), MenuItem(): do not use frame rounding for hovering/selection.
8677- Selectable(): Added flag ImGuiSelectableFlags_DontClosePopups.
8678- Selectable(): Added flag ImGuiSelectableFlags_SpanAllColumns (#125).
8679- Combo(): Fixed issue with activating a Combo() not taking active id (#241).
8680- ColorButton(), ColorEdit4(): fix to ensure that the colored square stays square when
8681 non-default padding settings are used.
8682- BeginChildFrame(): returns bool like BeginChild() for clipping.
8683- SetScrollPosHere(): takes account of item height + more accurate centering + fixed precision issue.
8684- ImFont: ignoring '\r'.
8685- ImFont: added GetCharAdvance() helper. Exposed font Ascent and font Descent.
8686- ImFont: additional rendering optimizations.
8687- Metrics windows display storage size.
8688
8689
8690-----------------------------------------------------------------------
8691 VERSION 1.40 (2015-05-31)
8692-----------------------------------------------------------------------
8693
8694Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.40
8695
8696Breaking Changes:
8697
8698- The BeginPopup() API (introduced in 1.37) had to be changed to allow for stacked popups and menus.
8699 Use OpenPopup() to toggle the opened state and BeginPopup() to append.**
8700- The third parameter of Button(), 'repeat_if_held' has been removed. While it's been very rarely used,
8701 some code will possibly break if you didn't rely on the default parameter.
8702 Use PushButtonRepeat()/PopButtonRepeat() to configure repeat.
8703- Renamed IsRectClipped() to !IsRectVisible() for consistency (opposite return value!).
8704 Kept inline redirection function (will obsolete)
8705- Renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency.
8706 Kept inline indirection function (will obsolete).
8707
8708Other Changes:
8709
8710- Menus: Added a menu system! Menus are typically populated with menu items and sub-menus,
8711 but you can add any sort of widgets in them (buttons, text inputs, sliders, etc.). (#126)
8712- Menus: Added MenuItem() to append a menu item. Optional shortcut display, acts a button & toggle
8713 with checked/unchecked state, disabled mode. Menu items can be used in any window.
8714- Menus: Added BeginMenu() to append a sub-menu. Note that you generally want to add sub-menu inside a popup or a menu-bar.
8715 They will work inside a normal window but it will be a bit unusual.
8716- Menus: Added BeginMenuBar() to append to window menu-bar (set ImGuiWindowFlags_MenuBar to enable).
8717- Menus: Added BeginMainMenuBar() helper to append to a fullscreen main menu-bar.
8718- Popups: Support for stacked popups. Each popup level inhibit inputs to lower levels. The menus system is based on this. (#126).
8719- Popups: Added BeginPopupContextItem(), BeginPopupContextWindow(), BeginPopupContextVoid() to
8720 create a popup window on mouse-click.
8721- Popups: Popups have borders by default (#197), attenuated border alpha in default theme.
8722- Popups & Tooltip: Fit within display. Handling various positioning/sizing/scrolling edge
8723 cases. Better hysteresis when moving in corners. Tooltip always tries to stay away from mouse-cursor.
8724- Added ImGuiStorage::GetVoidPtrRef() for manipulating stored void*.
8725- Added IsKeyDown() IsMouseDown() as convenience and for consistency with existing functions
8726 (instead of reading them from IO structures).
8727- Added Dummy() helper to advance layout by a given size. Unlike InvisibleButton() this doesn't catch any click.
8728- Added configurable io.KeyRepeatDelay, io.KeyRepeatRate keyboard and mouse repeat rate.
8729- Added PushButtonRepeat() / PopButtonRepeat() to enable hold-button-to-repeat press on any button.
8730- Removed the third 'repeat' parameter of Button().
8731- Added IsAnyItemHovered() helper.
8732- Added GetItemsLineHeightWithSpacing() helper.
8733- Added ImGuiListClipper helper for clipping large list of evenly sized items, to avoid using CalcListClipping() directly.
8734- Separator: within group start on group horizontal offset. (#205)
8735- InputText: Fixed incorrect edit state after text buffer is appended to by user via the callback. (#206)
8736- InputText: CTRL+letter-key shortcuts (e.g. CTRL+C/V/X) makes sure only CTRL is pressed. (#214)
8737- InputText: Fixed cursor generating a zero-width wire-frame rectangle turning into a division by zero (would go unnoticed
8738 unless you trapped exceptions).
8739- InputFloatN/InputIntN: Flags parameter added to match scalar versions. (#218)
8740- Selectable: Horizontal filling not declared to ItemSize() so Selectable(),SameLine() works and we can better auto-fit the window.
8741- Selectable: Handling text baseline alignment for line that aren't of text height.
8742- Combo: Empty label doesn't add ItemInnerSpacing alignment, matching other widgets.
8743- EndGroup: Carries the text base offset from the last line of the group (sort of incorrect but better than nothing,
8744 should use the first line of the group, will implement in the future).
8745- Columns: distinguish columns-set ID from other widgets as a convenience, added asserts and sailors.
8746- ListBox: ListBox() function only use public API to encourage creating custom versions. ListBoxHeader() can return false.
8747- ListBox: Uses ImGuiListClipper and assume items of matching height, so large lists can be handled.
8748- Plot: overlay label clipped within frame when not fitting.
8749- Window: Added ImGuiSetCond_Appearing to test the hidden->visible transition in SetWindow***/SetNextWindow*** functions.
8750- Window: Auto-fitting cancel out one worth of vertical spacing for vertical symmetry (like what group and tooltip do).
8751- Window: Default item width for auto-resizing windows expressed as a factor of font height, scales better with different font.
8752- Window: Fixed auto-fit calculation mismatch of whether a scrollbar will be added by maximum height
8753 clamping. Also honor NoScrollBar in the case of height clamping, not adding extra horizontal space.
8754- Window: Hovering require to hover same child window. Reverted 860cf57 (December 3). Might break something if you have
8755 child overlapping items in parent window.
8756- Window: Fixed appending multiple times to an existing child via multiple BeginChild/EndChild calls to same child name.
8757 Allows a simple form of out-of-order appending.
8758- Window: Fixed auto-filling child window using WindowMinSize at their minimum size, irrelevant.
8759- Metrics: Added io.MetricsActiveWindows counter. (#213.
8760- Metrics: Added io.MetricsAllocs counter (number of active memory allocations).
8761- Metrics: ShowMetricsWindow() shows popups stack, allocations.
8762- Style: Added style.DisplayWindowPadding to prevent windows from reaching edges of display
8763 (similar to style.DisplaySafeAreaPadding which is still in effect and also affect popups/tooltips).
8764- Style: Removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same).
8765- Style: Added style.ScrollbarRounding. (#212)
8766- Style: Added ImGuiCol_TextDisabled for disabled text. Added TextDisabled() helper.
8767- Style: Added style.WindowTitleAlign alignment options, to e.g. center title on windows. (#222)
8768- ImVector: tweak growth strategy, matches vector from VS2010.
8769- ImFontAtlas: Added ClearFonts(), making the different clear funcs more explicit. (#224)
8770- ImFontAtlas: Fixed appending new fonts without clearing existing fonts. Clearing input data left to application. (#224)
8771- ImDrawList: Merge draw command better, cases of multiple Begin/End gets merged properly.
8772- Store common stacked settings contiguously in memory to avoid heap allocation for unused features, and reduce cache misses.
8773- Shutdown() tests for g.IO.Fonts not being NULL to ease use of multiple ImGui contexts. (#207)
8774- Added IMGUI_DISABLE_OBSOLETE_FUNCTIONS define to disable the functions that are meant to be removed.
8775- Examples: Added ? marks with tooltips next to various widgets. Added more comments in the demo window.
8776- Examples: Added Menu-bar example.
8777- Examples: Added Simple Layout example.
8778- Examples: AutoResize demo doesn't use TextWrapped().
8779- Examples: Console example uses standard malloc/free, makes more sense as a copy & pastable example.
8780- Examples: DirectX9/11: Fixed key mapping for down arrow.
8781- Examples: DirectX9/11: hide OS cursor if ImGui is drawing it. (#155)
8782- Examples: DirectX11: explicitly set rasterizer state.
8783- Examples: OpenGL3: Add conditional compilation of forward compat as required by glfw on OSX. (#229)
8784- Fixed build with Visual Studio 2008 (possibly earlier versions as well).
8785- Other fixes, comments, tweaks.
8786
8787
8788-----------------------------------------------------------------------
8789 VERSION 1.38 (2015-04-20)
8790-----------------------------------------------------------------------
8791
8792Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.38
8793
8794Breaking Changes:
8795
8796- Renamed IsClipped() to IsRectClipped(). Kept inline redirection function (will obsolete).
8797- Renamed ImDrawList::AddArc() to ImDrawList::AddArcFast().
8798
8799Other Changes:
8800
8801- Added DragFloat(), DragInt() widget, click and drag to adjust value with given step.
8802 Hold SHIFT/ALT to speed-up/slow-down. Double-click or CTRL+click to input text.
8803 Passing min >= max makes the widget unbounded.
8804- Added DragFloat2(), DragFloat3(), DragFloat4(), DragInt2(), DragInt3(), DragInt4() helper variants.
8805- Added ShowMetricsWindow() which is mainly useful to debug ImGui internals.
8806- Added IO.MetricsRenderVertices counter.
8807- Added ResetMouseDragDelta() for iterative dragging operations.
8808- Added ImFontAtlas::AddFontFromCompressedTTF() helper + binary_to_compressed_c.cpp tool to
8809 compress a file and create a .c array from it.
8810- Added PushId() GetId() variants that takes string range to avoid user making unnecessary copies.
8811- Added IsItemVisible().
8812- Fixed IsRectClipped() incorrectly returning false when log is enabled.
8813- Slider: visual fix in the unlikely that style.GrabMinSize is larger than a slider.
8814- SliderFloat: removed support for unbound slider (using FLT_MAX), caused various inconsistency. Use InputFloat()/DragFloat().
8815- ColorEdit4: hide components prefix if there's no space for them.
8816- Combo: adding frame padding inside the combo box.
8817- Columns: mouse dragging uses absolute mouse coordinates.Fixed dragging left-most column of an auto-resizable window. #125
8818- Selectable: render highlight into AutoFitPadding region but do not extend it, fixing visual gap.
8819- Focus: Allow SetWindowFocus(NULL) to remove focus.
8820- Focus: Clicking on void (outside an ImGui windows) loses keyboard-focus so application can use TAB.
8821- Popup: Fixed hovering over a popup's child (popups disable hovering on other windows but not their childs) #197
8822- Fixed active widget not releasing its active state while being clipped.
8823- Fixed user-facing version of IsItemHovered() ignoring overlapping windows.
8824- Fixed label vertical alignment for InputInt2(), InputInt3(), InputInt4().
8825- Fixed new collapsed auto-resizing window with saved .ini settings not calculating their initial width #176
8826- Fixed Begin() returning true on collapsed windows that had loaded settings #176
8827- Fixed style.DisplaySafeAreaPadding handling from being applied on window prior to them auto-fitting.
8828- ShowTestWindow(): added examples for DragFloat, DragInt and only custom label embedded in format strings.
8829- ShowTestWindow(): fixed "manipulating titles" example not doing the right thing, broken in ff35d24
8830- Examples: OpenGL/GLFW: Fixed modifier key state setting in GLFW callbacks.
8831- Examples: OpenGL/GLFW: Added glBindTexture(0) in OpenGL fixed pipeline examples.
8832 Save restore current program and texture in the OpenGL3 example.
8833- Examples: DirectX11: Removed unnecessary vertices conversion and CUSTOMVERTEX types.
8834- Comments, fixes, tweaks.
8835
8836
8837-----------------------------------------------------------------------
8838 VERSION 1.37 (2015-03-26)
8839-----------------------------------------------------------------------
8840
8841Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.37
8842
8843Other Changes:
8844
8845- Added a more convenient three parameters version of Begin() which covers the common uses better.
8846- Added mouse cursor types handling (resize, move, text input cursors, etc.) that user
8847 can query with GetMouseCursor(). Added demo and instructions in ShowTestWindow().
8848- Added embedded mouse cursor data for MouseDrawCursor software cursor rendering, for consoles/tablets/etc. (#155).
8849- Added first version of BeginPopup/EndPopup() helper API to create popup menus. Popups automatically
8850 lock their position to the mouse cursor when first appearing. They close automatically when clicking
8851 outside, and inhibit hovering items from other windows when active (to allow for clicking outside). (#126)
8852- Added thickness parameter to ImDrawList::AddLine().
8853- Added ImDrawList::PushClipRectFullScreen() helper.
8854- Added style.DisplaySafeAreaPadding which was previously hard-coded.
8855 (useful if you can't see the edges of your display, e.g. TV screens).
8856- Added CalcItemRectClosestPoint() helper.
8857- Added GetMouseDragDelta(), IsMouseDragging() helpers, given a mouse button and an optional
8858 "unlock" threshold. Added io.MouseDragThreshold setting. (#167)
8859- IsItemHovered() return false if another widget is active, aka we can't use what we are hovering now.
8860- Added IsItemHoveredRect() if old behavior of IsItemHovered() is needed (e.g. for implementing
8861 the drop side of a drag'n drop operation).
8862- IsItemHovered() include space taken by label and behave consistently for all widgets (#145)
8863- Auto-filling child window feed their content size to parent (#170)
8864- InputText() removed the odd ~ characters when clipping.
8865- InputText() update its width in case of resize initiated programmatically while the widget is active.
8866- InputText() last active preserve scrolling position. Reset scroll if widget size becomes bigger than contents.
8867- Selectable(): not specifying a width defaults to using max of label width and remaining width.
8868- Selectable(const char*, bool) version has bool defaulting to false.
8869- Selectable(): fixed misusage of GetContentRegionMax().x leaking into auto-fitting.
8870- Windows starting Collapsed runs initial auto-fit to retrieve a width for their title bar (#175)
8871- Fixed new window from having an incorrect content size on their first frame, if queried by user.
8872 Fixed SetWindowPos/SetNextWindowPos having a side-effect size computation (#175)
8873- InputFloat(): fixed label alignment if total widget width forcefully bigger than space available.
8874- Auto contents size aware of enforced vertical scrollbar if window is larger than display size.
8875- Fixed new windows auto-fitting bigger than their .ini saved size.
8876 This was a bug but it may be a desirable effect sometimes, may reconsider it.
8877- Fixed negative clipping rectangle when collapsing windows that could affect manual
8878 submission to ImDrawList and end-user rendering function if unhandled (#177)
8879- Fixed bounding measurement of empty groups (fix #162)
8880- Fixed assignment order in Begin() making auto-fit size effectively lag by one frame. Also disabling
8881 "clamp into view" while windows are auto-fitting so that auto-fitting window in corners don't get pushed away.
8882- Fixed MouseClickedPos not updated on double-click update (#167)
8883- Fixed MouseDrawCursor feature submitting an empty trailing command in the draw list.
8884 Fixed unmerged draw calls for software mouse cursor.
8885- Fixed double-clicking on resize grip keeping the grip active if mouse button is kept held.
8886- Bounding box tests exclude higher bound, so touching items (zero spacing) don't report double hover when cursor is on edge.
8887- Setting io.LogFilename to NULL disable default LogToFile() (part of #175)
8888- Tweak stb_textedit integration to be lenient if another piece of code are leaking their STB_TEXTEDIT definitions/symbols.
8889- Shutdown() freeing a few extra vectors so they don't have to freed by destruction (#169)
8890- Examples: OpenGL2/3 examples automatically hide the OS mouse cursor if software cursor rendering is used.
8891- ShowTestWindow: Added Widgets Alignment demo under Layout section
8892- ShowTestWindow: Added simple dragging widget example.
8893- ShowTestWindow: Graph has checkbox under the label, also demo using BeginGroup/EndGroup().
8894- ShowTestWindow: Using SetNextWindowSize() in examples to encourage its use.
8895- Fixes, tweaks, comments.
8896
8897
8898-----------------------------------------------------------------------
8899 VERSION 1.36 (2015-03-18)
8900-----------------------------------------------------------------------
8901
8902Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.36
8903
8904Other Changes:
8905
8906- Added ImGui::GetVersion(), IMGUI_VERSION (#127)
8907- Added BeginGroup()/EndGroup() layout tools (#160).
8908- Added Indent() / Unindent().
8909- Added InputInt2(), InputInt3(), InputInt4() for completeness.
8910- Added GetItemRectSize().
8911- Added VSliderFloat(), VSliderInt(), vertical sliders.
8912- Added IsRootWindowFocused(), IsRootWindowOrAnyChildFocused().
8913- Added io.KeyAlt + support in examples apps, in prevision for future usage of Alt modifier (was missing).
8914- Added ImGuiStyleVar_GrabMinSize enum value for PushStyleVar().
8915- Various fixes related to vertical alignment of text after widget of varied sizes.
8916 Allow for multiple blocks of multiple lines text on the same "line". Added demos.
8917- Explicit size passed to Plot*(), Button() includes the frame padding.
8918- Style: Changed default Border and Column border colors to be most subtle.
8919- Renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing.
8920- Renamed GetWindowIsFocused() to IsWindowFocused(), kept inline redirection with old name (will obsolete).
8921- Renamed GetItemRectMin()/GetItemRectMax() to GetItemRectMin()/GetItemRectMax(), kept inline redirection with old name (will obsolete).
8922- Sliders: Fast-path when power=1.0f, also makes code easier to read.
8923- Sliders: Fixed parsing of decimal precision back from format string when using %%.
8924- Sliders: Fixed hovering bounding test excluding padding between outer frame and grab (there was a few pixels dead-zone).
8925- Separator() logs itself as text when passing through text log.
8926- Optimization: TreeNodeV() early out if SkipItems is set without formatting.
8927- Moved various static buffers into state. Increase the formatted string buffer from 1K to 3K.
8928- Examples: Example console keeps focus on input box at all times.
8929- Examples: Updated to GLFW 3.1. Moved to examples/libs/ folder.
8930- Examples: Added 64-bit projects for MSVC.
8931- Examples: Increase warning level from /W3 to /W4 for MSVC.
8932- Examples: DirectX9: fixed duplicate creation of vertex buffer.
8933- Renamed internal type ImGuiAabb to ImRect. Changed mentions of 'box' or 'aabb' to say 'rect'.
8934- Tweaks, minor fixes and comments.
8935
8936
8937-----------------------------------------------------------------------
8938 VERSION 1.35 (2015-03-09)
8939-----------------------------------------------------------------------
8940
8941Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.35
8942
8943Other Changes:
8944
8945- Examples: refactored all examples application to make it easier to isolate and grab the
8946 code you need for OpenGL 2/3, DirectX 9/11, and toward a more sensible format for samples.
8947- Scrollbar grab have a minimum size (style.GrabSizeMin), always visible even with huge
8948 scroll amount. (#150).
8949- Scrollbar: Clicking inside the grab box doesn't modify scroll value. Subsequent movement always relative.
8950- Added "###" labelling syntax to pass a label that isn't part of the hashed ID (#107), e.g. ("%d###static_id",rand()).
8951- Added GetColumnIndex(), GetColumnsCount() (#154)
8952- Added GetScrollPosY(), GetScrollMaxY().
8953- Fixed the Chinese/Japanese glyph ranges; include missing punctuations (#156)
8954- Fixed Combo() and ListBox() labels not included in declared size, for use with SameLine(), etc. (fix #149, #151).
8955- Fixed ListBoxHeader() incorrect handling of SkipItems early out when window is collapsed.
8956- Fixed using IsItemHovered() after EndChild() (#151)
8957- Fixed malformed UTF-8 decoding errors leading to infinite loops (#158)
8958- InputText() handles buffer limit correctly for multi-byte UTF-8 characters, won't insert
8959 an incomplete UTF-8 character when reaching buffer limit (fix #158)
8960- Handle double-width space (0x3000) in various places the same as single-width spaces,
8961 for Chinese/Japanese users.
8962- Collapse triangle uses text color (not border color).
8963- Fixed font fallback glyph width.
8964- Renamed style.ScrollBarWidth to style.ScrollbarWidth to be consistent with other casing.
8965- Windows: setup a default handler for ImeSetInputScreenPosFn so the IME dialog
8966 (for Japanese/Chinese, etc.) is positioned correctly as you input text.
8967- Windows: default clipboard handlers for Windows handle UTF-8.
8968- Examples: Fixed DirectX 9/11 examples applications handling of Microsoft IME.
8969- Examples: Allow DirectX 9/11 examples applications to resize the window.
8970- ShowTestWindow: Fixed "undo" button of custom rendering applet.
8971- ShowTestWindow: Added "Manipulating Window Title" example.
8972
8973
8974-----------------------------------------------------------------------
8975 VERSION 1.34 (2015-03-02)
8976-----------------------------------------------------------------------
8977
8978Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.34
8979
8980Other Changes:
8981
8982- Added Bullet() helper - equivalent to BulletText(""), SameLine().
8983- Added SetWindowFocus(), SetWindowFocus(const char*), SetNextWindowFocus() (#146)
8984- Added SetWindowPos(), SetWindowSize(), SetWindowCollaposed() given a window name.
8985- Added SetNextTreeNodeOpened() with optional condition flag in replacement of OpenNextNode()
8986 and consistent with other API.
8987- Renamed ImGuiSetCondition_* to ImGuiSetCond_* and ImGuiCondition_FirstUseThisSession to ImGuiCond_Once.
8988- Added missing definition for ImGui::GetWindowCollapsed().
8989- Fixed GetGlyphRangesJapanese() actually missing katakana ranges and a few useful extensions.
8990- Fixed clicking on a widget in a child window not focusing the parent window (#147).
8991- Fixed clicking on empty space of child window not setting keyboard focus for the child window (#147).
8992- Fixed IsItemHovered() behaving differently on Combo() (#145)
8993- Fixed ColumnOffsets storage not honoring SetStateStorage() (not very useful but consistent).
8994- Examples: Removed dependency on Glew for OpenGL examples. Removed Glew binaries for Windows.
8995- Examples: Fixed link warning for OpenGL windows examples.
8996- Comments, tweaks.
8997
8998-----------------------------------------------------------------------
8999 VERSION 1.33b (2015-02-23)
9000-----------------------------------------------------------------------
9001
9002Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.33b
9003
9004Other Changes:
9005
9006- Fixed resizing columns.
9007
9008
9009-----------------------------------------------------------------------
9010 VERSION 1.33 (2015-02-22)
9011-----------------------------------------------------------------------
9012
9013Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.33
9014
9015Other Changes:
9016
9017- InputText: having a InputText widget active doesn't steal mouse inputs from clicking on
9018 a button before losing focus (relate to #134)
9019- InputText: cursor/selection/undo stack persist when using other widgets and getting back to same (#134).
9020- InputText: fix effective buffer size being smaller than necessary by 1 byte (so if you give
9021 3 bytes you can input 2 ascii chars + zero terminator, which is correct).
9022- Added IsAnyItemActive().
9023- Child window explicitly inherit collapse state from parent (so if user keeps submitting items
9024 even thought Begin has returned 'false' the child items will be clipped faster).
9025- BeginChild() return a bool the same way Begin() does. if true you can skip submitting content.
9026- Removed extraneous (1,1) padding on child window (pointed out in #125)
9027- Columns: doesn't bail out when SkipItems is set (fix #136)
9028- Columns: Separator() within column correctly vertical offset all cells (pointed out in #125)
9029- GetColumnOffset() / SetColumnOffset() handles padding values more correctly so matching columns
9030 can be lined up between a parent and a child window (cf. #125)
9031- Fix ImFont::BuildLookupTable() potential dangling pointer dereference (fix #131)
9032- Fix hovering of child window extending past their parent not taking account of parent clipping
9033 rectangle (fix #137)
9034- Sliders: value text is clipped inside the frame when resizing sliders to be small.
9035- ImGuITextFilter::Draw() use regular width call rather than computing its own arbitrary width.
9036- ImGuiTextFilter: can take a default filter string during construction.
9037
9038
9039-----------------------------------------------------------------------
9040 VERSION 1.32 (2015-02-11)
9041-----------------------------------------------------------------------
9042
9043Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.32
9044
9045Other Changes:
9046
9047- Added Selectable() building block for various list boxes, combo boxes, etc.
9048- Added ListBox() (#129).
9049- Added ListBoxHeader(), ListBoxFooter() for customized list traversal and creating multi-selection boxes.
9050- Fixed title bar text clipping issue (fix #128).
9051- InputText: added ImGuiInputTextFlags_CallbackCharFilter system for filtering/replacement (#130).
9052 Callback now passed an "EventFlag" parameter.
9053- InputText: Added ImGuiInputTextFlags_CharsUppercase and ImGuiInputTextFlags_CharsNoBlank stock filters.
9054- PushItemWidth() can take negative value to right-align items.
9055- Optimization: Columns offsets cached to avoid unnecessary binary search.
9056- Optimization: Optimized CalcTextSize() function by about 25% (they are often the bottleneck when
9057 submitting thousands of clipped items).
9058- Added ImGuiCol_ChildWindowBg, ImGuiStyleVar_ChildWindowRounding for completeness and flexibility.
9059- Added BeginChild() variant that takes an ImGuiID.
9060- Tweak default ImGuiCol_HeaderActive color to be less bright.
9061- Calculate framerate for the user (IO.Framerate), as a purely luxurious feature and to reduce sample code size a little.
9062
9063
9064-----------------------------------------------------------------------
9065 VERSION 1.31 (2015-02-08)
9066-----------------------------------------------------------------------
9067
9068Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.31
9069
9070Other Changes:
9071
9072- Added ImGuiWindowFlags_NoCollapse flag.
9073- Added a way to replace the internal state pointer so that we can optionally share it between
9074 modules (e.g. multiple DLLs).
9075- Added tint_col parameter to ImageButton().
9076- Added CalcListClipping() helper to perform faster/coarse clipping on user side
9077 (when manipulating lists with thousands of items).
9078- Added GetCursorPosX() / GetCursorPosY() shortcuts.
9079- Renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing().
9080- Combo box always appears above other child windows of a same parent.
9081- Combo/Label: label is properly clipped inside the frame (#23).
9082- Added cpu-side text clipping functions which are used in some instances to avoid extra draw calls.
9083- InputText: Filtering private Unicode range 0xE000-0xF8FF.
9084- Fixed holding button over scrollbar creating a small feedback loop with calculation of contents size.
9085- Calling SetCursorPos() automatically extends the contents size.
9086- Track ownership of mouse clicks. Avoid requesting IO.WantCaptureMouse if initial click was outside of ImGui.
9087- Removed the dependency on realloc().
9088- Other fixes, tweaks and comments.
9089
9090
9091-----------------------------------------------------------------------
9092 VERSION 1.30 (2015-02-01)
9093-----------------------------------------------------------------------
9094
9095Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.30
9096
9097Breaking Changes:
9098
9099- Big update! Initialization had to be changed. You don't need to load PNG data anymore. The
9100 new system gives you uncompressed texture data.
9101 - This sequence:
9102 const void* png_data;
9103 unsigned int png_size;
9104 ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size);
9105 // <Copy to GPU>
9106 - Became:
9107 unsigned char* pixels;
9108 int width, height;
9109 // io.Fonts->AddFontFromFileTTF("myfontfile.ttf", 24.0f); // Optionally load another font
9110 io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height);
9111 // <Copy to GPU>
9112 io.Fonts->TexID = (your_texture_identifier);
9113 - PixelCenterOffset has been removed and isn't a necessary setting anymore. Offset your
9114 projection matrix by 0.5 if you have rendering problems.
9115
9116Other Changes:
9117
9118- Loading TTF files with stb_truetype.h.
9119- We still embed a compressed pixel-perfect TTF version of ProggyClean for convenience.
9120- Runtime font rendering is a little faster than previously.
9121- You can load multiple fonts with multiple size inside the font atlas. Rendering with multiple
9122 fonts are still merged into a single draw call whenever possible.
9123- The system handles UTF-8 and provide ranges to easily load e.g. characters for Japanese display.
9124- Added PushFont() / PopFont().
9125- Added Image() and ImageButton() to display your own texture data.
9126- Added callback system in command-list. This can be used if you want to do your own rendering
9127 (e.g. render a 3D scene) inside ImGui widgets.
9128- Added IsItemActive() to tell if last widget is being held / modified (as opposed to just
9129 being hovered). Useful for custom dragging behaviors.
9130- Style: Added FrameRounding setting for a more rounded look (default to 0 for now).
9131- Window: Fixed using multiple Begin/End pair on the same window.
9132- Window: Fixed style.WindowMinSize not being honored properly.
9133- Window: Added SetCursorScreenPos() helper (WindowPos+CursorPos = ScreenPos).
9134- ColorEdit3: clicking on color square change the edition. The toggle button is hidden by default.
9135- Clipboard: Fixed logging to clipboard on architectures where va_list are passed by reference to vsnprintf.
9136- Clipboard: Improve memory reserve policy for Clipboard / ImGuiTextBuffer.
9137- Tooltip: Always auto-resize.
9138- Tooltip: Fixed TooltigBg color not being honored properly.
9139- Tooltip: Allow SetNextWindowPos() to be used on tooltips.
9140- Added io.DisplayVisibleMin / io.DisplayVisibleMax to ease integration of virtual / scrolling display.
9141- Added Set/GetVoidPtr in ImGuiStorage.
9142- Added ColorConvertHSVtoRGB, ColorConvertRGBtoHSV, ColorConvertFloat4ToU32 helpers.
9143- Added ImColor() inline helper to easily convert colors to packed 4x1 byte or 4x1 float formats.
9144- Added io.MouseDrawCursor option to draw a mouse cursor for now (on systems that don't have one)
9145- Examples: Added custom drawing app example for using ImDrawList api.
9146- Lots of others fixes, tweaks and comments!
9147
9148
9149-----------------------------------------------------------------------
9150 VERSION 1.20 (2015-01-07)
9151-----------------------------------------------------------------------
9152
9153Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.20
9154
9155- Fixed InputInt() InputFloat() label not declaring their width, breaking usage of SameLine().
9156- Fixed hovering of combo boxes that extend beyond the parent window limits.
9157- Fixed text input of Unicode character in the 128-255 range.
9158- Fixed clipboard pasting into an InputText box not filtering the characters according to contents semantic.
9159- Dragging outside area of a widget while it is active doesn't trigger hover on other widgets.
9160- Activating widget bring parent window to front if not already.
9161- Checkbox and Radio buttons activate on click-release to be consistent with other widgets and most UI.
9162- InputText() now consumes input characters immediately so they cannot be reused if
9163 ImGui::Update is called again with a call to ImGui::Render(). (fixes #105)
9164- Examples: Console: added support for History callbacks + some cleanup.
9165- Various small optimizations.
9166- Cleanup and other fixes.
9167
9168
9169-----------------------------------------------------------------------
9170 VERSION 1.19 (2014-12-30)
9171-----------------------------------------------------------------------
9172
9173Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.19
9174
9175- Tightening default style a little.
9176- Added ImGuiStyleVar_WindowRounding enum for PushStyleVar() API.
9177- Added SliderInt2(), SliderInt3(), SliderInt4() for consistency.
9178- Widgets more consistently handle empty labels (starting with ## mark) for their size calculation.
9179- Fixed crashing with zero sized frame-buffer.
9180- Fixed ImGui::Combo() not registering its size properly when clipped out of screen.
9181- Renamed second parameter to Begin() to 'bool* p_opened' to be a little more self-explanatory.
9182 Added more comments on the use of Begin().
9183- Logging: Added LogText() to pass text straight to the log output (tty/clipboard/file) without rendering it.
9184- Logging: Added LogFinish() to stop logging at an arbitrary point.
9185- Logging: Log depth padding relative to start depth.
9186- Logging: Tree nodes and headers looking better when logged to text.
9187- Logging: Log outputs \r\n under Windows to play it nicely with \n unaware tools such as Notepad.
9188- Style editor: added a button to output colors to clipboard/tty.
9189- OpenGL3 example: fix growing of VBO.
9190- Cleanup and other minor fixes.
9191
9192
9193-----------------------------------------------------------------------
9194 VERSION 1.18 (2014-12-11)
9195-----------------------------------------------------------------------
9196
9197Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.18
9198
9199- Added ImGuiWindowFlags_NoScrollWithMouse, disable mouse wheel scrolling on a window.
9200- Added ImGuiWindowFlags_NoSavedSettings, disable loading/saving window state to .ini file.
9201- Added SetNextWindowPos(), SetNextWindowSize(), SetNextWindowCollapsed() API along
9202 with SetWindowPos(), SetWindowSize(), SetWindowCollapsed(). All functions include an
9203 optional second parameter to easily set current value vs session default value vs.
9204 persistent default value.
9205- Removed rarely useful SetNewWindowDefaultPos() in favor of new API.
9206- Fixed hovering of lower-right resize grip when it is above a child window.
9207- Fixed InputInt() writing to output when it doesn't need to.
9208- Added IMGUI_INCLUDE_IMGUI_USER_H define to include user file at the bottom of imgui.h without modifying the vanilla distribution.
9209- ImGuiStorage helper can store float + added helpers to get pointer to stored data.
9210- Setup Travis CI integration. Builds the OpenGL examples on Linux with GCC and Clang.
9211- Examples: Added a "Fixed overlay" example in ShowTestWindow().
9212- Examples: Re-added OpenGL 3 programmable-pipeline example (along with the existing fixed pipeline example).
9213- Examples: OpenGL examples can now resize the application window.
9214- Other minor fixes and comments.
9215
9216
9217-----------------------------------------------------------------------
9218 VERSION 1.17 (2014-12-03)
9219-----------------------------------------------------------------------
9220
9221Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.17
9222
9223- Added ImGuiWindowFlags_AlwaysAutoResize + example app.
9224- Calling ImGui::SetWindowSize(0,0) force an autofit without zero-sizing first.
9225- ImGui::InputText() support for completion/history/custom callback + added fancy completion example in the console demo app.
9226- Not word-wrapping on apostrophes.
9227- Increased visibility of check box and radio button with smaller size.
9228- Smooth mouse scrolling on OSX (uses floating point scroll/wheel input).
9229- New version of IMGUI_ONCE_UPON_A_FRAME helper macro that works with all compilers.
9230- Moved IO.Font*** options to inside the IO.Font-> structure.
9231- Added IO.FontGlobalScale setting (in addition to Font->Scale per individual font).
9232- Fixed more Clang -Weverything warnings.
9233- Examples: Added DirectX11 example application.
9234- Examples: Created single .sln solution for all example projects.
9235- Examples: Fixed DirectX9 example window initially showing an hourglass cursor.
9236- Examples: Removed Microsoft IME handler in examples, too niche/confusing. Moved equivalent code to imgui.cpp instruction block.
9237
9238
9239-----------------------------------------------------------------------
9240 VERSION 1.16b (2014-11-21)
9241-----------------------------------------------------------------------
9242
9243Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.16b
9244
9245- Fix broken PopStyleVar() crashing.
9246
9247
9248-----------------------------------------------------------------------
9249 VERSION 1.16 (2014-11-21)
9250-----------------------------------------------------------------------
9251
9252Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.16
9253
9254- General fixing of Columns API to allow filling a cell with multiple widgets before switching to the next column.
9255- Added documentation INDEX to top of imgui.cpp.
9256- Fixed unaligned memory access for Emscripten compatibility.
9257- Various pedantic warning fixes (now testing with Clang).
9258- Added extra asserts to catch incorrect usage.
9259- PushStyleColor() / PushStyleVar() can be used outside the scope of a window (namely to change
9260 variables that are used within the Begin() call).
9261- PushTextWrapPos() defaults to 0.0 (right-end of current drawing region).
9262- Fixed compatibility with std::vector if user decide to #define ImVector.
9263- MouseWheel input is now normalized.
9264- Added IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT compile-time option to redefine the vertex layout.
9265- Style editor: colors listed inside a scrolling region.
9266- Examples: tweaks and fixes.
9267
9268
9269-----------------------------------------------------------------------
9270 VERSION 1.15 (2014-11-07)
9271-----------------------------------------------------------------------
9272
9273Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.15
9274
9275- Renamed IsHovered() to IsItemHovered().
9276- Added word-wrapping API: TextWrapped(), PushTextWrapPos(), PopTextWrapPos().
9277- Added IsItemFocused() to tell if last widget is being focused for keyboard input.
9278- Added overloads of ImGui::PlotLines() and ImGui::PlotHistogram() taking a function pointer to get values.
9279- Added SetWindowSize().
9280- Added GetContentRegionMax() supporting columns. Some bug fixes with using columns.
9281- Added PushStyleVar(),PopStyleVar() helpers to modify style from user code.
9282- Added dummy IMGUI_API definition in front of all entry-points for silly DLL action.
9283- Allowing BeginChild() allows to specify negative sizes to specify "use remaining minus xx".
9284- Windows with the NoResize flag can still use auto-fitting.
9285- Added a simple example console into the demo window.
9286- Comments and fixes.
9287
9288
9289-----------------------------------------------------------------------
9290 VERSION 1.14 (2014-10-25)
9291-----------------------------------------------------------------------
9292
9293Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.14
9294
9295- Comments and fixes.
9296- Added SetKeyboardFocusHere() to set input focus from code.
9297- Added GetWindowFont(), GetWindowFontSize() for users of the low-level ImDrawList API.
9298- Added a UserData void *pointer so that the callback functions can access user state
9299 "Just in case a project has adverse reactions to adding globals or statics in their own code."
9300- Renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL
9301
9302
9303----------------------------------------------------------------------
9304 VERSION 1.13 (2014-09-30)
9305-----------------------------------------------------------------------
9306
9307Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.13
9308
9309- Added support for UTF-8 for international text display and text edition/input (if the font supports it).
9310- Added sample "M+ font" by Coji Morishita in extra_fonts/ to display Japanese text.
9311- Added IO.ImeSetInputScreenPosFn callback for positioning OS IME input.
9312- Added IO.FontFallbackGlyph (default to '?').
9313- OpenGL example: added commented code to load custom font from file-system.
9314- OpenGL example: shared makefile for Linux and MacOSX.
9315
9316
9317----------------------------------------------------------------------
9318 VERSION 1.12 (2014-09-24)
9319-----------------------------------------------------------------------
9320
9321Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.12
9322
9323- Added IO.FontBaseScale value for easy scaling of all windows.
9324- Added IsMouseHoveringWindow(), IsMouseHoveringAnyWindow(), IsPosHoveringAnyWindow() helpers.
9325- Added va_list variations of all functions taking ellipsis (...) parameters.
9326- Added section in documentation to explicitly document cases of API breaking changes (e.g. renamed IM_MALLOC below).
9327- Moved IM_MALLOC / IM_FREE defines. to IO structure members that can be set at runtime
9328 (also allowing precompiled ImGui to cover more use cases).
9329- Fixed OpenGL samples for Retina display.
9330- Comments and minor fixes.
9331
9332
9333----------------------------------------------------------------------
9334 VERSION 1.11 (2014-09-10)
9335-----------------------------------------------------------------------
9336
9337Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.11
9338
9339- Added more comments in the code.
9340- Made radio buttons render ascii when logged into tty/file/clipboard.
9341- Added ImGuiInputTextFlags_EnterReturnsTrue flag to InputText() and variants.
9342- Added #define IMGUI_INCLUDE_IMGUI_USER_CPP to optionally include imgui_user.cpp from the end of imgui.cpp
9343- Fixed file-descriptor leak if ImBitmapFont::LoadFromFile() calls to fseek/ftell fails.
9344
9345
9346----------------------------------------------------------------------
9347 VERSION 1.10 (2014-08-31)
9348-----------------------------------------------------------------------
9349
9350Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.10
9351
9352- User can override memory allocators by #define-ing IM_MALLOC, IM_FREE, IM_REALLOC,
9353- Added SetCursorPosX(), SetCursorPosY() shortcuts.
9354- Checkbox() returns true when pressed.
9355- Added optional external fonts data in extra_fonts/ for reference.
9356- Removed the need to setup IO.FontHeight when using a custom font.
9357- Added comments on external fonts usage.
9358
9359
9360----------------------------------------------------------------------
9361 VERSION 1.09 (2014-08-28)
9362-----------------------------------------------------------------------
9363
9364Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.09
9365
9366Breaking Changes:
9367
9368- The behavior of PixelCenterOffset changed! You may need to change your value if you had set
9369 it to non-default in your code and/or offset your projection matrix by 0.5 pixels. It is
9370 likely that the default PixelCenterOffset value of 0.0 is now suitable unless your rendering
9371 uses some form of multisampling.
9372
9373Other Changes:
9374
9375- Various minor render tweaks and fixes. Better support for renderers using multisampling.
9376- Moved IMGUI_FONT_TEX_UV_FOR_WHITE #define to a variable in the IO structure so font can be changed at runtime.
9377- Minor other fixes, tweaks, comments.
9378
9379
9380----------------------------------------------------------------------
9381 VERSION 1.08 (2014-08-25)
9382-----------------------------------------------------------------------
9383
9384Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.08
9385
9386- Fixed ImGuiTextFilter trimming of leading/trailing blanks.
9387- Fixed file descriptor leak on LoadSettings() failure.
9388- Fix type conversion compiler warnings.
9389- Added basic sizes edition in the style editor.
9390- Added CalcTextSize(), GetCursorScreenPos() functions.
9391- Disable client state in OpenGL example after rendering.
9392- Converted all Tabs to Spaces in sources.
9393
9394
9395----------------------------------------------------------------------
9396 VERSION 1.07 (2014-08-18)
9397-----------------------------------------------------------------------
9398
9399Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.07
9400
9401- Added InputFloat4(), SliderFloat4() helpers.
9402- Added global Alpha in ImGuiStyle structure. When Alpha=0.0, ImGui skips most of logic
9403 and all rendering processing.
9404- Fix clipping of title bar text.
9405- Fix to allow the user to call NewFrame() multiple times without calling Render().
9406- Reduce inner window clipping to take account for the extend of CollapsingHeader() - share
9407 same clipping rectangle.
9408- Fix for child windows with inverted clip rectangles (when scrolled and out of screen, Etc.).
9409- Minor fixes, tweaks, comments.
9410
9411
9412----------------------------------------------------------------------
9413 VERSION 1.06 (2014-08-15)
9414-----------------------------------------------------------------------
9415
9416Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.06
9417
9418- Added BeginTooltip()/EndTooltip() helpers to create tooltips with custom contents.
9419- Added TextColored() helper.
9420- Added a 'stride' parameter to PlotLines() / PlotHistogram().
9421- Fixed PlotLines() / PlotHistogram() from occasionally wrapping back to the most-left value.
9422- TreeNode() / CollapsingHeader() ignore clicks when CTRL or SHIFT are held.
9423- Slowed down mouse wheel scrolling inside combo boxes.
9424- Minor tweaks.
9425- Fixed trailing '\n' in text strings reporting extra line height.
9426- Fixed tooltip position needlessly leaking into .ini file.
9427- Fixed invalid .ini file data persistently being saved back into the file.
9428
9429
9430----------------------------------------------------------------------
9431 VERSION 1.05 (2014-08-14)
9432-----------------------------------------------------------------------
9433
9434Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.05
9435
9436- Added default clipboard functions for Windows + "private" clipboard on other systems (user can still override).
9437- Fixed logarithmic sliders and HSV conversions on Mac/Linux.
9438- Tidying up example applications so it looks easier to just grab code.
9439- Added GetItemBoxMin(), GetItemBoxMax().
9440- Tweaks, more consistent #define names.
9441- Fix for doing multiple Begin()/End() during the same frame.
9442
9443
9444----------------------------------------------------------------------
9445 VERSION 1.04 (2014-08-13)
9446-----------------------------------------------------------------------
9447
9448Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.04
9449
9450- Fixes (v1.03 introduced a bug with combo box & scissoring bug OpenGL sample).
9451- Added ImGui::InputFloat2() and ImGui::SliderFloat2() functions.
9452
9453
9454----------------------------------------------------------------------
9455 VERSION 1.03 (2014-08-13)
9456-----------------------------------------------------------------------
9457
9458Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.03
9459
9460- OpenGL example now use the fixed function-pipeline + cleanups, down by 150 lines.
9461- Added quick & dirty Makefiles for MacOSX and Linux.
9462- Simplified the DrawList system, ImDrawCmd include the clipping rectangle + some optimizations.
9463- Fixed warnings for more stringent compilation settings.
9464
9465
9466----------------------------------------------------------------------
9467 VERSION 1.02 (2014-08-12)
9468-----------------------------------------------------------------------
9469
9470Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.02
9471
9472- Comments.
9473- Portability fixes.
9474- Fixing and tidying up sample applications.
9475- Checkboxes and radio buttons can be clicked on their labels as well as their icon.
9476- Checkboxes and radio buttons display in a different color when hovered.
9477
9478
9479----------------------------------------------------------------------
9480 VERSION 1.01 (2014-08-11)
9481-----------------------------------------------------------------------
9482
9483Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.01
9484
9485- Added PixelCenterOffset for OpenGL/DirectX compatibility.
9486- Commented and tweaked samples.
9487- Added Git ignore list.
9488
9489
9490----------------------------------------------------------------------
9491 VERSION 1.00 (2014-08-10)
9492-----------------------------------------------------------------------
9493
9494Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.00
9495
9496- Initial release.
9497