CHANGELOG
CHANGELOG
CHANGELOG
This document holds the user-facing changelog that we also use in release notes.
We generally fold multiple commits pertaining to the same topic as a single entry.
Changes to backends are also included within the individual .cpp files of each
backend.
FAQ https://www.dearimgui.com/faq/
RELEASE NOTES: https://github.com/ocornut/imgui/releases
WIKI https://github.com/ocornut/imgui/wiki
GETTING STARTED https://github.com/ocornut/imgui/wiki/Getting-Started
GLOSSARY https://github.com/ocornut/imgui/wiki/Glossary
ISSUES & SUPPORT https://github.com/ocornut/imgui/issues
WHEN TO UPDATE?
HOW TO UPDATE?
-----------------------------------------------------------------------
VERSION 1.91.9 WIP (In Progress)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.91.8 (Released 2025-01-31)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.91.7 (Released 2025-01-14)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.91.6 (Released 2024-12-11)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
- Error Handling: fixed cases where recoverable error handling would crash when
processing errors outside of the NewFrame()..EndFrame() scope. (#1651)
- Tables: fixed SetNextWindowScroll() value being ignored by BeginTable() during
the first frame or when scrolling flags have changed. (#8196)
- InputText: added ImGuiInputTextFlags_ElideLeft to elide left side and ensure
right side
of contents is visible when whole text is not fitting (useful for
paths/filenames).
(#1442, #1440, #4391, #7208, #8216) [@kucoman, @ocornut]
- InputText: reactivating last activated InputText() doesn't restore horizontal
scrolling
(which was disabled during deactivation anyway).
- Misc: changed embedded ProggyClean encoding to save a bit of binary space (~12kb
to 9.5kb).
- Misc: added IMGUI_DISABLE_DEFAULT_FONT to strip embedded font from binary.
(#8161)
[@demonese]
- Demo: example tree used by Property Editor & Selection demos properly freed
on application closure. (#8158) [@Legulysse]
- Fonts: fixed AddCustomRect() not being packed with TexGlyphPadding + not
accounted
for surface area used to determine best-guess texture size. (#8107) [@YarikTH,
@ocornut]
- Misc: use SSE 4.2 crc32 instructions when available. (#8169, #4933) [@Teselka]
- Tools: binary_to_compressed_c: added -u8/-u32/-base85 export options.
- Backends: DirectX12: Let user specifies the DepthStencilView format by setting
ImGui_ImplDX12_InitInfo::DSVFormat. (#8217) [@bmarques1995]
- Backends: Vulkan: Make user-provided descriptor pool optional. As a convenience,
when setting init_info->DescriptorPoolSize then the backend will create and
manage
one itself. (#8172, #4867) [@zeux]
- Examples: Win32+DX12: Using a basic free-list allocator to manage multiple
SRV descriptors.
-----------------------------------------------------------------------
VERSION 1.91.5 (Released 2024-11-07)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
- Selectable: selected Selectables use ImGuiCol_Header instead of an arbitrary lerp
between _Header and _HeaderHovered which was introduced v1.91 (#8106, #1861)
- Buttons: using ImGuiItemFlags_ButtonRepeat makes default button behavior use
PressedOnClick instead of PressedOnClickRelease when unspecified.
- This is intended to make the +/- buttons of InputInt/InputFloat react on the
initial mouse down event.
- Note that it may reveal incorrect usage if you were using InputInt/InputFloat
without persistent storage by relying solely on e.g.
IsItemDeactivatedAfterEdit():
this was never supported and didn't work consistently (see #8149).
- InputText: fixed a bug (regression in 1.91.2) where modifying text buffer within
a callback would sometimes prevents further appending to the buffer.
- Tabs, Style: made ImGuiCol_TabDimmedSelectedOverline alpha 0 (not visible) in
default
styles as the current look is not right (but ImGuiCol_TabSelectedOverline stays
the same).
- Log/Capture: added experimental io.ConfigWindowsCopyContentsWithCtrlC option to
automatically copy window contents into clipboard using CTRL+C. This is
experimental
because (1) it currently breaks on nested Begin/End, (2) text output quality
varies,
and (3) text output comes in submission order rather than spatial order.
- Log/Capture: better decorating of BeginMenu() and TabItem() output.
- Log/Capture: a non terminated log ends automatically in the window which called
it.
- imgui_freetype: Fixed a crash in build font atlas when using merged fonts and the
first font in a merged set has no loaded glyph. (#8081)
- Backends: DX12: Unmap() call specify written range. The range is informational
and
may be used by debug tools.
- Backends: SDL2: Replace SDL_Vulkan_GetDrawableSize() forward declaration with the
actual include. (#8095, #7967, #3190) [@sev-]
- Backends: SDL2, SDL3: SDL_EVENT_MOUSE_WHEEL event doesn't require dividing
by 100.0f on Emscripten target. (#4019, #6096, #1463)
- Examples: SDL3+Vulkan: Added example. (#8084, #8085)
- Examples: Android+OpenGL: Using ALooper_pollOnce() instead of ALooper_pollAll()
which has been deprecated. (#8013) [@feather179]
-----------------------------------------------------------------------
VERSION 1.91.4 (Released 2024-10-18)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.91.3 (Released 2024-10-04)
-----------------------------------------------------------------------
Breaking changes:
- Drags: treat v_min==v_max as a valid clamping range when != 0.0f. Zero is still a
special
value due to legacy reasons, unless using ImGuiSliderFlags_ClampZeroRange.
(#7968, #3361, #76)
- Drags: extended behavior of ImGuiSliderFlags_AlwaysClamp to include
_ClampZeroRange.
It considers v_min==v_max==0.0f as a valid clamping range (aka edits not
allowed).
Although unlikely, it you wish to only clamp on text input but want
v_min==v_max==0.0f
to mean unclamped drags, you can use _ClampOnInput instead of _AlwaysClamp.
(#7968, #3361, #76)
Other changes:
-----------------------------------------------------------------------
VERSION 1.91.2 (Released 2024-09-19)
-----------------------------------------------------------------------
Breaking changes:
- Internals: using multiple overlayed ButtonBehavior() with same ID will now have
the
io.ConfigDebugHighlightIdConflicts=true feature emit a warning. (#8030)
It was one of the rare case where using same ID is legal. Workarounds:
- use single ButtonBehavior() call with multiple _MouseButton flags
- or surround the calls with PushItemFlag(ImGuiItemFlags_AllowDuplicateId,
true); ... PopItemFlag()
Other changes:
-----------------------------------------------------------------------
VERSION 1.91.1 (Released 2024-09-04)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.91.0 (Released 2024-07-30)
-----------------------------------------------------------------------
Breaking changes:
- IO, IME: renamed platform IME hook and added explicit context for consistency and
future-proofness.
- old: io.SetPlatformImeDataFn(ImGuiViewport* viewport, ImGuiPlatformImeData*
data);
- new: io.PlatformSetImeDataFn(ImGuiContext* ctx, ImGuiViewport* viewport,
ImGuiPlatformImeData* data);
It is expected that for a vast majority of users this is automatically set by
core
library and/or platform backend so it won't have any effect.
- Obsoleted GetContentRegionMax(), GetWindowContentRegionMin() and
GetWindowContentRegionMax(). (#7838)
You should never need those functions! You can do everything in less a confusing
manner by only
using GetCursorScreenPos() and GetContentRegionAvail(). Also always consider that
if you are using
GetWindowPos() and GetCursorPos() you may also be making things unnecessarily
complicated.
I repeat: You can do everything with GetCursorScreenPos() and
GetContentRegionAvail()!
- GetWindowContentRegionMax().x - GetCursorPos().x -->
GetContentRegionAvail().x
- GetWindowContentRegionMax().x + GetWindowPos().x -->
GetCursorScreenPos().x + GetContentRegionAvail().x // when called from
left edge of window
- GetContentRegionMax() -->
GetContentRegionAvail() + GetCursorScreenPos() - GetWindowPos() // right edge in
local coordinates
- GetWindowContentRegionMax().x - GetWindowContentRegionMin().x -->
GetContentRegionAvail() // when called from
left edge of window
- Item flag changes:
- Obsoleted PushButtonRepeat()/PopButtonRepeat() in favor of using new
PushItemFlag()/PopItemFlag()
with ImGuiItemFlags_ButtonRepeat. Kept inline redirecting functions (will
obsolete).
- Obsoleted PushTabStop()/PopTabStop() in favor of using new
PushItemFlag()/PopItemFlag()
with ImGuiItemFlags_NoTabStop. Kept inline redirecting functions (will
obsolete).
- Renamed ImGuiSelectableFlags_DontClosePopups to
ImGuiSelectableFlags_NoAutoClosePopups for
consistency. Kept inline redirecting functions (will obsolete).
+ Internals: changed/inverted ImGuiItemFlags_SelectableDontClosePopup
(default==false) to
ImGuiItemFlags_AutoClosePopups (default==true), same logic, only inverted
behavior.
(#1379, #1468, #2200, #4936, #5216, #7302, #7573)
- Commented out obsolete ImGuiModFlags (renamed to ImGuiKeyChord in 1.89). (#4921,
#456)
- Commented out obsolete ImGuiModFlags_XXX values (renamed to ImGuiMod_XXX in
1.89). (#4921, #456)
- ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl, ImGuiModFlags_Shift -> ImGuiMod_Shift
etc.
- Backends: GLFW+Emscripten: Renamed
ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback() to
ImGui_ImplGlfw_InstallEmscriptenCallbacks(), with an additional GLFWWindow*
parameter. (#7647) [@ypujante]
Other changes:
-----------------------------------------------------------------------
VERSION 1.90.9 (Released 2024-07-01)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.90.8 (Released 2024-06-06)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.90.7 (Released 2024-05-27)
-----------------------------------------------------------------------
Breaking changes:
- Inputs: on macOS X, Cmd and Ctrl keys are now automatically swapped by
io.AddKeyEvent(),
as this naturally align with how macOS X uses those keys. (#2343, #4084, #5923,
#456)
- Effectively it means that e.g. ImGuiMod_Ctrl | ImGuiKey_C is a valid idiomatic
shortcut
for both Windows and Mac style users.
- It shouldn't really affect your code unless you had explicit/custom shortcut
swapping in
place for macOS X apps in your input logic.
- Removed ImGuiMod_Shortcut which was previously dynamically remapping to Ctrl or
Cmd/Super.
It is now unnecessary to specific cross-platform idiomatic shortcuts.
Kept symbols redirecting ImGuiMod_Shortcut to ImGuiMod_Ctrl (will obsolete).
- Commented out obsolete symbols renamed in 1.88 (May 2022):
CaptureKeyboardFromApp() -> SetNextFrameWantCaptureKeyboard()
CaptureMouseFromApp() -> SetNextFrameWantCaptureMouse()
- Backends: SDL_Renderer2/SDL_Renderer3: ImGui_ImplSDLRenderer2_RenderDrawData()
and
ImGui_ImplSDLRenderer3_RenderDrawData() now takes a SDL_Renderer* parameter. This
was previously
overlooked from the API but it will allow eventual support for multi-viewports.
Other changes:
- Windows: BeginChild(): fixed visibility of fully clipped child windows and tables
to Test Engine.
- Windows: BeginChild(): fixed auto-fit calculation when using either (not both)
ResizeX/ResizeY
and double-clicking on a border. Calculation incorrectly didn't always account
for scrollbar as
it assumed the other axis would also be auto-fit. (#1710)
- Inputs: added shortcut and routing system in public API. (#456, #2637) [BETA]
- The general idea is that several callers may register interest in a shortcut,
and only one owner gets it.
- in Parent: call Shortcut(Ctrl+S) // When Parent is focused, Parent gets
the shortcut.
- in Child1: call Shortcut(Ctrl+S) // When Child1 is focused, Child1 gets
the shortcut (Child1 overrides Parent shortcuts)
- in Child2: no call // When Child2 is focused, Parent gets
the shortcut.
The whole system is order independent, so if Child1 makes its calls before
Parent, results will be identical.
This is an important property as it facilitate working with foreign code or
larger codebase.
- Added Shortcut() function:
e.g. Using ImGui::Shortcut(ImGuiMod_Ctrl | ImGuiKey_C); with default policy:
- checks that CTRL+C is pressed,
- and that current window is in focus stack,
- and that no other requests for CTRL+C have been made from higher priority
locations
(e.g. deeper in the window/item stack).
- Added SetNextItemShortcut() to set a shortcut to locally or remotely press or
activate
an item (depending on specified routing policy: using
ImGuiInputFlags_RouteGlobal the item
shortcut may be executed even if its window is not in focus stack).
Items like buttons are not fully activated, in the sense that they get pressed
but another
active item, e.g. InputText() won't be deactivated.
- Added routing policies for Shortcut(), SetNextItemShortcut(): (#456, #2637)
- ImGuiInputFlags_RouteFocused: focus stack route (default)
- ImGuiInputFlags_RouteActive: only route to active item
- ImGuiInputFlags_RouteGlobal: route globally, unless a focus route claim shame
shortcut.
- ImGuiInputFlags_RouteAlways: no routing submission, no routing check.
- Added other shortcut/routing options: (#456, #2637)
- ImGuiInputFlags_Repeat: for use by Shortcut() and by upcoming rework of
various
input functions (which are still internal for now).
- ImGuiInputFlags_Tooltip: for SetNextItemShortcut() to show a tooltip when
hovering item.
- ImGuiInputFlags_RouteOverFocused: global route takes priority over focus
route.
- ImGuiInputFlags_RouteOverActive: global route takes priority over active
item.
- ImGuiInputFlags_RouteUnlessBgFocused: global route disabled if no imgui
window focused.
- ImGuiInputFlags_RouteFromRootWindow: route evaluated from the point of view
of root window rather than current window.
- Inputs: (OSX) Fixes variety of code which inconsistently required using Ctrl
instead of Cmd.
- e.g. Drags/Sliders now use Cmd+Click to input a value. (#4084)
- Some shortcuts still uses Ctrl on Mac: e.g. Ctrl+Tab to switch windows. (#4828)
- Inputs: (OSX) Ctrl+Left Click alias as a Right click. (#2343) [@haldean,
@ocornut]
- Inputs: Fixed ImGui::GetKeyName(ImGuiKey_None) from returning "N/A" or "None"
depending
on value of IMGUI_DISABLE_OBSOLETE_KEYIO. It always returns "None".
- Nav: fixed holding Ctrl or gamepad L1 from not slowing down keyboard/gamepad
tweak speed.
Broken during a refactor refactor for 1.89. Holding Shift/R1 to speed up wasn't
broken.
- Tables: fixed cell background of fully clipped row overlapping with header.
(#7575, #7041) [@prabuinet]
- Demo: Added "Inputs & Focus -> Shortcuts" section. (#456, #2637)
- Demo: Documents: Added shortcuts and renaming tabs/documents. (#7233)
- Examples: Win32+DX9,DX10,DX11,DX12: rework main loop to handle minimization and
screen
locking without burning resources by running unthrottled code. (#2496, #3907,
#6308, #7615)
- Backends: all backends + demo now call IMGUI_CHECKVERSION() to verify ABI
compatibility between caller
code and compiled version of Dear ImGui. If you get an assert it most likely mean
you have a build issue,
read comments near the assert. (#7568)
- Backends: Win32: undo an assert introduced in 1.90.6 which didn't allow WndProc
handler to be called before backend initialization. Because of
how ::CreateWindow()
calls in WndProc this is facilitating. (#6275) [@MennoVink]
- Backends, Examples: SDL3: updates for latest SDL3 API changes. (#7580) [@kuvaus,
@ocornut]
-----------------------------------------------------------------------
VERSION 1.90.6 (Released 2024-05-08)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
- Windows: Changed default ClipRect to extend to windows' left and right borders,
instead of adding arbitrary WindowPadding.x * 0.5f space on left and right.
That ClipRect half-padding was arbitrary/confusing and inconsistent with Y axis.
It also made it harder to draw items covering whole window without pushing an
extended ClipRect. Some items near windows left and right edge that used to be
clipped
may be partly more visible. (#3312, #7540, #3756, #6170, #6365)
- Windows: Fixed subsequent Begin() append calls from setting last item information
for title bar, making it impossible to use IsItemHovered() on a Begin()-to-
append,
and causing issue bypassing hover detection on collapsed windows. (#7506, #823)
- Fonts: Fixed font ascent and descent calculation when a font hits exact integer
values.
It is possible that some prior manual use of ImFontConfig::GlyphOffset may become
duplicate with this fix. (#7399, #7404) [@GamingMinds-DanielC]
- TreeNode: Added ImGuiTreeNodeFlags_SpanTextWidth to make hitbox and highlight
only
cover the label. (#6937) [@dimateos]
- Tables: Angled headers: fixed multi-line label display when angle is flipped.
(#6917)
- Tables: Angled headers: added style.TableAngledHeadersTextAlign and corresponding
ImGuiStyleVar_TableAngledHeadersTextAlign variable. Default to horizontal center.
(#6917)
[@thedmd, @ocornut]
- ProgressBar: Added support for indeterminate progress bar by passing an animated
negative fraction, e.g. ProgressBar(-1.0f * GetTime()). (#5316, #5370, #1901)
[@gan74]
- Text, DrawList: Improved handling of long single-line wrapped text. Faster and
mitigate issues with reading vertex indexing limits with 16-bit indices. (#7496,
#5720)
- Backends: OpenGL3: Detect ES3 contexts on desktop based on version string,
to e.g. avoid calling glPolygonMode() on them. (#7447) [@afraidofdark, @ocornut]
- Backends: OpenGL3: Update loader for Linux to support EGL/GLVND. (#7562)
[@ShadowNinja, @vanfanel]
- Backends: Vulkan: Added convenience support for Volk via
IMGUI_IMPL_VULKAN_USE_VOLK define.
(you could always use IMGUI_IMPL_VULKAN_NO_PROTOTYPES +
ImGui_ImplVulkan_LoadFunctions() as well).
(#6582, #4854) [@adalsteinnh, @kennyalive, @ocornut]
- Backends: SDL3: Fixed text inputs. Re-enable calling
SDL_StartTextInput()/SDL_StopTextInput()
as SDL3 no longer enables it by default. (#7452, #6306, #6071, #1953) [@Green-
Sky]
- Examples: GLFW+Vulkan, SDL+Vulkan: Added optional support for Volk. (#6582,
#4854)
- Examples: GLFW+WebGPU: Added support for WebGPU-native/Dawn (#7435, #7132)
[@eliasdaler, @Zelif]
- Examples: GLFW+WebGPU: Renamed example_emscripten_wgpu/ to example_glfw_wgpu/.
(#7435, #7132)
-----------------------------------------------------------------------
VERSION 1.90.5 (Released 2024-04-11)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
- Windows: Scrollbar visibility decision uses current size when both size and
contents
size are submitted by API. (#7252)
- Windows: Double-click to collapse may be disabled via key-ownership mechanism.
(#7369)
- Windows: BeginChild(): Extend outer resize borders to the edges when there are no
corner
grips. Essentially affects resizable child windows. (#7440, #1710) [@cfillion]
- Windows: BeginChild(): Resizing logic for child windows evaluates whether per-
axis clamping
should be applied based on parent scrollbars, not child scrollbars. (#7440,
#1710) [@cfillion]
Adjust those resizing limits to match window padding rather than inner clipping
rectangle.
- Tables: Fixed auto-width columns when using synced-instances of same table, width
of
one instance would bleed into next one instead of sharing their widths. (#7218)
- Tables: Angled headers: fixed border hit box extending beyond when used within
non-scrollable tables. (#7416) [@cfillion]
- Tables: Angled headers: fixed borders not moving back up after
TableAngleHeadersRow()
stops being called. (#7416) [@cfillion]
- Tables: Angled headers: rounding header size to nearest integers, fixes some
issues
when using clipper.
- Menus, Popups: Fixed an issue where sibling menu popups re-opening in successive
frames would erroneously close the window. While it is technically a popup issue
it would generally manifest when fast moving the mouse bottom to top in a sub-
menu.
(#7325, #7287, #7063)
- ProgressBar: Fixed passing fraction==NaN from leading to a crash. (#7451)
- ListBox: Fixed text-baseline offset when using SameLine()+Text() after a labeled
ListBox().
- Drags, Sliders, Inputs: Fixed io.PlatformLocaleDecimalPoint decimal point
localization
feature not working regression from 1.90.1. (#7389, #6719, #2278) [@GamingMinds-
DanielC]
- Style: Added ImGuiStyleVar_TabBorderSize, ImGuiStyleVar_TableAngledHeadersAngle
for
consistency. (#7411) [@cfillion]
- DrawList: Added AddConcavePolyFilled(), PathFillConcave() concave filling. (#760)
[@thedmd]
Note that only simple polygons (no self-intersections, no holes) are supported.
- DrawList: Allow AddText() to accept null ranges. (#3615, 7391)
- Docs: added more wiki links to headers of imgui.h/imgui.cpp to facilitate
discovery
of interesting resources, because github doesn't allow Wiki to be crawled by
search engines.
- This is the main wiki: https://github.com/ocornut/imgui/wiki
- This is the crawlable version:
https://github-wiki-see.page/m/ocornut/imgui/wiki
Adding a link to the crawlable version, even though it is not intended for
humans,
to increase its search rank.
-----------------------------------------------------------------------
VERSION 1.90.4 (Released 2024-02-22)
-----------------------------------------------------------------------
Other changes:
-----------------------------------------------------------------------
VERSION 1.90.3 (Released 2024-02-14)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
- Menus, Popups: Fixed menus and popups with ChildWindow flag erroneously not
displaying
a scrollbar when contents is over parent viewport size. (#7287, #7063)
[@ZingBallyhoo]
- Backends: SDL2, SDL3: Handle gamepad disconnection + fixed increasing gamepad
reference
counter continuously. Added support for multiple simultaneous gamepads.
Added ImGui_ImplSDL2_SetGamepadMode()) function to select whether to
automatically pick
first available gamepad, all gamepads, or specific gamepads.
(#3884, #6559, #6890, #7180) [@ocornut, @lethal-guitar, @wn2000, @bog-dan-ro]
- Backends: SDL3: Fixed gamepad handling. (#7180) [@bog-dan-ro]
- Backends: SDLRenderer3: query newly added SDL_RenderViewportSet() to not restore
a wrong viewport if none was initially set.
- Backends: DirectX9: Using RGBA format when allowed by the driver to avoid CPU
side
conversion. (#6575) [@Demonese]
- Internals: Fixed ImFileOpen not working before context is created, preventing
creation
of a font atlas before main context creation. (#7314, #7315) [@PathogenDavid,
@ocornut]
-----------------------------------------------------------------------
VERSION 1.90.2 (Released 2024-02-09)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.90.1 (Released 2024-01-10)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
- Windows:
- BeginChild(): Fixed auto-resizing erroneously limiting size to host viewport
minus padding. There are no limit to a child width/height. (#7063) [@Devyre]
- BeginChild(): Resize borders rendered even when ImGuiWindowFlags_NoBackground
is specified. (#1710, #7194)
- Fixed some auto-resizing path using style.WindowMinSize.x (instead of x/y)
for both axises since 1.90. (#7106) [@n0bodysec]
- Scrolling: internal scrolling value is rounded instead of truncated, as a way
to reduce
speed asymmetry when (incorrectly) attempting to scroll by non-integer amount.
(#6677)
- Navigation (Keyboard/gamepad):
- Nav, IO: SetNextFrameWantCaptureKeyboard(false) calls are not overridden back
to true when
navigation is enabled. SetNextFrameWantCaptureKeyboard() is always higher
priority. (#6997)
- Nav: Activation can also be performed with Keypad Enter. (#5606)
- Drag and Drop:
- Fixed drop target highlight on items temporarily pushing a widened clip rect
(namely Selectables and Treenodes using SpanAllColumn flag) so the highlight
properly covers
all columns. (#7049, #4281, #3272)
- InputText:
- InputTextMultiline: Fixed Tab character input not repeating (1.89.4
regression).
- InputTextMultiline: Tabbing through a multi-line text editor which allows Tab
character inputs
(using the ImGuiInputTextFlags_AllowTabInput flag) doesn't automatically
activate it, in order
to allow passing through multiple widgets easily. (#3092, #5759, #787)
- Drags, Sliders, Inputs:
- DragScalarN, SliderScalarN, InputScalarN: Fixed incorrect pushes into ItemWidth
stack when number of components is 1. [#7095] [@Nahor]
- Drags, Sliders, Inputs: removed all attempts to filter non-numerical characters
during text
editing. Invalid inputs not applied to value, visibly reverted after
validation. (#6810, #7096)
- Drags, Sliders, Inputs: removal of filter means that "nan" and "inf" values may
be input. (#7096)
- DragScalarN, SliderScalarN, InputScalarN, PushMultiItemsWidths: improve multi-
components
width computation to better distribute the error. (#7120, #7121) [@Nahor]
- Menus:
- Tweaked hover slack logic, adding an extra timeout to avoid situations where a
slow vertical
movements toward another parent BeginMenu() can keep the wrong child menu open.
(#6671, #6926)
- Color Editors:
- ColorEdit: Layout tweaks for very small sizes. (#7120, #7121)
- ColorPicker: Fixed saturation/value cursor radius not scaling properly.
- Tabs: Added ImGuiTabItemFlags_NoAssumedClosure to enable app to react on closure
attempt,
without having to draw an unsaved document marker
(ImGuiTabItemFlags_UnsavedDocument sets
_NoAssumedClosure automatically). (#7084)
- Debug Tools:
- Added io.ConfigDebugIsDebuggerPresent option. When enabled, this adds buttons
in various
locations of Metrics/Debugger to manually request a debugger break:
- Request a debug break in a Begin() call.
- Request a debug break in a ItemAdd() call via debug log and hovering 0xXXXXXX
identifiers.
- Request a debug break in a BeginTable() call.
- Request a debug break in a SetShortcutRouting()/Shortcut() call. [Internal]
- Metrics: Reorganize Tools menu.
- Added DebugFlashStyleColor() to identify a style color. Added to Style Editor.
- Debug Log: Hide its own clipper log to reduce noise in the output. (#5855)
- Debug Log: Clicking any filter with SHIFT held enables it for 2 frames only,
making it easier when dealing with spammy logs. (#5855)
- Settings: Fixed an issue marking settings as dirty when merely clicking on a
border or resize
grip without moving it.
- Misc: Added IMGUI_USER_H_FILENAME to change the path included when using
IMGUI_INCLUDE_IMGUI_USER_H. (#7039) [@bryceberger]
- Misc: Rework debug display of texture id in Metrics window to avoid compile-error
when
ImTextureID is defined to be larger than 64-bits. (#7090)
- Misc: Added extra courtesy ==/!= operators when IMGUI_DEFINE_MATH_OPERATORS is
defined.
- Misc: Fixed text functions fast-path for handling "%s" and "%.*s" to handle null
pointers gracefully,
like most printf implementations. (#7016, #3466, #6846) [@codefrog2002]
- Misc: Renamed some defines in imstb_textedit.h to avoid conflicts when using
unity/jumbo builds
on a codebase where another copy of the library is used.
- Misc: During shutdown, check that io.BackendPlatformUserData and
io.BackendRendererUserData are NULL
in order to catch cases where backend was not shut down. (#7175)
- Misc: Reworked Issue Template to a shinier and better form. (#5927)
[@Panquesito7, @PathogenDavid, @ocornut]
- Backends:
- GLFW, Emscripten: Added ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback()
to
register canvas selector and auto-resize GLFW window. (#6751) [@Traveller23,
@ypujante]
- GLFW: Fixed Windows specific hooks to use Unicode version of WndProc even when
compiling in MBCS mode. (#7174) [@kimidaisuki22]
- OpenGL3: Update GL3W based imgui_impl_opengl3_loader.h to load libGL.so
variants in
case of missing symlink. Fix 1.90 regression for some distros. (#6983)
- Vulkan: Fixed mismatching allocator passed to vkCreateCommandPool() vs
vkDestroyCommandPool(). (#7075) [@FoonTheRaccoon]
- Vulkan: Added MinAllocationSize field in ImGui_ImplVulkan_InitInfo to
workaround zealous
"best practice" validation layer. (#7189, #4238) [@philae-ael]
- Vulkan: Stopped creating command pools with
VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT
as we don't reset them.
- WebGPU: Fixed wgpuRenderPassEncoderSetScissorRect() crash when rendering modal
window's
dimming layer, which has an unclipped value in ImDrawCmd::ClipRect. (#7191)
[@aparis69]
- Examples:
- Examples: GLFW+Emscripten: Fixed examples not consistently resizing according
to host canvas.
(#6751) [@Traveller23, @ypujante]
- Examples: SDL3: Minor fixes following recent SDL3 in-progress development.
-----------------------------------------------------------------------
VERSION 1.90.0 (Released 2023-11-15)
-----------------------------------------------------------------------
Decorated log and release notes:
https://github.com/ocornut/imgui/releases/tag/v1.90
Breaking changes:
Other changes:
- Windows:
- BeginChild(): Added ImGuiChildFlags_ResizeX and ImGuiChildFlags_ResizeY to
allow resizing
child windows from the bottom/right border (toward layout direction). Resized
child windows
settings are saved and persistent in .ini file. (#1710)
- BeginChild(): Added ImGuiChildFlags_Border as a replacement for 'bool border =
true' parameter.
**AMEND FROM THE FUTURE: from 1.91.1, 'ImGuiChildFlags_Border' is called
'ImGuiChildFlags_Borders'**
- BeginChild(): Added ImGuiChildFlags_AutoResizeX and ImGuiChildFlags_AutoResizeY
to auto-resize
on one axis, while generally providing a size on the other axis. (#1666, #1395,
#1496, #1710)
e.g. BeginChild("name", {-FLT_MIN, 0.0f}, ImGuiChildFlags_AutoResizeY);
- Size is only reevaluated if the child window is within visible boundaries or
just appearing.
This allows coarse clipping to be performed and auto-resizing childs to
return false when
hidden because of being scrolled out.
- Combining this with also specifying ImGuiChildFlags_AlwaysAutoResize disables
this optimization, meaning child contents will never be clipped (not
recommended).
- Please be considerate that child are full windows and carry significant
overhead:
combining auto-resizing for both axises to create a non-scrolling child to
merely draw
a border would be better more optimally using BeginGroup(). (see #1496)
(until we come up with new helpers for framed groups and work-rect
adjustments).
- BeginChild(): made it possible to use SetNextWindowSizeConstraints() rectangle,
often
useful when ImGuiChildFlags_AutoResizeX or ImGuiChildFlags_AutoResizeY. (#1666,
#1395, #1496)
Custom constraint callback are not supported with child window.
- BeginChild(): Added ImGuiChildFlags_FrameStyle as a replacement for
BeginChildFrame(),
use it to make child window use FrameBg, FrameRounding, FrameBorderSize,
FramePadding
instead of ChildBg, ChildRounding, ChildBorderSize, WindowPadding.
- Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back
user value
to false when popup is closed in ways other than clicking the close button.
(#6900)
- Double-clicking lower-left resize grip auto-resize (like lower-right one).
- Double-clicking bottom or right window border auto-resize on a singles axis.
- Use relative mouse movement for border resize when the border geometry has
moved
(e.g. resizing a child window triggering parent scroll) in order to avoid
resizing
feedback loops. Unless manually mouse-wheeling while border resizing. (#1710)
- Separators:
- Altered end-points to use more standard boundaries. (#205, #4787, #1643)
Left position is always current cursor X position, right position is always
work-rect
rightmost edge. It effectively means that:
- A separator in the root of a window will end up a little more distant from
edges
than previously (essentially following WindowPadding instead of clipping
edges).
- A separator inside a table cell end up a little distance from edges instead
of
touching them (essentially following CellPadding instead of clipping edges).
- Matches tree indentation (was not the case before).
- Matches SeparatorText(). (#1643)
- Makes things correct inside groups without specific/hard-coded handling.
(#205)
- Support legacy behavior when used inside old Columns(), as we favored that
idiom back then,
only different is left position follows indentation level, to match calling a
Separator()
inside or outside Columns().
- Tooltips:
- Made using SetItemTooltip()/IsItemHovered(ImGuiHoveredFlags_ForTooltip)
defaults to
activate tooltips on disabled items. This is done by adding
ImGuiHoveredFlags_AllowWhenDisabled
to the default value of
style.HoverFlagsForTooltipMouse/HoverFlagsForTooltipNav. (#1485)
- Made is possible to combine ImGuiHoveredFlags_ForTooltip with a
ImGuiHoveredFlags_DelayXXX
override. (#1485)
- Drag and Drop:
- Reworked drop target highlight: reduce rectangle to its visible portion, and
then expand
slightly. A full rectangle is always visible and it may protrude slightly.
(#4281, #3272)
- Fixed submitting a tooltip from drop target location when using
AcceptDragDropPayload()
with ImGuiDragDropFlags_AcceptNoPreviewTooltip and submitting a tooltip
manually.
- Tables:
- Added angled headers support. You need to set
ImGuiTableColumnFlags_AngledHeader on selected
columns and call TableAngledHeadersRow(). Added style.TableAngledHeadersAngle
style option. (#6917)
- Added ImGuiTableFlags_HighlightHoveredColumn flag, currently highlighting
column header.
- Fixed an edge-case when no columns are visible + table scrollbar is visible +
user
code is always testing return value of TableSetColumnIndex() to coarse clip.
With an active
clipper it would have asserted. Without a clipper, the scrollbar range would be
wrong.
- Request user to submit contents when outer host-window is requesting auto-
resize,
so a scrolling table can contribute to initial window size. (#6510)
- Fixed subtle drawing overlap between borders in some situations.
- Fixed bottom-most and right-most outer border offset by one. (#6765, #3752)
[@v-ein]
- Fixed top-most and left-most outer border overlapping inner clip-rect when
scrolling. (#6765)
- Fixed top-most outer border being drawn with both TableBorderLight and
TableBorderStrong
in some situations, causing the earlier to be visible underneath when alpha is
not 1.0f.
- Fixed right-clicking right-most section (past right-most column) from
highlighting a column.
- Fixed an issue with ScrollX enabled where an extraneous draw command would be
created.
- Menus:
- Menus: Fixed a bug where activating an item in a child-menu and dragging mouse
over the
parent-menu would erroneously close the child-menu. (Regression from 1.88).
(#6869)
- MenuBar: Fixed an issue where layouting an item in the menu-bar would
erroneously
register contents size in a way that would affect the scrolling layer.
Was most often noticeable when using an horizontal scrollbar. (#6789)
- InputText:
- InputTextMultiline: Fixed a crash pressing Down on last empty line of a multi-
line buffer.
(regression from 1.89.2, only happened in some states). (#6783, #6000)
- InputTextMultiline: Fixed Tabbing cycle leading to a situation where Enter key
wouldn't
be accepted by the widget when navigation highlight is visible. (#6802, #3092,
#5759, #787)
- Nav: Tabbing always enable nav highlight when ImGuiConfigFlags_NavEnableKeyboard
is set.
Previously was inconsistent and only enabled when stepping through a non-input
item.
(#6802, #3092, #5759, #787)
- TreeNode: Added ImGuiTreeNodeFlags_SpanAllColumns for use in tables. (#3151,
#3565, #2451, #2438)
- TabBar: Fixed position of unsaved document marker
(ImGuiTabItemFlags_UnsavedDocument) which was
accidentally offset in 1.89.9. (#6862) [@alektron]
- ColorPicker4(): Fixed ImGuiColorEditFlags_NoTooltip not being forwarded to
individual DragFloat3
sub-widgets which have a visible color preview when
ImGuiColorEditFlags_NoSidePreview is also set. (#6957)
- BeginGroup(): Fixed a bug pushing line lower extent too far down when called
after a call
to SameLine() followed by manual cursor manipulation.
- BeginCombo(): Added ImGuiComboFlags_WidthFitPreview flag. (#6881) [@mpv-enjoyer]
- BeginListBox(): Fixed not consuming SetNextWindowXXX() data when returning false.
- Fonts:
- Argument 'float size_pixels' passed to AddFontXXX() functions is now rounded to
lowest integer.
This is because our layout/font system currently doesn't fully support non-
integer sizes. Until
it does, this has been a common pitfall leading to more or less subtle issues.
(#3164, #3309, #6800)
- Better assert during load when passing truncated font data or wrong data size.
(#6822)
- Ensure calling AddFontXXX function doesn't invalidates ImFont's ConfigData
pointers
prior to building again. (#6825)
- Added ImFontConfig::RasterizerDensity field to increase texture size of
rendered glyphs
without altering other metrics. Among other things, this makes it easier to
have zooming code
swapping between 2 fonts (e.g. a 100% and a 400% fonts) depending on current
scale. (#6925) [@thedmd]
Important: if you increase this it is expected that you would render the font
with a scale of
similar value or magnitude. Merely increasing this without increasing scale may
lower quality.
- imgui_freetype: Added support for RasterizerDensity. (#6925) [@thedmd]
- imgui_freetype: Fixed a warning and leak in IMGUI_ENABLE_FREETYPE_LUNASVG
support. (#6842, #6591)
- Inputs: Added IsKeyChordPressed() helper function e.g.
IsKeyChordPressed(ImGuiMod_Ctrl | ImGuiKey_S).
(note that ImGuiMod_Shortcut may be used as an alias for Cmd on OSX and Ctrl on
other systems).
- Misc: Most text functions also treat "%.*s" (along with "%s") specially to bypass
formatting. (#3466, #6846)
- IO: Add extra keys to ImGuiKey enum: ImGuiKey_F13 to ImGuiKey_F24. (#6891, #4921)
- IO: Add extra keys to ImGuiKey enum: ImGuiKey_AppBack, ImGuiKey_AppForward.
(#4921)
- IO: Setting io.WantSetMousePos ignores incoming MousePos events. (#6837, #228)
[@bertaye]
- Debug Tools: Metrics: Added log of recent alloc/free calls.
- Debug Tools: Metrics: Added "Show groups rectangles" in tools.
- ImDrawList: Added AddEllipse(), AddEllipseFilled(), PathEllipticalArcTo().
(#2743) [@Doohl]
- ImVector: Added find_index() helper.
- Demo: Added "Drag and Drop -> Tooltip at target location" demo.
- Demo: Added "Layout -> Child Windows -> Manual-resize" demo. (#1710)
- Demo: Added "Layout -> Child Windows -> Auto-resize with constraints" demo.
(#1666, #1395, #1496, #1710)
- Demo: Partly fixed "Examples -> Constrained-resizing window" custom constrains
demo. (#6210) [@cfillion]
- Backends: Vulkan: Removed parameter from ImGui_ImplVulkan_CreateFontsTexture():
backend now creates its own
command-buffer to upload fonts. Removed
ImGui_ImplVulkan_DestroyFontUploadObjects() which is now unnecessary.
No need to call ImGui_ImplVulkan_CreateFontsTexture() as it is done automatically
in ImGui_ImplVulkan_NewFrame().
You can call ImGui_ImplVulkan_CreateFontsTexture() manually if you need to reload
font atlas texture.
Fixed leaks, and added ImGui_ImplVulkan_DestroyFontsTexture() (probably no need
to call this directly).
(#6943, #6715, #6327, #3743, #4618)
[@helynranta, @thomasherzog, @guybrush77, @albin-johansson, @MiroKaku, @benbatya-
fb, @ocornut]
- Backends: GLFW: Clear emscripten's MouseWheel callback before shutdown. (#6790,
#6096, #4019) [@halx99]
- Backends: GLFW: Added support for F13 to F24 function keys. (#6891)
- Backends: SDL2, SDL3: Added support for F13 to F24 function keys, AppBack,
AppForward. (#6891)
- Backends: SDL3: Updates for recent API changes. (#7000, #6974)
- Backends: Win32: Added support for F13 to F24 function keys, AppBack, AppForward.
(#6891)
- Backends: Win32: Added support for keyboard codepage conversion for when
application
is compiled in MBCS mode and using a non-Unicode window. (#6785, #6782, #5725,
#5961) [@sneakyevil]
- Backends: Win32: Synthesize key-down event on key-up for VK_SNAPSHOT /
ImGuiKey_PrintScreen as Windows
doesn't emit it (same behavior as GLFW/SDL). (#6859) [@thedmd, @SuperWangKai]
- Backends: OpenGL3: rename symbols in our internal loader so that LTO compilation
with another
copy of gl3w becomes possible. (#6875, #6668, #4445) [@nicolasnoble]
- Backends: OpenGL3: Update GL3W based imgui_impl_opengl3_loader.h to load
"libGL.so" instead
of "libGL.so.1", accommodating for NetBSD systems having only "libGL.so.3"
available. (#6983)
- Backends: OSX: Added support for F13 to F20 function keys. Support mapping F13 to
PrintScreen. (#6891)
- Examples: GLFW+Vulkan, SDL+Vulkan: Simplified and removed code due to backend
improvements.
- Internals: Renamed ImFloor() to ImTrunc(). Renamed ImFloorSigned() to ImFloor().
(#6861)
-----------------------------------------------------------------------
VERSION 1.89.9 (Released 2023-09-04)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.89.8 (Released 2023-08-01)
-----------------------------------------------------------------------
Breaking changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.89.7 (Released 2023-07-04)
-----------------------------------------------------------------------
Breaking changes:
- Moved io.HoverDelayShort/io.HoverDelayNormal to
style.HoverDelayShort/style.HoverDelayNormal.
As the fields were added in 1.89 and expected to be left unchanged by most users,
or only
tweaked once during app initialisation, we are exceptionally accepting the
breakage.
Majority of users should not even notice.
- Overlapping items: (#6512, #3909, #517)
- Added 'SetNextItemAllowOverlap()' (called before an item) as a replacement for
using
'SetItemAllowOverlap()' (called after an item). This is roughly equivalent to
using the
legacy 'SetItemAllowOverlap()' call (public API) +
ImGuiButtonFlags_AllowOverlap (internal).
- Obsoleted 'SetItemAllowOverlap()': it didn't and couldn't work reliably since
1.89 (2022-11-15),
and relied on ambiguously defined design. Use 'SetNextItemAllowOverlap()'
before item instead.
- Selectable, TreeNode: When using
ImGuiSelectableFlags_AllowOverlap/ImGuiTreeNodeFlags_AllowOverlap
and holding item held, overlapping widgets won't appear as hovered. (#6512,
#3909)
While this fixes a common small visual issue, it also means that calling
IsItemHovered()
after a non-reactive elements - e.g. Text() - overlapping an active one may
fail if you don't
use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem). (#6610)
- Renamed 'ImGuiTreeNodeFlags_AllowItemOverlap' to
'ImGuiTreeNodeFlags_AllowOverlap'.
- Renamed 'ImGuiSelectableFlags_AllowItemOverlap' to
'ImGuiSelectableFlags_AllowOverlap'
- Kept redirecting enums (will obsolete).
Other changes:
-----------------------------------------------------------------------
VERSION 1.89.6 (Released 2023-05-31)
-----------------------------------------------------------------------
Breaking changes:
- Clipper: Commented out obsolete redirection constructor which was marked obsolete
in 1.79:
'ImGuiListClipper(int items_count, float items_height)' --> Use
'ImGuiListClipper() + clipper.Begin()'.
- Clipper: Renamed ForceDisplayRangeByIndices() to IncludeRangeByIndices(), kept
inline redirection function (introduced in 1.86 and rarely used). (#6424, #3841)
- Commented out obsolete/redirecting functions that were marked obsolete more than
two years ago:
- ListBoxHeader() -> use BeginListBox()
- ListBoxFooter() -> use EndListBox()
- Note how two variants of ListBoxHeader() existed. Check commented versions in
imgui.h for refeence.
- Backends: SDL_Renderer: Renamed 'imgui_impl_sdlrenderer.h/cpp' to
'imgui_impl_sdlrenderer2.h/cpp',
in order to accommodate for upcoming SDL3 and change in its SDL_Renderer API.
(#6286)
- Backends: GLUT: Removed call to ImGui::NewFrame() from ImGui_ImplGLUT_NewFrame().
It needs to be called from the main app loop, like with every other backends.
(#6337) [@GereonV]
Other changes:
-----------------------------------------------------------------------
VERSION 1.89.5 (Released 2023-04-13)
-----------------------------------------------------------------------
Other changes:
-----------------------------------------------------------------------
VERSION 1.89.4 (Released 2023-03-14)
-----------------------------------------------------------------------
Breaking Changes:
- Renamed PushAllowKeyboardFocus()/PopAllowKeyboardFocus() to
PushTabStop()/PopTabStop().
Kept inline redirection functions (will obsolete).
- Moved the optional "courtesy maths operators" implementation from
imgui_internal.h in imgui.h.
Even though we encourage using your own maths types and operators by setting up
IM_VEC2_CLASS_EXTRA,
it has been frequently requested by people to use our own. We had an opt-in
define which was
previously fulfilled by imgui_internal.h. It is now fulfilled by imgui.h. (#6164,
#6137, #5966, #2832)
OK: #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui.h" / #include
"imgui_internal.h"
Error: #include "imgui.h" / #define IMGUI_DEFINE_MATH_OPERATORS / #include
"imgui_internal.h"
Added a dedicated compile-time check message to help diagnose this.
- Tooltips: Added 'bool' return value to BeginTooltip() for API consistency.
Please only submit contents and call EndTooltip() if BeginTooltip() returns true.
In reality the function will _currently_ always return true, but further changes
down the
line may change this, best to clarify API sooner. Updated demo code accordingly.
- Commented out redirecting enums/functions names that were marked obsolete two
years ago:
- ImGuiSliderFlags_ClampOnInput -> use ImGuiSliderFlags_AlwaysClamp
- ImGuiInputTextFlags_AlwaysInsertMode -> use ImGuiInputTextFlags_AlwaysOverwrite
- ImDrawList::AddBezierCurve() -> use ImDrawList::AddBezierCubic()
- ImDrawList::PathBezierCurveTo() -> use
ImDrawList::PathBezierCubicCurveTo()
Other changes:
-----------------------------------------------------------------------
VERSION 1.89.3 (Released 2023-02-14)
-----------------------------------------------------------------------
Breaking Changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.89.2 (Released 2023-01-05)
-----------------------------------------------------------------------
All changes:
- Tables, Nav, Scrolling: fixed scrolling functions and focus tracking with frozen
rows and
frozen columns. Windows now have a better understanding of outer/inner decoration
sizes,
which should later lead us toward more flexible uses of menu/status bars. (#5143,
#3692)
- Tables, Nav: frozen columns are not part of menu layer and can be crossed over.
(#5143, #3692)
- Tables, Columns: fixed cases where empty columns may lead to empty ImDrawCmd.
(#4857, #5937)
- Tables: fixed matching width of synchronized tables (multiple tables with same
id) when only
some instances have a vertical scrollbar and not all. (#5920)
- Fixed cases where CTRL+Tab or Modal can occasionally lead to the creation of
ImDrawCmd with
zero triangles, which would makes the render loop of some backends assert (e.g.
Metal with
debugging, Allegro). (#4857, #5937)
- Inputs, IO: reworked ImGuiMod_Shortcut to redirect to Ctrl/Super at runtime
instead of
compile-time, being consistent with our support for io.ConfigMacOSXBehaviors and
making it
easier for bindings generators to process that value. (#5923, #456)
- Inputs, Scrolling: better selection of scrolling window when hovering nested
windows
and when backend/OS is emitting dual-axis wheeling inputs (typically touch pads
on macOS).
We now select a primary axis based on recent events, and select a target window
based on it.
We expect this behavior to be further improved/tweaked. (#3795, #4559) [@ocornut,
@folays]
- InputText: fixed cursor navigation when pressing Up Arrow on the last character
of a
multiline buffer which doesn't end with a carriage return. (#6000)
- Text: fixed layouting of wrapped-text block when the last source line is above
the
clipping region. Regression added in 1.89. (#5720, #5919)
- Misc: added GetItemID() in public API. It is not often expected that you would
use this,
but it is useful for Shortcut() and upcoming owner-aware input functions which
wants to
be implemented with public API.
- Fonts: imgui_freetype: fixed a packing issue which in some occurrences would
prevent large
amount of glyphs from being packed correctly. (#5788, #5829)
- Fonts: added a 'void* UserData' field in ImFontAtlas, as a convenience for use by
applications using multiple font atlases.
- Demo: simplified "Inputs" section, moved contents to Metrics->Inputs.
- Debug Tools: Metrics: added "Inputs" section, moved from Demo for consistency.
- Misc: fixed parameters to IMGUI_DEBUG_LOG() not being dead-stripped when building
with IMGUI_DISABLE_DEBUG_TOOLS is used. (#5901) [@Teselka]
- Misc: fixed compile-time detection of SSE features on MSVC 32-bits builds.
(#5943) [@TheMostDiligent]
- Examples: DirectX10, DirectX11: try WARP software driver if hardware driver is
not available. (#5924, #5562)
- Backends: GLFW: Fixed mods state on Linux when using Alt-GR text input (e.g.
German keyboard layout), which
could lead to broken text input. Revert a 2022/01/17 change were we resumed using
mods provided by GLFW,
turns out they are faulty in this specific situation. (#6034)
- Backends: Allegro5: restoring using al_draw_indexed_prim() when Allegro version
is >= 5.2.5. (#5937) [@Espyo]
- Backends: Vulkan: Fixed sampler passed to ImGui_ImplVulkan_AddTexture() not being
honored as we were using
an immutable sampler. (#5502, #6001, #914) [@martin-ejdestig, @rytisss]
-----------------------------------------------------------------------
VERSION 1.89.1 (Released 2022-11-24)
-----------------------------------------------------------------------
Other changes:
-----------------------------------------------------------------------
VERSION 1.89 (Released 2022-11-15)
-----------------------------------------------------------------------
Breaking changes:
Other Changes:
- Popups & Modals: fixed nested Begin() inside a popup being erroneously input-
inhibited.
While it is unusual, you can nest a Begin() inside a popup or modal, it is
occasionally
useful to achieve certain things (e.g. to implement suggestion popups #718,
#4461).
- Inputs: Standard widgets now claim for key/button ownership and test for them.
- Fixes scenario where e.g. a Popup with a Selectable() reacting on mouse down
(e.g. double click) closes, and behind it is another window with an item
reacting
on mouse up. Previously this would lead to both items reacting, now the item in
the
window behind won't react on the mouse up since the mouse button ownership has
already
been claimed earlier.
- Internals: There are MANY more aspects to this changes. Added
experimental/internal APIs
to allow handling input/shorting routing and key ownership. Things will be
moved into
public APIs over time. For now this release is a way to test the solidity of
underlying
systems while letting early adopters adopters toy with internals.
(#456, #2637, #2620, #2891, #3370, #3724, #4828, #5108, #5242, #5641)
- Scrolling: Tweak mouse-wheel locked window timer so it is shorter but also gets
reset
whenever scrolling again. Modulate for small (sub-pixel) amounts. (#2604)
- Scrolling: Mitigated issue where multi-axis mouse-wheel inputs (usually from
touch pad
events) are incorrectly locking scrolling in a parent window. (#4559, #3795,
#2604)
- Scrolling: Exposed SetNextWindowScroll() in public API. Useful to remove a
scrolling
delay in some situations where e.g. windows need to be synched. (#1526)
- InputText: added experimental io.ConfigInputTextEnterKeepActive feature to make
pressing
Enter keep the input active and select all text.
- InputText: numerical fields automatically accept full-width characters
(U+FF01..U+FF5E)
by converting them to half-width (U+0021..U+007E).
- InputText: added ImGuiInputTextFlags_EscapeClearsAll flag: first press on Escape
clears
text if any, second press deactivate the InputText(). (#5688, #2620)
- InputText: added support for shift+click style selection. (#5619) [@procedural]
- InputText: clarified that callbacks cannot modify buffer when using the ReadOnly
flag.
- InputText: fixed minor one-frame selection glitch when reverting with Escape.
- ColorEdit3: fixed id collision leading to an assertion. (#5707)
- IsItemHovered: Added ImGuiHoveredFlags_DelayNormal and
ImGuiHoveredFlags_DelayShort flags,
allowing to introduce a shared delay for tooltip idioms. The delays are
respectively
io.HoverDelayNormal (default to 0.30f) and io.HoverDelayShort (default to 0.10f).
(#1485)
- IsItemHovered: Added ImGuiHoveredFlags_NoSharedDelay to disable sharing delays
between items,
so moving from one item to a nearby one will requires delay to elapse again.
(#1485)
- Tables: activating an ID (e.g. clicking button inside) column doesn't prevent
columns
output flags from having ImGuiTableColumnFlags_IsHovered set. (#2957)
- Tables,Columns: fixed a layout issue where SameLine() prior to a row change would
set the
next row in such state where subsequent SameLine() would move back to previous
row.
- Tabs: Fixed a crash when closing multiple windows (possible with docking only)
with an
appended TabItemButton(). (#5515, #3291) [@rokups]
- Tabs: Fixed shrinking policy leading to infinite loops when fed unrounded tab
widths. (#5652)
- Tabs: Fixed shrinking policy sometimes erroneously making right-most tabs stray a
little out
bar boundaries (bug in 1.88). (#5652).
- Tabs: Enforcing minimum size of 1.0f, fixed asserting on zero-tab widths. (#5572)
- Window: Fixed a potential crash when appending to a child window. (#5515, #3496,
#4797) [@rokups]
- Window: Fixed an issue where uncollapsed a window would show a scrollbar for a
frame.
- Window: Auto-fit size takes account of work rectangle (menu bars eating from
viewport). (#5843)
- Window: Fixed position not being clamped while auto-resizing (fixes appearing
windows without
.ini data from moving for a frame when using
io.ConfigWindowsMoveFromTitleBarOnly). (#5843)
- IO: Added ImGuiMod_Shortcut which is ImGuiMod_Super on Mac and ImGuiMod_Ctrl
otherwise. (#456)
- IO: Added ImGuiKey_MouseXXX aliases for mouse buttons/wheel so all operations
done on ImGuiKey
can apply to mouse data as well. (#4921)
- IO: Filter duplicate input events during the AddXXX() calls. (#5599, #4921)
- IO: Fixed AddFocusEvent(false) to also clear MouseDown[] state. (#4921)
- Menus: Fixed incorrect sub-menu parent association when opening a menu by closing
another.
Among other things, it would accidentally break part of the closing heuristic
logic when moving
towards a sub-menu. (#2517, #5614). [@rokups]
- Menus: Fixed gaps in closing logic which would make child-menu erroneously close
when crossing
the gap between a menu item inside a window and a child-menu in a secondary
viewport. (#5614)
- Menus: Fixed using IsItemHovered()/IsItemClicked() on BeginMenu(). (#5775)
- Menus, Popups: Experimental fix for issue where clicking on an open BeginMenu()
item called from
a window which is neither a popup neither a menu used to incorrectly close and
reopen the menu
(the fix may have side-effect and is labelld as experimental as we may need to
revert). (#5775)
- Menus, Nav: Fixed keyboard/gamepad navigation occasionally erroneously landing on
menu-item
in parent window when the parent is not a popup. (#5730)
- Menus, Nav: Fixed not being able to close a menu with Left arrow when parent is
not a popup. (#5730)
- Menus, Nav: Fixed using left/right navigation when appending to an existing menu
(multiple
BeginMenu() call with same names). (#1207)
- Menus: Fixed a one-frame issue where SetNextWindowXXX data are not consumed by a
BeginMenu()
returning false.
- Nav: Fixed moving/resizing window with gamepad or keyboard when running at very
high framerate.
- Nav: Pressing Space/GamepadFaceDown on a repeating button uses the same repeating
rate as a mouse hold.
- Nav: Fixed an issue opening a menu with Right key from a non-menu window.
- Text: Fixed wrapped-text not doing a fast-forward on lines above the clipping
region,
which would result in an abnormal number of vertices created (was slower and more
likely to
asserts with 16-bits ImDrawVtx). (#5720)
- Fonts: Added GetGlyphRangesGreek() helper for Greek & Coptic glyph range. (#5676,
#5727) [@azonenberg]
- ImDrawList: Not using alloca() anymore, lift single polygon size limits. (#5704,
#1811)
- Note: now using a temporary buffer stored in ImDrawListSharedData.
This change made it more visible than you cannot append to multiple ImDrawList
from multiple
threads if they share the same ImDrawListSharedData. Previously it was a little
more likely
for this to "accidentally" work, but was already incorrect. (#6167)
- Platform IME: [Windows] Removed call to ImmAssociateContextEx() leading to freeze
on some setups.
(#2589, #5535, #5264, #4972)
- Misc: better error reporting for PopStyleColor()/PopStyleVar() + easier to
recover. (#1651)
- Misc: io.Framerate moving average now converge in 60 frames instead of 120.
(#5236, #4138)
- Debug Tools: Debug Log: Visually locate items when hovering a 0xXXXXXXXX value.
(#5855)
- Debug Tools: Debug Log: Added 'IO' and 'Clipper' events logging. (#5855)
- Debug Tools: Metrics: Visually locate items when hovering a 0xXXXXXXXX value (in
most places).
- Debug Tools: Item Picker: Mouse button can be changed by holding Ctrl+Shift,
making it easier
to use the Item Picker in e.g. menus. (#2673)
- Docs: Fixed various typos in comments and documentations. (#5649, #5675, #5679)
[@tocic, @lessigsx]
- Demo: Improved "Constrained-resizing window" example, more clearly showcase
aspect-ratio. (#5627)
- Demo: Added more explicit "Center window" mode to "Overlay example". (#5618)
- Demo: Fixed Log & Console from losing scrolling position with Auto-Scroll when
child is clipped. (#5721)
- Examples: Added all SDL examples to default VS solution.
- Examples: Win32: Always use RegisterClassW() to ensure windows are Unicode.
(#5725)
- Examples: Android: Enable .ini file loading/saving into application internal data
folder. (#5836) [@rewtio]
- Backends: GLFW: Honor GLFW_CURSOR_DISABLED by not setting mouse position. (#5625)
[@scorpion-26]
- Backends: GLFW: Add glfwGetError() call on GLFW 3.3 to inhibit missing mouse
cursor errors. (#5785) [@mitchellh]
- Backends: SDL: Disable SDL 2.0.22 new "auto capture" which prevents drag and drop
across windows
(e.g. for multi-viewport support) and don't capture mouse when drag and dropping.
(#5710)
- Backends: Win32: Convert WM_CHAR values with MultiByteToWideChar() when window
class was
registered as MBCS (not Unicode). (#5725, #1807, #471, #2815, #1060) [@or75,
@ocornut]
- Backends: OSX: Fixed mouse inputs on flipped views. (#5756) [@Nemirtingas]
- Backends: OSX: Fixed mouse coordinate before clicking on the host window. (#5842)
[@maezawa-akira]
- Backends: OSX: Fixes to support full app creation in C++. (#5403) [@stack]
- Backends: OpenGL3: Reverted use of glBufferSubData(), too many corruptions issues
were reported,
and old leaks issues seemingly can't be reproed with Intel drivers nowadays
(revert earlier changes).
(#4468, #4504, #3381, #2981, #4825, #4832, #5127).
- Backends: Metal: Use __bridge for ARC based systems. (#5403) [@stack]
- Backends: Metal: Add dispatch synchronization. (#5447) [@luigifcruz]
- Backends: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount'.
(#5603) [@dcvz]
- Backends: Vulkan: Added experimental ImGui_ImplVulkan_RemoveTexture() for api
symmetry. (#914, #5738).
- Backends: WebGPU: fixed rendering when a depth buffer is enabled. (#5869)
[@brainlag]
-----------------------------------------------------------------------
VERSION 1.88 (Released 2022-06-21)
-----------------------------------------------------------------------
Breaking changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.87 (Released 2022-02-07)
-----------------------------------------------------------------------
- Removed support for pre-C++11 compilers. We'll stop supporting VS2010. (#4537)
- Reworked IO mouse input API: (#4921, #4858) [@thedmd, @ocornut]
- Added io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent()
functions,
obsoleting writing directly to io.MousePos, io.MouseDown[], io.MouseWheel, etc.
- This enable input queue trickling to support low framerates. (#2787, #1992,
#3383, #2525, #1320)
- For all calls to IO new functions, the Dear ImGui context should be
bound/current.
- Reworked IO keyboard input API: (#4921, #2625, #3724) [@thedmd, @ocornut]
- Added io.AddKeyEvent() function, obsoleting writing directly to io.KeyMap[],
io.KeysDown[] arrays.
- You can use IsKeyDown() instead of reading from io.KeysDown[].
- For keyboard modifiers, you can call io.AddKeyEvent() with ImGuiKey_ModXXX
values,
obsoleting writing directly to io.KeyCtrl, io.KeyShift etc.
- Added io.SetKeyEventNativeData() function (optional) to pass native and old
legacy indices.
- Added full range of key enums in ImGuiKey (e.g. ImGuiKey_F1).
- Added GetKeyName() helper function.
- Obsoleted GetKeyIndex(): it is now unnecessary and will now return the same
value.
- All keyboard related functions taking 'int user_key_index' now take 'ImGuiKey
key':
- IsKeyDown(), IsKeyPressed(), IsKeyReleased(), GetKeyPressedAmount().
- Added io.ConfigInputTrickleEventQueue (defaulting to true) to disable input
queue trickling.
- Backward compatibility:
- All backends updated to use new functions.
- Old backends populating those arrays should still work!
- Calling e.g. IsKeyPressed(MY_NATIVE_KEY_XXX) will still work! (for a while)
- Those legacy arrays will only be disabled if '#define
IMGUI_DISABLE_OBSOLETE_KEYIO' is set in your imconfig.
In a few versions, IMGUI_DISABLE_OBSOLETE_FUNCTIONS will automatically enable
IMGUI_DISABLE_OBSOLETE_KEYIO,
so this will be moved into the regular obsolescence path.
- BREAKING: If your custom backend used ImGuiKey as mock native indices (e.g.
"io.KeyMap[ImGuiKey_A] = ImGuiKey_A")
this is a use case that will now assert and be breaking for your old backend.
- Transition guide:
- IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX)
- IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX)
- Backend writing to io.KeyMap[],KeysDown[] -> backend should call
io.AddKeyEvent(), if legacy indexing is desired, call io.SetKeyEventNativeData()
- Basically the trick we took advantage of is that we previously only
supported native keycode from 0 to 511,
so ImGuiKey values can still express a legacy native keycode, and new named
keys are all >= 512.
- This will enable a few things in the future:
- Access to portable keys allows for backend-agnostic keyboard input code.
Until now it was difficult
to share code using keyboard across project because of this gap. (#2625,
#3724)
- Access to full key ranges will allow us to develop a proper keyboard
shortcut system. (#456)
- io.SetKeyEventNativeData() include native keycode/scancode which may later
be exposed. (#3141, #2959)
- Reworked IO nav/gamepad input API and unifying inputs sources: (#4921, #4858,
#787)
- Added full range of ImGuiKey_GamepadXXXX enums (e.g. ImGuiKey_GamepadDpadUp,
ImGuiKey_GamepadR2) to use with
io.AddKeyEvent(), io.AddKeyAnalogEvent().
- Added io.AddKeyAnalogEvent() function, obsoleting writing directly to
io.NavInputs[] arrays.
- Renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols.
Kept redirection enum. (#2625)
- Removed support for legacy arithmetic operators (+,+-,*,/) when inputing text
into a slider/drag. (#4917, #3184)
This doesn't break any api/code but a feature that was accessible by end-users
(which seemingly no one used).
(Instead you may implement custom expression evaluators to provide a better
version of this).
- Backends: GLFW: backend now uses glfwSetCursorPosCallback().
- If calling ImGui_ImplGlfw_InitXXX with install_callbacks=true: nothing to do.
is already done for you.
- If calling ImGui_ImplGlfw_InitXXX with install_callbacks=false: you WILL NEED
to register the GLFW callback
using glfwSetCursorPosCallback() and forward it to the backend function
ImGui_ImplGlfw_CursorPosCallback().
- Backends: SDL: Added SDL_Renderer* parameter to
ImGui_ImplSDL2_InitForSDLRenderer(), so backend can call
SDL_GetRendererOutputSize() to obtain framebuffer size valid for hi-dpi. (#4927)
[@Clownacy]
- Commented out redirecting functions/enums names that were marked obsolete in
1.69, 1.70, 1.71, 1.72 (March-July 2019)
- ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen()
- ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x
- ImGui::TreeAdvanceToLabelPos() -> use
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing());
- ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect
- ImGuiColorEditFlags_RGB/HSV/HEX -> use
ImGuiColorEditFlags_DisplayRGB/HSV/Hex
- Removed io.ImeSetInputScreenPosFn() in favor of more flexible
io.SetPlatformImeDataFn() for IME support.
Because this field was mostly only ever used by Dear ImGui internally, not by
backends nor the vast majority
of user code, this should only affect a very small fraction for users who are
already very IME-aware.
- Obsoleted 'void* io.ImeWindowHandle' in favor of writing to 'void*
ImGuiViewport::PlatformHandleRaw'.
This removes an incompatibility between 'master' and 'multi-viewports' backends
and toward enabling
better support for IME. Updated backends accordingly. Because the old field is
set by existing backends,
we are keeping it (marked as obsolete).
Other Changes:
- IO: Added event based input queue API, which now trickles events to support low
framerates. [@thedmd, @ocornut]
Previously the most common issue case (button presses in low framerates) was
handled by backend. This is now
handled by core automatically for all kind of inputs. (#4858, #2787, #1992,
#3383, #2525, #1320)
- New IO functions for keyboard/gamepad: AddKeyEvent(), AddKeyAnalogEvent().
- New IO functions for mouse: AddMousePosEvent(), AddMouseButtonEvent(),
AddMouseWheelEvent().
- IO: Unified key enums allow using key functions on key mods and gamepad values.
- Fixed CTRL+Tab into an empty window causing artifacts on the highlight rectangle
due to bad reordering on ImDrawCmd.
- Fixed a situation where CTRL+Tab or Modal can occasionally lead to the creation
of ImDrawCmd with zero triangles,
which would makes the draw operation of some backends assert (e.g. Metal with
debugging). (#4857)
- Popups: Fixed a regression crash when a new window is created after a modal on
the same frame. (#4920) [@rokups]
- Popups: Fixed an issue when reopening a same popup multiple times would offset
them by 1 pixel on the right. (#4936)
- Tables, ImDrawListSplitter: Fixed erroneously stripping trailing
ImDrawList::AddCallback() when submitted in
last column or last channel and when there are no other drawing operation.
(#4843, #4844) [@hoffstadt]
- Tables: Fixed positioning of Sort icon on right-most column with some settings
(not resizable + no borders). (#4918).
- Nav: Fixed gamepad navigation in wrapping popups not wrapping all the way.
(#4365)
- Sliders, Drags: Fixed text input of values with a leading sign, common when using
a format enforcing sign. (#4917)
- Demo: draw a section of keyboard in "Inputs > Keyboard, Gamepad & Navigation
state" to visualize keys. [@thedmd]
- Platform IME: changed io.ImeSetInputScreenPosFn() to io.SetPlatformImeDataFn()
API,
now taking a ImGuiPlatformImeData structure which we can more easily extend in
the future.
- Platform IME: moved io.ImeWindowHandle to GetMainViewport()->PlatformHandleRaw.
- Platform IME: add ImGuiPlatformImeData::WantVisible, hide IME composition window
when not used. (#2589) [@actboy168]
- Platform IME: add ImGuiPlatformImeData::InputLineHeight. (#3113) [@liuliu]
- Platform IME: [windows] call ImmSetCandidateWindow() to position candidate
window.
- Backends: GLFW: Pass localized keys (matching keyboard layout). Fix e.g. CTRL+A,
CTRL+Z, CTRL+Y shortcuts.
We are now converting GLFW untranslated keycodes back to translated keycodes in
order to match the behavior of
other backend, and facilitate the use of GLFW with lettered-shortcuts API. (#456,
#2625)
- Backends: GLFW: Submit keys and key mods using io.AddKeyEvent(). (#2625, #4921)
- Backends: GLFW: Submit mouse data using io.AddMousePosEvent(),
io.AddMouseButtonEvent(), io.AddMouseWheelEvent() functions. (#4921)
- Backends: GLFW: Retrieve mouse position using glfwSetCursorPosCallback() +
fallback when focused but not hovered/captured.
- Backends: GLFW: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent()
functions, stopped writing to io.NavInputs[]. (#4921)
- Backends: GLFW: Added
ImGui_ImplGlfw_InstallCallbacks()/ImGui_ImplGlfw_RestoreCallbacks() helpers to
facilitate user installing
callbacks after iniitializing backend. (#4981)
- Backends: Win32: Submit keys and key mods using io.AddKeyEvent(). (#2625, #4921)
- Backends: Win32: Retrieve mouse position using WM_MOUSEMOVE/WM_MOUSELEAVE +
fallback when focused but not hovered/captured.
- Backends: Win32: Submit mouse data using io.AddMousePosEvent(),
AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
- Backends: Win32: Maintain a MouseButtonsDown mask instead of using
ImGui::IsAnyMouseDown() which will be obsoleted.
- Backends: Win32: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent()
functions, stopped writing to io.NavInputs[]. (#4921)
- Backends: SDL: Pass localized keys (matching keyboard layout). Fix e.g. CTRL+A,
CTRL+Z, CTRL+Y shortcuts. (#456, #2625)
- Backends: SDL: Submit key data using io.AddKeyEvent(). Submit keymods using
io.AddKeyModsEvent() at the same time. (#2625)
- Backends: SDL: Retrieve mouse position using
SDL_MOUSEMOTION/SDL_WINDOWEVENT_LEAVE + fallback when focused but not
hovered/captured.
- Backends: SDL: Submit mouse data using io.AddMousePosEvent(),
AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
- Backends: SDL: Maintain a MouseButtonsDown mask instead of using
ImGui::IsAnyMouseDown() which will be obsoleted.
- Backends: SDL: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent()
functions, stopped writing to io.NavInputs[]. (#4921)
- Backends: Allegro5: Submit keys using io.AddKeyEvent(). Submit keymods using
io.AddKeyModsEvent() at the same time. (#2625)
- Backends: Allegro5: Submit mouse data using io.AddMousePosEvent(),
AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
- Backends: OSX: Submit keys using io.AddKeyEvent(). Submit keymods using
io.AddKeyModsEvent() at the same time. (#2625)
- Backends: OSX: Submit mouse data using io.AddMousePosEvent(),
AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921)
- Backends: OSX: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent()
functions, stopped writing to io.NavInputs[]. (#4921)
- Backends: OSX: Added basic Platform IME support. (#3108, #2598) [@liuliu]
- Backends: OSX: Fix Game Controller nav mapping to use shoulder for both focusing
and tweak speed. (#4759)
- Backends: OSX: Fix building with old Xcode versions that are missing gamepad
features. [@rokups]
- Backends: OSX: Forward keyDown/keyUp events to OS when unused by Dear ImGui.
- Backends: Android, GLUT: Submit keys using io.AddKeyEvent(). Submit keymods using
io.AddKeyModsEvent() at the same time. (#2625)
- Backends: Android, GLUT: Submit mouse data using io.AddMousePosEvent(),
AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4858)
- Backends: OpenGL3: Fixed a buffer overflow in imgui_impl_opengl3_loader.h init
(added in 1.86). (#4468, #4830) [@dymk]
It would generally not have noticeable side-effect at runtime but would be
detected by runtime checkers.
- Backends: OpenGL3: Fix OpenGL ES2 includes on Apple systems. [@rokups]
- Backends: Metal: Added Apple Metal C++ API support. (#4824, #4746) [@luigifcruz]
Enable with '#define IMGUI_IMPL_METAL_CPP' in your imconfig.h file.
- Backends: Metal: Ignore ImDrawCmd where ElemCount == 0, which are normally not
emitted by the library but
can theoretically be created by user code manipulating a ImDrawList. (#4857)
- Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, add
ImGui_ImplVulkan_AddTexture(). (#914) [@martty]
- Backends: SDL_Renderer: Fix texture atlas format on big-endian hardware (#4927)
[@Clownacy]
- Backends: WebGPU: Fixed incorrect size parameters in
wgpuRenderPassEncoderSetIndexBuffer() and
wgpuRenderPassEncoderSetVertexBuffer() calls. (#4891) [@FeepsDev]
-----------------------------------------------------------------------
VERSION 1.86 (Released 2021-12-22)
-----------------------------------------------------------------------
Other Changes:
- Added an assertion for the common user mistake of using "" as an identifier at
the root level of a window
instead of using "##something". Empty identifiers are valid and useful in a very
small amount of cases,
but 99.9% of the time if you need an empty label you should use "##something".
(#1414, #2562, #2807, #4008,
#4158, #4375, #4548, #4657, #4796). READ THE FAQ ABOUT HOW THE ID STACK WORKS ->
https://dearimgui.com/faq
- Added GetMouseClickedCount() function, returning the number of successive clicks.
(#3229) [@kudaba]
(so IsMouseDoubleClicked(ImGuiMouseButton_Left) is same as
GetMouseClickedCount(ImGuiMouseButton_Left) == 2,
but it allows testing for triple clicks and more).
- Modals: fixed issue hovering popups inside a child windows inside a modal.
(#4676, #4527)
- Modals, Popups, Windows: changes how appearing windows are interrupting popups
and modals. (#4317) [@rokups]
- appearing windows created from within the begin stack of a popup/modal will no
longer close it.
- appearing windows created not within the begin stack of a modal will no longer
close the modal,
and automatically appear behind it.
- Fixed IsWindowFocused()/IsWindowHovered() issues with child windows inside
popups. (#4676)
- Nav: Ctrl+tabbing to cycle through windows is now enabled regardless of using the
_NavEnableKeyboard
configuration flag. This is part of an effort to generalize the use of keyboard
inputs. (#4023, #787).
Note that while this is active you can also moving windows (with arrow) and
resize (shift+arrows).
- Nav: tabbing now cycles through clipped items and scroll accordingly. (#4449)
- Nav: pressing PageUp/PageDown/Home/End when in Menu layer automatically moves
back to Main layer.
- Nav: fixed resizing window from borders setting navigation to Menu layer.
- Nav: prevent child from clipping items when using _NavFlattened and parent has a
pending request.
- Nav: pressing Esc to exit a child window reactivates the Nav highlight if it was
disabled by mouse.
- Nav: with ImGuiConfigFlags_NavEnableSetMousePos enabled: Fixed absolute mouse
position when using
Home/End leads to scrolling. Fixed not setting mouse position when a failed move
request (e.g. when
already at edge) reactivates the navigation highlight.
- Menus: fixed closing a menu inside a popup/modal by clicking on the popup/modal.
(#3496, #4797)
- Menus: fixed closing a menu by clicking on its menu-bar item when inside a popup.
(#3496, #4797) [@xndcn]
- Menus: fixed menu inside a popup/modal not inhibiting hovering of items in the
popup/modal. (#3496, #4797)
- Menus: fixed sub-menu items inside a popups from closing the popup.
- Menus: fixed top-level menu from not consistently using style.PopupRounding.
(#4788)
- InputText, Nav: fixed repeated calls to SetKeyboardFocusHere() preventing to use
InputText(). (#4682)
- Inputtext, Nav: fixed using SetKeyboardFocusHere() on InputTextMultiline().
(#4761)
- InputText: made double-click select word, triple-line select line. Word
delimitation logic differs
slightly from the one used by CTRL+arrows. (#2244)
- InputText: fixed ReadOnly flag preventing callbacks from receiving the text
buffer. (#4762) [@actondev]
- InputText: fixed Shift+Delete from not cutting into clipboard. (#4818, #1541)
[@corporateshark]
- InputTextMultiline: fixed incorrect padding when FrameBorder > 0. (#3781, #4794)
- InputTextMultiline: fixed vertical tracking with large values of FramePadding.y.
(#3781, #4794)
- Separator: fixed cover all columns while called inside a table. (#4787)
- Clipper: currently focused item is automatically included in clipper range.
Fixes issue where e.g. drag and dropping an item and scrolling ensure the item
source location is
still submitted. (#3841, #1725) [@GamingMinds-DanielC, @ocornut]
- Clipper: added ForceDisplayRangeByIndices() to force a given item (or several) to
be stepped out
during a clipping operation. (#3841) [@GamingMinds-DanielC]
- Clipper: rework so gamepad/keyboard navigation doesn't create spikes in number of
items requested
by the clipper to display. (#3841)
- Clipper: fixed content height declaration slightly mismatching the value of when
not using a clipper.
(an additional ItemSpacing.y was declared, affecting scrollbar range).
- Clipper: various and incomplete changes to tame down scrolling and precision
issues on very large ranges.
Passing an explicit height to the clipper now allows larger ranges. (#3609,
#3962).
- Clipper: fixed invalid state when number of frozen table row is smaller than
ItemCount.
- Drag and Drop: BeginDragDropSource() with ImGuiDragDropFlags_SourceAllowNullID
doesn't lose
tooltip when scrolling. (#143)
- Fonts: fixed infinite loop in ImFontGlyphRangesBuilder::AddRanges() when passing
UINT16_MAX or UINT32_MAX
without the IMGUI_USE_WCHAR32 compile-time option. (#4802) [@SlavicPotato]
- Metrics: Added a node showing windows in submission order and showing the Begin()
stack.
- Misc: Added missing ImGuiMouseCursor_NotAllowed cursor for software rendering
(when the
io.MouseDrawCursor flag is enabled). (#4713) [@nobody-special666]
- Misc: Fixed software mouse cursor being rendered multiple times if Render() is
called more than once.
- Misc: Fix MinGW DLL build issue (when IMGUI_API is defined). [@rokups]
- CI: Add MinGW DLL build to test suite. [@rokups]
- Backends: Vulkan: Call vkCmdSetScissor() at the end of render with a full-
viewport to reduce
likehood of issues with people using VK_DYNAMIC_STATE_SCISSOR in their app
without calling
vkCmdSetScissor() explicitly every frame. (#4644)
- Backends: OpenGL3: Using buffer orphaning + glBufferSubData(), seems to fix leaks
with multi-viewports
with some Intel HD drivers, and perhaps improve performances. (#4468, #4504,
#2981, #3381) [@parbo]
- Backends: OpenGL2, Allegro5, Marmalade: Fixed mishandling of the
ImDrawCmd::IdxOffset field.
This is an old bug, but due to the way we created drawlists, it never had any
visible side-effect before.
The new code for handling Modal and CTRL+Tab dimming/whitening recently made the
bug surface. (#4790)
- Backends: Win32: Store left/right variants of Ctrl/Shift/Alt mods in KeysDown[]
array. (#2625) [@thedmd]
- Backends: DX12: Fixed DRAW_EMPTY_SCISSOR_RECTANGLE warnings. (#4775)
- Backends: SDL_Renderer: Added support for large meshes (64k+ vertices) with 16-
bit indices,
enabling 'ImGuiBackendFlags_RendererHasVtxOffset' in the backend. (#3926)
[@rokups]
- Backends: SDL_Renderer: Fix for SDL 2.0.19+ RenderGeometryRaw() API signature
change. (#4819) [@sridenour]
- Backends: OSX: Generally fix keyboard support. Keyboard arrays indexed using
kVK_* codes, e.g.
ImGui::IsKeyPressed(kVK_Space). Don't set mouse cursor shape unconditionally.
Handle two fingers scroll
cancel event. (#4759, #4253, #1873) [@stuartcarnie]
- Backends: OSX: Add Game Controller support (need linking GameController
framework) (#4759) [@stuartcarnie]
- Backends: WebGPU: Passing explicit buffer sizes to
wgpuRenderPassEncoderSetVertexBuffer() and
wgpuRenderPassEncoderSetIndexBuffer() functions as validation layers appears to
not do what the
in-flux specs says. (#4766) [@meshula]
-----------------------------------------------------------------------
VERSION 1.85 (Released 2021-10-12)
-----------------------------------------------------------------------
This is the last release officially supporting C++03 and Visual Studio 2008/2010.
(#4537)
We expect that the next release will require a subset of the C++11 language (VS
2012~, GCC 4.8.1, Clang 3.3).
We may use some C++11 language features but we will not use any C++ library
headers.
If you are stuck on ancient compiler you may need to stay at this version onward.
Breaking Changes:
Other Changes:
- Debug: Stack Tool: Added "Stack Tool" available in "Demo->Tools->Stack Tool",
"Metrics->Tools",
or by calling the ShowStackToolWindow() function. The tool run queries on hovered
id to display
details about individual components that were hashed to create an ID. It helps
understanding
the ID stack system and debugging potential ID collisions. (#4631) [@ocornut,
@rokups]
- Windows: Fixed background order of overlapping childs submitted sequentially.
(#4493)
- IsWindowFocused: Added ImGuiFocusedFlags_NoPopupHierarchy flag allowing to
exclude child popups
from the tested windows when combined with _ChildWindows.
- IsWindowHovered: Added ImGuiHoveredFlags_NoPopupHierarchy flag allowing to
exclude child popups
from the tested windows when combined with _ChildWindows.
- InputTextMultiline: Fixed label size not being included into window contents rect
unless
the whole widget is clipped.
- InputText: Allow activating/cancelling/validating input with gamepad nav events.
(#2321, #4552)
- InputText: Fixed selection rectangle appearing one frame late when selecting all.
- TextUnformatted: Accept null ranges including (NULL,NULL) without asserting, in
order to conform
to common idioms (e.g. passing .data(), .data() + .size() from a null string).
(#3615)
- Disabled: Added assert guard for mismatching BeginDisabled()/EndDisabled()
blocks. (#211)
- Nav: Fixed using SetKeyboardFocusHere() on non-visible/clipped items. It now
works and will scroll
toward the item. When called during a frame where the parent window is appearing,
scrolling will
aim to center the item in the window. When calling during a frame where the
parent window is already
visible, scrolling will aim to scroll as little as possible to make the item
visible. We will later
expose scroll functions and flags in public API to select those behaviors. (#343,
#4079, #2352)
- Nav: Fixed using SetKeyboardFocusHere() from activating a different item on the
next frame if
submitted items have changed during that frame. (#432)
- Nav: Fixed toggling menu layer with Alt or exiting menu layer with Esc not moving
mouse when
the ImGuiConfigFlags_NavEnableSetMousePos config flag is set.
- Nav: Fixed a few widgets from not setting reference keyboard/gamepad navigation
ID when
activated with mouse. More specifically: BeginTabItem(), the scrolling arrows of
BeginTabBar(),
the arrow section of TreeNode(), the +/- buttons of InputInt()/InputFloat(),
Selectable() with
ImGuiSelectableFlags_SelectOnRelease. More generally: any direct use of
ButtonBehavior() with
the PressedOnClick/PressedOnDoubleClick/PressedOnRelease button policy.
- Nav: Fixed an issue with losing focus on docked windows when pressing Alt while
keyboard navigation
is disabled. (#4547, #4439) [@PathogenDavid]
- Nav: Fixed vertical scoring offset when wrapping on Y in a decorated window.
- Nav: Improve scrolling behavior when navigating to an item larger than view.
- TreePush(): removed unnecessary/inconsistent legacy behavior where passing a NULL
value to
the TreePush(const char*) and TreePush(const void*) functions would use an hard-
coded replacement.
The only situation where that change would make a meaningful difference is
TreePush((const char*)NULL)
(_explicitly_ casting a null pointer to const char*), which is unlikely and will
now crash.
You may replace it with anything else.
- ColorEdit4: Fixed not being able to change hue when saturation is 0. (#4014)
[@rokups]
- ColorEdit4: Fixed hue resetting to 0 when it is set to 255. [@rokups]
- ColorEdit4: Fixed hue value jitter when source color is stored as RGB in 32-bit
integer and perform
RGB<>HSV round trips every frames. [@rokups]
- ColorPicker4: Fixed picker being unable to select exact 1.0f color when dragging
toward the edges
of the SV square (previously picked 0.999989986f). (#3517) [@rokups]
- Menus: Fixed vertical alignments of MenuItem() calls within a menu bar (broken in
1.84). (#4538)
- Menus: Improve closing logic when moving diagonally in empty between between
parent and child menus to
accommodate for varying font size and dpi.
- Menus: Fixed crash when navigating left inside a child window inside a sub-menu.
(#4510).
- Menus: Fixed an assertion happening in some situations when closing nested menus
(broken in 1.83). (#4640)
- Drag and Drop: Fixed using BeginDragDropSource() inside a BeginChild() that
returned false. (#4515)
- PlotHistogram: Fixed zero-line position when manually specifying min<0 and max>0.
(#4349) [@filippocrocchini]
- Misc: Added asserts for missing PopItemFlag() calls.
- Misc: Fixed printf-style format checks on Clang+MinGW. (#4626, #4183, #3592)
[@guusw]
- IO: Added 'io.WantCaptureMouseUnlessPopupClose' alternative to
`io.WantCaptureMouse'. (#4480)
This allows apps to receive the click on void when that click is used to close
popup (by default,
clicking on a void when a popup is open will close the popup but not release
io.WantCaptureMouse).
- Fonts: imgui_freetype: Fixed crash when FT_Render_Glyph() fails to render a glyph
and returns NULL
(which apparently happens with Freetype 2.11). (#4394, #4145?).
- Fonts: Fixed ImFontAtlas::ClearInputData() marking atlas as not built. (#4455,
#3487)
- Backends: Added more implicit asserts to detect invalid/redundant calls to
Shutdown functions. (#4562)
- Backends: OpenGL3: Fixed our custom GL loader conflicting with user using GL3W.
(#4445) [@rokups]
- Backends: WebGPU: Fixed for latest specs. (#4472, #4512) [@Kangz, @bfierz]
- Backends: SDL_Renderer: Added SDL_Renderer backend compatible with upcoming SDL
2.0.18. (#3926) [@1bsyl]
- Backends: Metal: Fixed a crash when clipping rect larger than framebuffer is
submitted via
a direct unclipped PushClipRect() call. (#4464)
- Backends: OSX: Use mach_absolute_time as CFAbsoluteTimeGetCurrent can jump
backwards. (#4557, #4563) [@lfnoise]
- Backends: All renderers: Normalize clipping rect handling across backends.
(#4464)
- Examples: Added SDL + SDL_Renderer example in "examples/example_sdl_sdlrenderer/"
folder. (#3926) [@1bsyl]
-----------------------------------------------------------------------
VERSION 1.84.2 (Released 2021-08-23)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
VERSION 1.84.1 (Released 2021-08-20)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
VERSION 1.84 (Released 2021-08-20)
-----------------------------------------------------------------------
Breaking Changes:
- Commented out redirecting functions/enums names that were marked obsolete in 1.67
and 1.69 (March 2019):
- ImGui::GetOverlayDrawList() -> use ImGui::GetForegroundDrawList()
- ImFont::GlyphRangesBuilder -> use ImFontGlyphRangesBuilder
- Backends: OpenGL3: added a third source file "imgui_impl_opengl3_loader.h".
(#4445) [@rokups]
- Backends: GLFW: backend now uses glfwSetCursorEnterCallback(). (#3751, #4377,
#2445)
- Backends: GLFW: backend now uses glfwSetWindowFocusCallback(). (#4388) [@thedmd]
- If calling ImGui_ImplGlfw_InitXXX with install_callbacks=true: this is already
done for you.
- If calling ImGui_ImplGlfw_InitXXX with install_callbacks=false: you WILL NEED
to register the GLFW callbacks
and forward them to the backend:
- Register glfwSetCursorEnterCallback, forward events to
ImGui_ImplGlfw_CursorEnterCallback().
- Register glfwSetWindowFocusCallback, forward events to
ImGui_ImplGlfw_WindowFocusCallback().
- Backends: SDL2: removed unnecessary SDL_Window* parameter from
ImGui_ImplSDL2_NewFrame(). (#3244) [@funchal]
Kept inline redirection function (will obsolete).
- Backends: SDL2: backend needs to set
'SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1")' in order to
receive mouse clicks events on window focus, otherwise SDL doesn't emit the
event. (#3751, #4377, #2445)
This is unfortunately a global SDL setting, so enabling it _might_ have a side-
effect on your application.
It is unlikely to make a difference, but if your app absolutely needs to ignore
the initial on-focus click:
you can ignore SDL_MOUSEBUTTONDOWN events coming right after a
SDL_WINDOWEVENT_FOCUS_GAINED event).
- Internals: (for custom widgets): because disabled items now sets HoveredId, if
you want custom widgets to
not react as hovered when disabled, in the majority of use cases it is preferable
to check the "hovered"
return value of ButtonBehavior() rather than (HoveredId == id).
Other Changes:
- IO: Added io.AddFocusEvent() api for backend to tell when host window has
gained/lost focus. (#4388) [@thedmd]
If you use a custom backend, consider adding support for this!
- Disabled: added BeginDisabled()/EndDisabled() api to create a scope where
interactions are disabled. (#211)
- Added style.DisabledAlpha (default to 0.60f) and ImGuiStyleVar_DisabledAlpha.
(#211)
- Unlike the internal-and-undocumented-but-somehow-known
PushItemFlag(ImGuiItemFlags_Disabled), this also alters
visuals. Currently this is done by lowering alpha of all widgets. Future
styling system may do that differently.
- Disabled items set HoveredId, allowing e.g. HoveredIdTimer to run. (#211,
#3419) [@rokups]
- Disabled items more consistently release ActiveId if the active item got
disabled. (#211)
- Nav: Fixed disabled items from being candidate for default focus. (#211, #787)
- Fixed Selectable() selection not showing when disabled. (#211)
- Fixed IsItemHovered() returning true on disabled item when navigated to. (#211)
- Fixed IsItemHovered() when popping disabled state after item, or when using
Selectable_Disabled. (#211)
- Windows: ImGuiWindowFlags_UnsavedDocument/ImGuiTabItemFlags_UnsavedDocument
displays a dot instead of a '*' so it
is independent from font style. When in a tab, the dot is displayed at the same
position as the close button.
Added extra comments to clarify the purpose of this flag in the context of docked
windows.
- Tables: Added ImGuiTableColumnFlags_Disabled acting a master disable over (hidden
from user/context menu). (#3935)
- Tables: Clarified that TableSetColumnEnabled() requires the table to use the
ImGuiTableFlags_Hideable flag,
because it manipulates the user-accessible show/hide state. (#3935)
- Tables: Added ImGuiTableColumnFlags_NoHeaderLabel to request TableHeadersRow() to
not submit label for a column.
Convenient for some small columns. Name will still appear in context menu.
(#4206).
- Tables: Fixed columns order on TableSetupScrollFreeze() if previous data got
frozen columns out of their section.
- Tables: Fixed invalid data in TableGetSortSpecs() when SpecsDirty flag is unset.
(#4233)
- Tabs: Fixed using more than 32 KB-worth of tab names. (#4176)
- InputInt/InputFloat: When used with Steps values and _ReadOnly flag, the step
button look disabled. (#211)
- InputText: Fixed named filtering flags disabling newline or tabs in multiline
inputs (#4409, #4410) [@kfsone]
- Drag and Drop: drop target highlight doesn't try to bypass host clipping
rectangle. (#4281, #3272)
- Drag and Drop: Fixed using AcceptDragDropPayload() with
ImGuiDragDropFlags_AcceptNoPreviewTooltip. [@JeffM2501]
- Menus: MenuItem() and BeginMenu() are not affected/overlapping when
style.SelectableTextAlign is altered.
- Menus: Fixed hovering a disabled menu or menu item not closing other menus.
(#211)
- Popups: Fixed BeginPopup/OpenPopup sequence failing when there are no focused
windows. (#4308) [@rokups]
- Nav: Alt doesn't toggle menu layer if other modifiers are held. (#4439)
- Fixed printf-style format checks on non-MinGW flavors. (#4183, #3592)
- Fonts: Functions with a 'float size_pixels' parameter can accept zero if it is
set in ImFontSize::SizePixels.
- Fonts: Prefer using U+FFFD character for fallback instead of '?', if available.
(#4269)
- Fonts: Use U+FF0E dot character to construct an ellipsis if U+002E '.' is not
available. (#4269)
- Fonts: Added U+FFFD ("replacement character") to default asian glyphs ranges.
(#4269)
- Fonts: Fixed calling ClearTexData() (clearing CPU side font data) triggering an
assert in NewFrame(). (#3487)
- DrawList: Fixed AddCircle/AddCircleFilled() with auto-tesselation not using
accelerated paths for small circles.
Fixed AddCircle/AddCircleFilled() with 12 segments which had a broken edge.
(#4419, #4421) [@thedmd]
- Demo: Fixed requirement in 1.83 to link with imgui_demo.cpp if
IMGUI_DISABLE_METRICS_WINDOW is not set. (#4171)
Normally the right way to disable compiling the demo is to set
IMGUI_DISABLE_DEMO_WINDOWS, but we want to avoid
implying that the file is required.
- Metrics: Fixed a crash when inspecting the individual draw command of a
foreground drawlist. [@rokups]
- Backends: Reorganized most backends (Win32, SDL, GLFW, OpenGL2/3, DX9/10/11/12,
Vulkan, Allegro) to pull their
data from a single structure stored inside the main Dear ImGui context. This
facilitate/allow usage of standard
backends with multiple-contexts BUT is only partially tested and not well
supported. It is generally advised to
instead use the multi-viewports feature of docking branch where a single Dear
ImGui context can be used across
multiple windows. (#586, #1851, #2004, #3012, #3934, #4141)
- Backends: Win32: Rework to handle certain Windows 8.1/10 features without a
manifest. (#4200, #4191)
- ImGui_ImplWin32_GetDpiScaleForMonitor() will handle per-monitor DPI on Windows
10 without a manifest.
- ImGui_ImplWin32_EnableDpiAwareness() will call SetProcessDpiAwareness()
fallback on Windows 8.1 without a manifest.
- Backends: Win32: IME functions are disabled by default for non-Visual Studio
compilers (MinGW etc.). Enable with
'#define IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS' for those compilers. Undo
change from 1.82. (#2590, #738, #4185, #4301)
- Backends: Win32: Mouse position is correctly reported when the host window is
hovered but not focused. (#2445, #2696, #3751, #4377)
- Backends: Win32, SDL2, GLFW, OSX, Allegro: now calling io.AddFocusEvent() on
focus gain/loss. (#4388) [@thedmd]
This allow us to ignore certain inputs on focus loss (previously relied on mouse
loss but backends are now
reporting mouse even when host window is unfocused, as per #2445, #2696, #3751,
#4377)
- Backends: Fixed keyboard modifiers being reported when host window doesn't have
focus. (#2622)
- Backends: GLFW: Mouse position is correctly reported when the host window is
hovered but not focused. (#3751, #4377, #2445)
(backend now uses glfwSetCursorEnterCallback(). If you called
ImGui_ImplGlfw_InitXXX with install_callbacks=false, you will
need to install this callback and forward the data to the backend via
ImGui_ImplGlfw_CursorEnterCallback).
- Backends: SDL2: Mouse position is correctly reported when the host window is
hovered but not focused. (#3751, #4377, #2445)
(enabled with SDL 2.0.5+ as SDL_GetMouseFocus() is only usable with
SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH).
- Backends: DX9: Explicitly disable texture state stages after >= 1. (#4268)
[@NZJenkins]
- Backends: DX12: Fix texture casting crash on 32-bit systems (introduced on
2021/05/19 and v1.83) + added comments
about building on 32-bit systems. (#4225) [@kingofthebongo2008]
- Backends: OpenGL3: Embed our own minimal GL headers/loader
(imgui_impl_opengl3_loader.h) based on gl3w.
Reduces the frequent issues and confusion coming from having to support multiple
loaders and requiring users to use and
initialize the same loader as the backend. (#4445) [@rokups]
Removed support for gl3w, glew, glad, glad2, glbinding2, glbinding3 (all now
unnecessary).
- Backends: OpenGL3: Handle GL_CLIP_ORIGIN on <4.5 contexts if
"GL_ARB_clip_control" extension is detected. (#4170, #3998)
- Backends: OpenGL3: Destroy vertex/fragment shader objects right after they are
linked into main shader. (#4244) [@Crowbarous]
- Backends: OpenGL3: Use OES_vertex_array extension on Emscripten + backup/restore
current state. (#4266, #4267) [@harry75369]
- Backends: GLFW: Installing and exposed ImGui_ImplGlfw_MonitorCallback() for
forward compatibility with docking branch.
- Backends: OSX: Added a fix for shortcuts using CTRL key instead of CMD key.
(#4253) [@rokups]
- Examples: DX12: Fixed handling of Alt+Enter in example app (using swapchain's
ResizeBuffers). (#4346) [@PathogenDavid]
- Examples: DX12: Removed unnecessary recreation of backend-owned device objects
when window is resized. (#4347) [@PathogenDavid]
- Examples: OpenGL3+GLFW,SDL: Remove include cruft to support variety of GL loaders
(no longer necessary). [@rokups]
- Examples: OSX+OpenGL2: Fix event forwarding (fix key remaining stuck when using
shortcuts with Cmd/Super key).
Other OSX examples were not affected. (#4253, #1873) [@rokups]
- Examples: Updated all .vcxproj to VS2015 (toolset v140) to facilitate usage with
vcpkg.
- Examples: SDL2: Accommodate for vcpkg install having headers in SDL2/SDL.h vs
SDL.h.
-----------------------------------------------------------------------
VERSION 1.83 (Released 2021-05-24)
-----------------------------------------------------------------------
Other Changes:
- Scrolling: Fix scroll tracking with e.g. SetScrollHereX/Y() when WindowPadding <
ItemSpacing.
- Scrolling: Fix scroll snapping on edge of scroll region when both scrollbars are
enabled.
- Scrolling: Fix mouse wheel axis swap when using SHIFT on macOS (system already
does it). (#4010)
- Window: Fix IsWindowAppearing() from returning true twice in most cases. (#3982,
#1497, #1061)
- Nav: Fixed toggling menu layer while an InputText() is active not stealing active
id. (#787)
- Nav: Fixed pressing Escape to leave menu layer while in a popup or child window.
(#787)
- Nav, InputText: Fixed accidental menu toggling while typing non-ascii characters
using AltGR. [@rokups] (#370)
- Nav: Fixed using SetItemDefaultFocus() on windows with _NavFlattened flag. (#787)
- Nav: Fixed Tabbing initial activation from skipping the first item if it is
tabbable through. (#787)
- Nav: Fixed fast CTRL+Tab (where keys are only held for one single frame) from
properly enabling the
menu layer of target window if it doesn't have other active layers.
- Tables: Expose TableSetColumnEnabled() in public api. (#3935)
- Tables: Better preserve widths when columns count changes. (#4046)
- Tables: Sharing more memory buffers between tables, reducing general memory
footprints. (#3740)
- Tabs: Fixed mouse reordering with very fast movements (e.g. crossing multiple
tabs in a single
frame and then immediately standing still (would only affect automation/bots).
[@rokups]
- Menus: made MenuItem() in a menu bar reflect the 'selected' argument with a
highlight. (#4128) [@mattelegende]
- Drags, Sliders, Inputs: Specifying a NULL format to Float functions default them
to "%.3f" to be
consistent with the compile-time default. (#3922)
- DragScalar: Add default value for v_speed argument to match higher-level
functions. (#3922) [@eliasdaler]
- ColorEdit4: Alpha default to 255 (instead of 0) when omitted in hex input.
(#3973) [@squadack]
- InputText: Fix handling of paste failure (buffer full) which in some cases could
corrupt the undo stack. (#4038)
(fix submitted to https://github.com/nothings/stb/pull/1158) [@Unit2Ed, @ocornut]
- InputText: Do not filter private unicode codepoints (e.g. icons) when pasted from
clipboard. (#4005) [@dougbinks]
- InputText: Align caret/cursor to pixel coordinates. (#4080) [@elvissteinjr]
- InputText: Fixed CTRL+Arrow or OSX double-click leaking the presence of spaces
when ImGuiInputTextFlags_Password
is used. (#4155, #4156) [@michael-swan]
- LabelText: Fixed clipping of multi-line value text when label is single-line.
(#4004)
- LabelText: Fixed vertical alignment of single-line value text when label is
multi-line. (#4004)
- Combos: Changed the combo popup to use a different id to also using a context
menu with the default item id.
Fixed using BeginPopupContextItem() with no parameter after a combo. (#4167)
- Popups: Added 'OpenPopup(ImGuiID id)' overload to facilitate calling from nested
stacks. (#3993, #331) [@zlash]
- Tweak computation of io.Framerate so it is less biased toward high-values in the
first 120 frames. (#4138)
- Optimization: Disabling some of MSVC most aggressive Debug runtime checks for
some simple/low-level functions
(e.g. ImVec2, ImVector) leading to a 10-20% increase of performances with MSVC
"default" Debug settings.
- ImDrawList: Add and use SSE-enabled ImRsqrt() in place of 1.0f / ImSqrt().
(#4091) [@wolfpld]
- ImDrawList: Fixed/improved thickness of thick strokes with sharp angles. (#4053,
#3366, #2964, #2868, #2518, #2183)
Effectively introduced a regression in 1.67 (Jan 2019), and a fix in 1.70 (Apr
2019) but the fix wasn't actually on
par with original version. Now incorporating the correct revert.
- ImDrawList: Fixed PathArcTo() regression from 1.82 preventing use of counter-
clockwise angles. (#4030, #3491) [@thedmd]
- Demo: Improved popups demo and comments.
- Metrics: Added "Fonts" section with same information as available in "Style
Editor">"Fonts".
- Backends: SDL2: Rework global mouse pos availability check listing supported
platforms explicitly,
effectively fixing mouse access on Raspberry Pi. (#2837, #3950) [@lethal-guitar,
@hinxx]
- Backends: Win32: Clearing keyboard down array when losing focus (WM_KILLFOCUS).
(#2062, #3532, #3961)
[@1025798851]
- Backends: OSX: Fix keys remaining stuck when CMD-tabbing to a different
application. (#3832) [@rokups]
- Backends: DirectX9: calling IDirect3DStateBlock9::Capture() after
CreateStateBlock() which appears to
workaround/fix state restoring issues. Unknown exactly why so, bit of a cargo-
cult fix. (#3857)
- Backends: DirectX9: explicitly setting up more graphics states to increase
compatibility with unusual
non-default states. (#4063)
- Backends: DirectX10, DirectX11: fixed a crash when backing/restoring state if
nothing is bound when
entering the rendering function. (#4045) [@Nemirtingas]
- Backends: GLFW: Adding bound check in KeyCallback because GLFW appears to send -1
on some setups. [#4124]
- Backends: Vulkan: Fix mapped memory Vulkan validation error when buffer sizes are
not multiple of
VkPhysicalDeviceLimits::nonCoherentAtomSize. (#3957) [@AgentX1994]
- Backends: WebGPU: Update to latest specs (Chrome Canary 92 and Emscripten
2.0.20). (#4116, #3632) [@bfierz, @Kangz]
- Backends: OpenGL3: Don't try to read GL_CLIP_ORIGIN unless we're OpenGL 4.5.
(#3998, #2366, #2186) [@s7jones]
- Examples: OpenGL: Add OpenGL ES 2.0 support to modern GL examples. (#2837, #3951)
[@lethal-guitar, @hinxx]
- Examples: Vulkan: Rebuild swapchain on VK_SUBOPTIMAL_KHR. (#3881)
- Examples: Vulkan: Prefer using discrete GPU if there are more than one available.
(#4012) [@rokups]
- Examples: SDL2: Link with shell32.lib required by SDL2main.lib since SDL 2.0.12.
[#3988]
- Examples: Android: Make Android example build compatible with Gradle 7.0. (#3446)
- Docs: Improvements to description of using colored glyphs/emojis. (#4169, #3369)
- Docs: Improvements to minor mistakes in documentation comments (#3923) [@ANF-
Studios]
-----------------------------------------------------------------------
VERSION 1.82 (Released 2021-02-15)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- Window, Nav: Fixed crash when calling SetWindowFocus(NULL) at the time a new
window appears. (#3865) [@nem0]
- Window: Shrink close button hit-testing region when it covers an abnormally high
portion of the window visible
area (e.g. when window is collapsed + moved in a corner) to facilitate moving the
window away. (#3825)
- Nav: Various fixes for losing gamepad/keyboard navigation reference point when a
window reappears or
when it appears while gamepad/keyboard are not being used. (#787)
- Drags: Fixed crash when using DragScalar() directly (not via common wrapper like
DragFloat() etc.)
with ImGuiSliderFlags_AlwaysClamp + only one of either p_min or p_max set.
(#3824) [@harry75369]
- Drags, Sliders: Fixed a bug where editing value would use wrong number if there
were digits right after
format specifier (e.g. using "%f123" as a format string). [@rokups]
- Drags, Sliders: Fixed a bug where using custom formatting flags (',$,_) supported
by stb_sprintf.h
would cause incorrect value to be displayed. (#3604) [@rokups]
- Drags, Sliders: Support ImGuiSliderFlags_Logarithmic flag with integers. Because
why not? (#3786)
- Tables: Fixed unaligned accesses when using
TableSetBgColor(ImGuiTableBgTarget_CellBg). (#3872)
- IsItemHovered(): fixed return value false positive when used after EndChild(),
EndGroup() or widgets using
either of them, when the hovered location is located within a child window, e.g.
InputTextMultiline().
This is intended to have no side effects, but brace yourself for the possible
comeback.. (#3851, #1370)
- Drag and Drop: can use BeginDragDropSource() for other than the left mouse button
as long as the item
has an ID (for ID-less items will add new functionalities later). (#1637, #3885)
- ImFontAtlas: Added 'bool TexPixelsUseColors' output to help backend decide of
underlying texture format. (#3369)
This can currently only ever be set by the Freetype renderer.
- imgui_freetype: Added ImGuiFreeTypeBuilderFlags_Bitmap flag to request Freetype
loading bitmap data.
This may have an effect on size and must be called with correct size values.
(#3879) [@metarutaiga]
- ImDrawList: PathArcTo() now supports "int num_segments = 0" (new default) and
adaptively tessellate.
The adaptive tessellation uses look up tables, tends to be faster than old
PathArcTo() while maintaining
quality for large arcs (tessellation quality derived from
"style.CircleTessellationMaxError") (#3491) [@thedmd]
- ImDrawList: PathArcToFast() also adaptively tessellate efficiently. This means
that large rounded corners
in e.g. hi-dpi settings will generally look better. (#3491) [@thedmd]
- ImDrawList: AddCircle, AddCircleFilled(): Tweaked default segment count
calculation to honor MaxError
with more accuracy. Made default segment count always even for better looking
result. (#3808) [@thedmd]
- Misc: Added GetAllocatorFunctions() to facilitate sharing allocators across DLL
boundaries. (#3836)
- Misc: Added 'debuggers/imgui.gdb' and 'debuggers/imgui.natstepfilter' (along with
existing 'imgui.natvis')
scripts to configure popular debuggers into skipping trivial functions when using
StepInto. [@rokups]
- Backends: Android: Added native Android backend. (#3446) [@duddel]
- Backends: Win32: Added ImGui_ImplWin32_EnableAlphaCompositing() to facilitate
experimenting with
alpha compositing and transparent windows. (#2766, #3447 etc.).
- Backends: OpenGL, Vulkan, DX9, DX10, DX11, DX12, Metal, WebGPU, Allegro: Rework
blending equation to
preserve alpha in output buffer (using SrcBlendAlpha = ONE, DstBlendAlpha =
ONE_MINUS_SRC_ALPHA consistently
across all backends), facilitating compositing of the output buffer with another
buffer.
(#2693, #2764, #2766, #2873, #3447, #3813, #3816) [@ocornut, @thedmd, @ShawnM427,
@Ubpa, @aiekick]
- Backends: DX9: Fix to support IMGUI_USE_BGRA_PACKED_COLOR. (#3844) [@Xiliusha]
- Backends: DX9: Fix to support colored glyphs, using newly introduced
'TexPixelsUseColors' info. (#3844)
- Examples: Android: Added Android + GL ES3 example. (#3446) [@duddel]
- Examples: Reworked setup of clear color to be compatible with transparent values.
- CI: Use a dedicated "scheduled" workflow to trigger scheduled builds. Forks may
disable this workflow if
scheduled builds builds are not required. [@rokups]
- Log/Capture: Added LogTextV, a va_list variant of LogText. [@PathogenDavid]
-----------------------------------------------------------------------
VERSION 1.81 (Released 2021-02-10)
-----------------------------------------------------------------------
Breaking Changes:
- ListBox helpers:
- Renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox().
- Renamed ListBoxFooter() to EndListBox().
- Removed ListBoxHeader(const char* label, int items_count, int height_in_items =
-1) in favor of specifying size.
In the redirection function, made vertical padding consistent regardless of
(items_count <= height_in_items) or not.
- Kept inline redirection function for all threes (will obsolete).
- imgui_freetype:
- Removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function.
Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection
path available too.
- The shared extra flags parameters (very rarely used) are now stored in
ImFontAtlas::FontBuilderFlags.
- Renamed ImFontConfig::RasterizerFlags (used by FreeType) to
ImFontConfig::FontBuilderFlags.
- Renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for
consistency with other API.
Other Changes:
- Viewports Added ImGui::GetMainViewport() as a way to get the bounds and work area
of the host display. (#3789, #1542)
- In 'master' branch or without multi-viewports feature enabled:
- GetMainViewport()->Pos is always == (0,0)
- GetMainViewport()->Size is always == io.DisplaySize
- In 'docking' branch and with the multi-viewports feature enabled:
- GetMainViewport() will return information from your host Platform Window.
- In the future, we will support a "no main viewport" mode and this may return
bounds of your main monitor.
- For forward compatibility with multi-viewports/multi-monitors:
- Code using (0,0) as a way to signify "upper-left of the host window" should
use GetMainViewport()->Pos.
- Code using io.DisplaySize as a way to signify "size of the host window"
should use GetMainViewport()->Size.
- We are also exposing a work area in ImGuiViewport ('WorkPos', 'WorkSize' vs
'Pos', 'Size' for full area):
- For a Platform Window, the work area is generally the full area minus space
used by menu-bars.
- For a Platform Monitor, the work area is generally the full area minus space
used by task-bars.
- All of this has been the case in 'docking' branch for a long time. What we've
done is merely merging
a small chunk of the multi-viewport logic into 'master' to standardize some
concepts ahead of time.
- Tables: Fixed PopItemWidth() or multi-components items not restoring per-colum
ItemWidth correctly. (#3760)
- Window: Fixed minor title bar text clipping issue when FramePadding is small/zero
and there are no
close button in the window. (#3731)
- SliderInt: Fixed click/drag when v_min==v_max from setting the value to zero.
(#3774) [@erwincoumans]
Would also repro with DragFloat() when using ImGuiSliderFlags_Logarithmic with
v_min==v_max.
- Menus: Fixed an issue with child-menu auto sizing (issue introduced in 1.80 on
2021/01/25) (#3779)
- InputText: Fixed slightly off ScrollX tracking, noticeable with large values of
FramePadding.x. (#3781)
- InputText: Multiline: Fixed padding/cliprect not precisely matching single-line
version. (#3781)
- InputText: Multiline: Fixed FramePadding.y worth of vertical offset when aiming
with mouse.
- ListBox: Tweaked default height calculation.
- Fonts: imgui_freetype: Facilitated using FreeType integration: [@Xipiryon,
@ocornut]
- Use '#define IMGUI_ENABLE_FREETYPE' in imconfig.h should make it work with no
other modifications
other than compiling misc/freetype/imgui_freetype.cpp and linking with
FreeType.
- Use '#define IMGUI_ENABLE_STB_TRUETYPE' if you somehow need the stb_truetype
rasterizer to be
compiled in along with the FreeType one, otherwise it is enabled by default.
- Fonts: imgui_freetype: Added support for colored glyphs as supported by Freetype
2.10+ (for .ttf using CPAL/COLR
tables only). Enable the ImGuiFreeTypeBuilderFlags_LoadColor on a given font.
Atlas always output directly
as RGBA8 in this situation. Likely to make sense with IMGUI_USE_WCHAR32. (#3369)
[@pshurgal]
- Fonts: Fixed CalcTextSize() width rounding so it behaves more like a ceil. This
is in order for text wrapping
to have enough space when provided width precisely calculated with
CalcTextSize().x. (#3776)
Note that the rounding of either positions and widths are technically undesirable
(e.g. #3437, #791) but
variety of code is currently on it so we are first fixing current behavior before
we'll eventually change it.
- Log/Capture: Fix various new line/spacing issue when logging widgets. [@Xipiryon,
@ocornut]
- Log/Capture: Improved the ASCII look of various widgets, making large dumps more
easily human readable.
- ImDrawList: Fixed AddCircle()/AddCircleFilled() with (rad > 0.0f && rad < 1.0f &&
num_segments == 0). (#3738)
Would lead to a buffer read overflow.
- ImDrawList: Clarified PathArcTo() need for a_min <= a_max with an assert.
- ImDrawList: Fixed PathArcToFast() handling of a_min > a_max.
- Metrics: Back-ported "Viewports" debug visualizer from 'docking' branch.
- Demo: Added 'Examples->Fullscreen Window' demo using GetMainViewport() values.
(#3789)
- Demo: 'Simple Overlay' demo now moves under main menu-bar (if any) using
GetMainViewport()'s work area.
- Backends: Win32: Dynamically loading XInput DLL instead of linking with it,
facilitate compiling with
old WindowSDK versions or running on Windows 7. (#3646, #3645, #3248, #2716)
[@Demonese]
- Backends: Vulkan: Add support for custom Vulkan function loader and
VK_NO_PROTOTYPES. (#3759, #3227) [@Hossein-Noroozpour]
User needs to call ImGui_ImplVulkan_LoadFunctions() with their custom loader
prior to other functions.
- Backends: Metal: Fixed texture storage mode when building on Mac Catalyst.
(#3748) [@Belinsky-L-V]
- Backends: OSX: Fixed mouse position not being reported when mouse buttons other
than left one are down. (#3762) [@rokups]
- Backends: WebGPU: Added enderer backend for WebGPU support (imgui_impl_wgpu.cpp)
(#3632) [@bfierz]
Please note that WebGPU is currently experimental, will not run on non-beta
browsers, and may break.
- Examples: WebGPU: Added Emscripten+WebGPU example. (#3632) [@bfierz]
- Backends: GLFW: Added ImGui_ImplGlfw_InitForOther() initialization call to use
with non OpenGL API. (#3632)
-----------------------------------------------------------------------
VERSION 1.80 (Released 2021-01-21)
-----------------------------------------------------------------------
Breaking Changes:
- Added imgui_tables.cpp file! Manually constructed project files will need the new
file added! (#3740)
- Backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from
examples/ to backends/. (#3513)
- Renamed ImDrawList::AddBezierCurve() to ImDrawList::AddBezierCubic(). Kept inline
redirection function (will obsolete).
- Renamed ImDrawList::PathBezierCurveTo() to ImDrawList::PathBezierCubicCurveTo().
Kept inline redirection function (will obsolete).
- Removed redirecting functions/enums names that were marked obsolete in 1.60
(April 2018):
- io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value
and call the render function of your backend
- ImGui::IsAnyWindowFocused() -> use
ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow)
- ImGui::IsAnyWindowHovered() -> use
ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)
- ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT
- ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT
- Removed redirecting functions/enums names that were marked obsolete in 1.61 (May
2018):
- InputFloat (... int decimal_precision ...) -> use InputFloat (... const char*
format ...) with format = "%.Xf" where X was value for decimal_precision.
- same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int
decimal_precision` parameter.
- Removed redirecting functions/enums names that were marked obsolete in 1.63
(August 2018):
- ImGui::IsItemDeactivatedAfterChange() -> use
ImGui::IsItemDeactivatedAfterEdit().
- ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg
- ImGuiInputTextCallback -> use ImGuiTextEditCallback
- ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData
- If you were still using the old names, while you are cleaning up, considering
enabling
IMGUI_DISABLE_OBSOLETE_FUNCTIONS in imconfig.h even temporarily to have a pass at
finding
and removing up old API calls, if any remaining.
- Internals: Columns: renamed undocumented/internals ImGuiColumnsFlags_* to
ImGuiOldColumnFlags_* to reduce
confusion with Tables API. Keep redirection enums (will obsolete). (#125, #513,
#913, #1204, #1444, #2142, #2707)
- Renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the
feature now applies
to other data structures. (#2636)
Other Changes:
- Tables: added new Tables Beta API as a replacement for old Columns. (#3740,
#2957, #125)
Check out 'Demo->Tables' for many demos.
Read API comments in imgui.h for details. Read extra commentary in
imgui_tables.cpp.
- Added 16 functions:
- BeginTable(), EndTable()
- TableNextRow(), TableNextColumn(), TableSetColumnIndex()
- TableSetupColumn(), TableSetupScrollFreeze()
- TableHeadersRow(), TableHeader()
- TableGetRowIndex(), TableGetColumnCount(), TableGetColumnIndex(),
TableGetColumnName(), TableGetColumnFlags()
- TableGetSortSpecs(), TableSetBgColor()
- Added 3 flags sets:
- ImGuiTableFlags (29 flags for: features, decorations, sizing policies,
padding, clipping, scrolling, sorting etc.)
- ImGuiTableColumnFlags (24 flags for: width policies, default settings,
sorting options, indentation options etc.)
- ImGuiTableRowFlags (1 flag for: header row)
- Added 2 structures: ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs
- Added 2 enums: ImGuiSortDirection, ImGuiTableBgTarget
- Added 1 style variable: ImGuiStyleVar_CellPadding
- Added 5 style colors: ImGuiCol_TableHeaderBg, ImGuiCol_TableBorderStrong,
ImGuiCol_TableBorderLight, ImGuiCol_TableRowBg, ImGuiCol_TableRowBgAlt.
- Tabs: Made it possible to append to an existing tab bar by calling
BeginTabBar()/EndTabBar() again.
- Tabs: Fixed using more than 128 tabs in a tab bar (scrolling policy recommended).
- Tabs: Do not display a tooltip if the name already fits over a given tab. (#3521)
- Tabs: Fixed minor/unlikely bug skipping over a button when scrolling left with
arrows.
- Tabs: Requested ideal content size (for auto-fit) doesn't affect horizontal
scrolling. (#3414)
- Drag and Drop: Fix losing drop source ActiveID (and often source tooltip) when
opening a TreeNode()
or CollapsingHeader() while dragging. (#1738)
- Drag and Drop: Fix drag and drop to tie same-size drop targets by chosen the
later one. Fixes dragging
into a full-window-sized dockspace inside a zero-padded window. (#3519, #2717)
[@Black-Cat]
- Checkbox: Added CheckboxFlags() helper with int* type (internals have a template
version, not exposed).
- Clipper: Fixed incorrect end-list positioning when using ImGuiListClipper with 1
item (bug in 1.79). (#3663) [@nyorain]
- InputText: Fixed updating cursor/selection position when a callback altered the
buffer in a way
where the byte count is unchanged but the decoded character count changes.
(#3587) [@gqw]
- InputText: Fixed switching from single to multi-line while preserving same ID.
- Combo: Fixed using IsItemEdited() after Combo() not matching the return value
from Combo(). (#2034)
- DragFloat, DragInt: very slightly increased mouse drag threshold + expressing it
as a factor of default value.
- DragFloat, DragInt: added experimental io.ConfigDragClickToInputText feature to
enable turning DragXXX widgets
into text input with a simple mouse click-release (without moving). (#3737)
- Nav: Fixed IsItemFocused() from returning false when Nav highlight is hidden
because mouse has moved.
It's essentially been always the case but it doesn't make much sense. Instead we
will aim at exposing
feedback and control of keyboard/gamepad navigation highlight and mouse hover
disable flag. (#787, #2048)
- Metrics: Fixed mishandling of ImDrawCmd::VtxOffset in wireframe mesh renderer.
- Metrics: Rebranded as "Dear ImGui Metrics/Debugger" to clarify its purpose.
- ImDrawList: Added ImDrawList::AddQuadBezierCurve(),
ImDrawList::PathQuadBezierCurveTo() quadratic bezier
helpers. (#3127, #3664, #3665) [@aiekick]
- Fonts: Updated GetGlyphRangesJapanese() to include a larger 2999 ideograms
selection of Joyo/Jinmeiyo
kanjis, from the previous 1946 ideograms selection. This will consume a some more
memory but be generally
much more fitting for Japanese display, until we switch to a more dynamic atlas.
(#3627) [@vaiorabbit]
- Log/Capture: fix capture to work on clipped child windows.
- Misc: Made the ItemFlags stack shared, so effectively the
ButtonRepeat/AllowKeyboardFocus states
(and others exposed in internals such as PushItemFlag) are inherited by stacked
Begin/End pairs,
vs previously a non-child stacked Begin() would reset those flags back to zero
for the stacked window.
- Misc: Replaced UTF-8 decoder with one based on branchless one by Christopher
Wellons. [@rokups]
Super minor fix handling incomplete UTF-8 contents: if input does not contain
enough bytes, decoder
returns IM_UNICODE_CODEPOINT_INVALID and consume remaining bytes (vs old decoded
consumed only 1 byte).
- Misc: Fix format warnings when using gnu printf extensions in a setup that
supports them (gcc/mingw). (#3592)
- Misc: Made EndFrame() assertion for key modifiers being unchanged during the
frame (added in 1.76) more
lenient, allowing full mid-frame releases. This is to accommodate the use of mid-
frame modal native
windows calls, which leads backends such as GLFW to send key clearing events on
focus loss. (#3575)
- Style: Changed default style.WindowRounding value to 0.0f (matches default for
multi-viewports).
- Style: Reduced the size of the resizing grip, made alpha less prominent.
- Style: Classic: Increase the default alpha value of WindowBg to be closer to
other styles.
- Demo: Clarify usage of right-aligned items in Demo>Layout>Widgets Width.
- Backends: OpenGL3: Use glGetString(GL_VERSION) query instead of
glGetIntegerv(GL_MAJOR_VERSION, ...)
when the later returns zero (e.g. Desktop GL 2.x). (#3530) [@xndcn]
- Backends: OpenGL2: Backup and restore GL_SHADE_MODEL and disable GL_NORMAL_ARRAY
state to increase
compatibility with legacy code. (#3671)
- Backends: OpenGL3: Backup and restore GL_PRIMITIVE_RESTART state. (#3544)
[@Xipiryon]
- Backends: OpenGL2, OpenGL3: Backup and restore GL_STENCIL_TEST enable state.
(#3668)
- Backends: Vulkan: Added support for specifying which sub-pass to reference during
VkPipeline creation. (@3579) [@bdero]
- Backends: DX12: Improve Windows 7 compatibility (for D3D12On7) by loading
d3d12.dll dynamically. (#3696) [@Mattiwatti]
- Backends: Win32: Fix setting of io.DisplaySize to invalid/uninitialized data
after hwnd has been closed.
- Backends: OSX: Fix keypad-enter key not working on MacOS. (#3554) [@rokups,
@lfnoise]
- Examples: Apple+Metal: Consolidated/simplified to get closer to other examples.
(#3543) [@warrenm]
- Examples: Apple+Metal: Forward events down so OS key combination like Cmd+Q can
work. (#3554) [@rokups]
- Examples: Emscripten: Renamed example_emscripten/ to example_emscripten_opengl3/.
(#3632)
- Examples: Emscripten: Added 'make serve' helper to spawn a web-server on
localhost. (#3705) [@Horki]
- Examples: DirectX12: Move ImGui::Render() call above the first barrier to clarify
its lack of effect on the graphics pipe.
- CI: Fix testing for Windows DLL builds. (#3603, #3601) [@iboB]
- Docs: Improved the wiki and added a https://github.com/ocornut/imgui/wiki/Useful-
Widgets page. [@Xipiryon]
[2021/05/20: moved to https://github.com/ocornut/imgui/wiki/Useful-Extensions]
- Docs: Split examples/README.txt into docs/BACKENDS.md and docs/EXAMPLES.md, and
improved them.
- Docs: Consistently renamed all occurrences of "binding" and "back-end" to
"backend" in comments and docs.
-----------------------------------------------------------------------
VERSION 1.79 (Released 2020-10-08)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- Window: Fixed using non-zero pivot in SetNextWindowPos() when the window is
collapsed. (#3433)
- Nav: Fixed navigation resuming on first visible item when using gamepad.
[@rokups]
- Nav: Fixed using Alt to toggle the Menu layer when inside a Modal window. (#787)
- Scrolling: Fixed SetScrollHere(0) functions edge snapping when called during a
frame where
ContentSize is changing (issue introduced in 1.78). (#3452).
- InputText: Added support for Page Up/Down in InputTextMultiline(). (#3430)
[@Xipiryon]
- InputText: Added selection helpers in ImGuiInputTextCallbackData().
- InputText: Added ImGuiInputTextFlags_CallbackEdit to modify internally owned
buffer after an edit.
(note that InputText() already returns true on edit, the callback is useful
mainly to manipulate the
underlying buffer while focus is active).
- InputText: Fixed using ImGuiInputTextFlags_Password with InputTextMultiline().
(#3427, #3428)
It is a rather unusual or useless combination of features but no reason it
shouldn't work!
- InputText: Fixed minor scrolling glitch when erasing trailing lines in
InputTextMultiline().
- InputText: Fixed cursor being partially covered after using Ctrl+End key.
- InputText: Fixed callback's helper DeleteChars() function when cursor is inside
the deleted block. (#3454)
- InputText: Made pressing Down arrow on the last line when it doesn't have a
carriage return not move to
the end of the line (so it is consistent with Up arrow, and behave same as
Notepad and Visual Studio.
Note that some other text editors instead would move the cursor to the end of the
line). [@Xipiryon]
- DragFloat, DragScalar: Fixed ImGuiSliderFlags_ClampOnInput not being honored in
the special case
where v_min == v_max. (#3361)
- SliderInt, SliderScalar: Fixed reaching of maximum value with inverted integer
min/max ranges, both
with signed and unsigned types. Added reverse Sliders to Demo. (#3432, #3449)
[@rokups]
- Text: Bypass unnecessary formatting when using the
TextColored()/TextWrapped()/TextDisabled() helpers
with a "%s" format string. (#3466)
- CheckboxFlags: Display mixed-value/tristate marker when passed flags that have
multiple bits set and
stored value matches neither zero neither the full set.
- BeginMenuBar: Fixed minor bug where CursorPosMax gets pushed to CursorPos prior
to calling BeginMenuBar(),
so e.g. calling the function at the end of a window would often add
+ItemSpacing.y to scrolling range.
- TreeNode, CollapsingHeader: Made clicking on arrow toggle toggle the open state
on the Mouse Down event
rather than the Mouse Down+Up sequence, even if the _OpenOnArrow flag isn't set.
This is standard behavior
and amends the change done in 1.76 which only affected cases were _OpenOnArrow
flag was set.
(This is also necessary to support full multi/range-select/drag and drop
operations.)
- Tabs: Added TabItemButton() to submit tab that behave like a button. (#3291)
[@Xipiryon]
- Tabs: Added ImGuiTabItemFlags_Leading and ImGuiTabItemFlags_Trailing flags to
position tabs or button
at either end of the tab bar. Those tabs won't be part of the scrolling region,
and when reordering cannot
be moving outside of their section. Most often used with TabItemButton(). (#3291)
[@Xipiryon]
- Tabs: Added ImGuiTabItemFlags_NoReorder flag to disable reordering a given tab.
- Tabs: Keep tab item close button visible while dragging a tab (independent of
hovering state).
- Tabs: Fixed a small bug where closing a tab that is not selected would leave a
tab hole for a frame.
- Tabs: Fixed a small bug where scrolling buttons (with
ImGuiTabBarFlags_FittingPolicyScroll) would
generate an unnecessary extra draw call.
- Tabs: Fixed a small bug where toggling a tab bar from Reorderable to not
Reorderable would leave
tabs reordered in the tab list popup. [@Xipiryon]
- Columns: Fix inverted ClipRect being passed to renderer when using certain
primitives inside of
a fully clipped column. (#3475) [@szreder]
- Popups, Tooltips: Fix edge cases issues with positioning popups and tooltips when
they are larger than
viewport on either or both axises. [@Rokups]
- Fonts: AddFontDefault() adjust its vertical offset based on floor(size/13)
instead of always +1.
Was previously done by altering DisplayOffset.y but wouldn't work for DPI scaled
font.
- Metrics: Various tweaks, listing windows front-to-back, greying inactive items
when possible.
- Demo: Add simple InputText() callbacks demo (aside from the more elaborate ones
in 'Examples->Console').
- Backends: OpenGL3: Fix to avoid compiling/calling glBindSampler() on ES or pre
3.3 contexts which have
the defines set by a loader. (#3467, #1985) [@jjwebb]
- Backends: Vulkan: Some internal refactor aimed at allowing multi-viewport feature
to create their
own render pass. (#3455, #3459) [@FunMiles]
- Backends: DX12: Clarified that imgui_impl_dx12 can be compiled on 32-bit systems
by redefining
the ImTextureID to be 64-bit (e.g. '#define ImTextureID ImU64' in imconfig.h).
(#301)
- Backends: DX12: Fix debug layer warning when scissor rect is zero-sized. (#3472,
#3462) [@StoneWolf]
- Examples: Vulkan: Reworked buffer resize handling, fix for Linux/X11. (#3390,
#2626) [@RoryO]
- Examples: Vulkan: Switch validation layer to use "VK_LAYER_KHRONOS_validation"
instead of
"VK_LAYER_LUNARG_standard_validation" which is deprecated (#3459) [@FunMiles]
- Examples: DX12: Enable breaking on any warning/error when debug interface is
enabled.
- Examples: DX12: Added '#define ImTextureID ImU64' in project and build files to
also allow building
on 32-bit systems. Added project to default Visual Studio solution file. (#301)
-----------------------------------------------------------------------
VERSION 1.78 (Released 2020-08-18)
-----------------------------------------------------------------------
Breaking Changes:
- Obsoleted use of the trailing 'float power=1.0f' parameter for those functions:
[@Shironekoben, @ocornut]
- DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(),
DragScalar(), DragScalarN()
- SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(),
SliderScalarN()
- VSliderFloat(), VSliderScalar()
Replaced the final 'float power=1.0f' argument with ImGuiSliderFlags defaulting
to 0 (as with all our flags).
Worked out a backward-compatibility scheme so hopefully most C++ codebase should
not be affected.
In short, when calling those functions:
- If you omitted the 'power' parameter (likely!), you are not affected.
- If you set the 'power' parameter to 1.0f (same as previous default value):
- Your compiler may warn on float>int conversion.
- Everything else will work (but will assert if
IMGUI_DISABLE_OBSOLETE_FUNCTIONS is defined).
- You can replace the 1.0f value with 0 to fix the warning, and be technically
correct.
- If you set the 'power' parameter to >1.0f (to enable non-linear editing):
- Your compiler may warn on float>int conversion.
- Code will assert at runtime for IM_ASSERT(power == 1.0f) with the following
assert description:
"Call Drag function with ImGuiSliderFlags_Logarithmic instead of using the
old 'float power' function!".
- In case asserts are disabled, the code will not crash and enable the
_Logarithmic flag.
- You can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the
warning/assert
and get a _similar_ effect as previous uses of power >1.0f.
See https://github.com/ocornut/imgui/issues/3361 for all details.
For shared code, you can version check at compile-time with `#if
IMGUI_VERSION_NUM >= 17704`.
Kept inline redirection functions (will obsolete) apart for: DragFloatRange2(),
VSliderFloat(), VSliderScalar().
For those three the 'float power=1.0f' version was removed directly as they were
most unlikely ever used.
- DragInt, DragFloat, DragScalar: Obsoleted use of v_min > v_max to lock edits
(introduced in 1.73, this was not
demoed nor documented much, will be replaced a more generic ReadOnly feature).
Other Changes:
- Nav: Fixed clicking on void (behind any windows) from not clearing the focused
window.
This would be problematic e.g. in situation where the application relies on
io.WantCaptureKeyboard
flag being cleared accordingly. (bug introduced in 1.77 WIP on 2020/06/16)
(#3344, #2880)
- Window: Fixed clicking over an item which hovering has been disabled (e.g
inhibited by a popup)
from marking the window as moved.
- Drag, Slider: Added ImGuiSliderFlags parameters.
- For float functions they replace the old trailing 'float power=1.0' parameter.
(See #3361 and the "Breaking Changes" block above for all details).
- Added ImGuiSliderFlags_Logarithmic flag to enable logarithmic editing
(generally more precision around zero), as a replacement to the old 'float
power' parameter
which was obsoleted. (#1823, #1316, #642) [@Shironekoben, @AndrewBelt]
- Added ImGuiSliderFlags_ClampOnInput flag to force clamping value when using
CTRL+Click to type in a value manually. (#1829, #3209, #946, #413).
[note: RENAMED to ImGuiSliderFlags_AlwaysClamp in 1.79].
- Added ImGuiSliderFlags_NoRoundToFormat flag to disable rounding underlying
value to match precision of the display format string. (#642)
- Added ImGuiSliderFlags_NoInput flag to disable turning widget into a text input
with CTRL+Click or Nav Enter.
- Nav, Slider: Fix using keyboard/gamepad controls with certain logarithmic sliders
where
pushing a direction near zero values would be cancelled out. [@Shironekoben]
- DragFloatRange2, DragIntRange2: Fixed an issue allowing to drag out of bounds
when both
min and max value are on the same value. (#1441)
- InputText, ImDrawList: Fixed assert triggering when drawing single line of text
with more
than ~16 KB characters. (Note that current code is going to show corrupted
display if after
clipping, more than 16 KB characters are visible in the same low-level
ImDrawList::RenderText()
call. ImGui-level functions such as TextUnformatted() are not affected. This is
quite rare
but it will be addressed later). (#3349)
- Selectable: Fixed highlight/hit extent when used with horizontal scrolling (in or
outside columns).
Also fixed related text clipping when used in a column after the first one.
(#3187, #3386)
- Scrolling: Avoid SetScroll, SetScrollFromPos functions from snapping on the edge
of scroll
limits when close-enough by (WindowPadding - ItemPadding), which was a tweak with
too many
side-effects. The behavior is still present in SetScrollHere functions as they
are more explicitly
aiming at making widgets visible. May later be moved to a flag.
- Tabs: Allow calling SetTabItemClosed() after a tab has been submitted (will
process next frame).
- InvisibleButton: Made public a small selection of ImGuiButtonFlags (previously in
imgui_internal.h)
and allowed to pass them to InvisibleButton():
ImGuiButtonFlags_MouseButtonLeft/Right/Middle.
This is a small but rather important change because lots of multi-button
behaviors could previously
only be achieved using lower-level/internal API. Now also available via high-
level InvisibleButton()
with is a de-facto versatile building block to creating custom widgets with the
public API.
- Fonts: Fixed ImFontConfig::GlyphExtraSpacing and ImFontConfig::PixelSnapH
settings being pulled
from the merged/target font settings when merging fonts, instead of being pulled
from the source
font settings.
- ImDrawList: Thick anti-aliased strokes (> 1.0f) with integer thickness now use a
texture-based
path, reducing the amount of vertices/indices and CPU/GPU usage. (#3245)
[@Shironekoben]
- This change will facilitate the wider use of thick borders in future style
changes.
- Requires an extra bit of texture space (~64x64 by default), relies on GPU
bilinear filtering.
- Set `io.AntiAliasedLinesUseTex = false` to disable rendering using this method.
- Clear `ImFontAtlasFlags_NoBakedLines` in ImFontAtlas::Flags to disable baking
data in texture.
- ImDrawList: changed AddCircle(), AddCircleFilled() default num_segments from 12
to 0, effectively
enabling auto-tessellation by default. Tweak tessellation in Style Editor-
>Rendering section, or
by modifying the 'style.CircleSegmentMaxError' value. [@ShironekoBen]
- ImDrawList: Fixed minor bug introduced in 1.75 where AddCircle() with 12 segments
would generate
an extra vertex. (This bug was mistakenly marked as fixed in earlier 1.77
release). [@ShironekoBen]
- Demo: Improved "Custom Rendering"->"Canvas" demo with a grid, scrolling and
context menu.
Also showcase using InvisibleButton() with multiple mouse buttons flags.
- Demo: Improved "Layout & Scrolling" -> "Clipping" section.
- Demo: Improved "Layout & Scrolling" -> "Child Windows" section.
- Style Editor: Added preview of circle auto-tessellation when editing the
corresponding value.
- Backends: OpenGL3: Added support for glad2 loader. (#3330) [@moritz-h]
- Backends: Allegro 5: Fixed horizontal scrolling direction with mouse wheel /
touch pads (it seems
like Allegro 5 reports it differently from GLFW and SDL). (#3394, #2424, #1463)
[@nobody-special666]
- Examples: Vulkan: Fixed GLFW+Vulkan and SDL+Vulkan clear color not being set.
(#3390) [@RoryO]
- CI: Emscripten has stopped their support for their fastcomp backend, switching to
latest sdk [@Xipiryon]
-----------------------------------------------------------------------
VERSION 1.77 (Released 2020-06-29)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- TreeNode: Fixed bug where BeginDragDropSource() failed when the
_OpenOnDoubleClick flag is
enabled (bug introduced in 1.76, but pre-1.76 it would also fail unless the
_OpenOnArrow
flag was also set, and _OpenOnArrow is frequently set along with
_OpenOnDoubleClick).
- TreeNode: Fixed bug where dragging a payload over a TreeNode() with either
_OpenOnDoubleClick
or _OpenOnArrow would open the node. (#143)
- Windows: Fix unintended feedback loops when resizing windows close to main
viewport edges. [@rokups]
- Tabs: Added style.TabMinWidthForUnselectedCloseButton settings:
- Set to 0.0f (default) to always make a close button appear on hover (same as
Chrome, VS).
- Set to FLT_MAX to only display a close button when selected (merely hovering is
not enough).
- Set to an intermediary value to toggle behavior based on width (same as
Firefox).
- Tabs: Added a ImGuiTabItemFlags_NoTooltip flag to disable the tooltip for
individual tab item
(vs ImGuiTabBarFlags_NoTooltip for entire tab bar). [@Xipiryon]
- Popups: All functions capable of opening popups (OpenPopup*, BeginPopupContext*)
now take a new
ImGuiPopupFlags sets of flags instead of a mouse button index. The API is
automatically backward
compatible as ImGuiPopupFlags is guaranteed to hold mouse button index in the
lower bits.
- Popups: Added ImGuiPopupFlags_NoOpenOverExistingPopup for
OpenPopup*/BeginPopupContext* functions
to first test for the presence of another popup at the same level.
- Popups: Added ImGuiPopupFlags_NoOpenOverItems for BeginPopupContextWindow() -
similar to testing
for !IsAnyItemHovered() prior to doing an OpenPopup().
- Popups: Added ImGuiPopupFlags_AnyPopupId and ImGuiPopupFlags_AnyPopupLevel flags
for IsPopupOpen(),
allowing to check if any popup is open at the current level, if a given popup is
open at any popup
level, if any popup is open at all.
- Popups: Fix an edge case where programmatically closing a popup while clicking on
its empty space
would attempt to focus it and close other popups. (#2880)
- Popups: Fix BeginPopupContextVoid() when clicking over the area made unavailable
by a modal. (#1636)
- Popups: Clarified some of the comments and function prototypes.
- Modals: BeginPopupModal() doesn't set the ImGuiWindowFlags_NoSavedSettings flag
anymore, and will
not always be auto-centered. Note that modals are more similar to regular windows
than they are to
popups, so api and behavior may evolve further toward embracing this. (#915,
#3091)
Enforce centering using e.g. SetNextWindowPos(io.DisplaySize * 0.5f,
ImGuiCond_Appearing, ImVec2(0.5f,0.5f)).
- Metrics: Added a "Settings" section with some details about persistent ini
settings.
- Nav, Menus: Fix vertical wrap-around in menus or popups created with multiple
appending calls to
BeginMenu()/EndMenu() or BeginPopup(0/EndPopup(). (#3223, #1207) [@rokups]
- Drag and Drop: Fixed unintended fallback "..." tooltip display during drag
operation when
drag source uses _SourceNoPreviewTooltip flags. (#3160) [@rokups]
- Columns: Lower overhead on column switches and switching to background channel.
Benefits Columns but was primarily made with Tables in mind!
- Fonts: Fix GetGlyphRangesKorean() end-range to end at 0xD7A3 (instead of 0xD79D).
(#348, #3217) [@marukrap]
- ImDrawList: Fixed an issue where draw command merging or primitive unreserve
while crossing the
VtxOffset boundary would lead to draw commands with wrong VtxOffset. (#3129,
#3163, #3232, #2591)
[@thedmd, @Shironekoben, @sergeyn, @ocornut]
- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where changing channels
with different
TextureId, VtxOffset would incorrectly apply new settings to draw channels.
(#3129, #3163)
[@ocornut, @thedmd, @Shironekoben]
- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split
when current
VtxOffset was not zero would lead to draw commands with wrong VtxOffset. (#2591)
- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split
right after
a callback draw command would incorrectly override the callback draw command.
- Misc, Freetype: Fix for rare case where FT_Get_Char_Index() succeeds but
FT_Load_Glyph() fails.
- Docs: Improved and moved font documentation to docs/FONTS.md so it can be
readable on the web.
Updated various links/wiki accordingly. Added FAQ entry about DPI. (#2861)
[@ButternCream, @ocornut]
- CI: Added CI test to verify we're never accidentally dragging libstdc++ (on some
compiler setups,
static constructors for non-pod data seems to drag in libstdc++ due to thread-
safety concerns).
Fixed a static constructor which led to this dependency on some compiler setups.
[@rokups]
- Backends: Win32: Support for #define NOGDI, won't try to call GetDeviceCaps().
(#3137, #2327)
- Backends: Win32: Fix _WIN32_WINNT < 0x0600 (MinGW defaults to 0x502 == Windows
2003). (#3183)
- Backends: SDL: Report a zero display-size when window is minimized, consistent
with other backends,
making more render/clipping code use an early out path.
- Backends: OpenGL: Fixed handling of GL 4.5+ glClipControl(GL_UPPER_LEFT) by
inverting the
projection matrix top and bottom values. (#3143, #3146) [@u3shit]
- Backends: OpenGL: On OSX, if unspecified by app, made default GLSL version 150.
(#3199) [@albertvaka]
- Backends: OpenGL: Fixed loader auto-detection to not interfere with ES2/ES3
defines. (#3246) [@funchal]
- Backends: Vulkan: Fixed error in if initial frame has no vertices. (#3177)
- Backends: Vulkan: Fixed edge case where render callbacks wouldn't be called if
the ImDrawData
structure didn't have any vertices. (#2697) [@kudaba]
- Backends: OSX: Added workaround to avoid fast mouse clicks. (#3261, #1992, #2525)
[@nburrus]
- Examples: GLFW+Vulkan, SDL+Vulkan: Fix for handling of minimized windows. (#3259)
- Examples: Apple: Fixed example_apple_metal and example_apple_opengl2 using
imgui_impl_osx.mm
not forwarding right and center mouse clicks. (#3260) [@nburrus]
-----------------------------------------------------------------------
VERSION 1.76 (Released 2020-04-12)
-----------------------------------------------------------------------
Other Changes:
- Drag and Drop, Nav: Disabling navigation arrow keys when drag and drop is active.
In the docking
branch pressing arrow keys while dragging a window from a tab could trigger an
assert. (#3025)
- BeginMenu: Using same ID multiple times appends content to a menu. (#1207)
[@rokups]
- BeginMenu: Fixed a bug where SetNextWindowXXX data before a BeginMenu() would not
be cleared
when the menu is not open. (#3030)
- InputText: Fixed password fields displaying ASCII spaces as blanks instead of
using the '*'
glyph. (#2149, #515)
- Selectable: Fixed honoring style.SelectableTextAlign with unspecified size.
(#2347, #2601)
- Selectable: Allow using ImGuiSelectableFlags_SpanAllColumns in other columns than
first. (#125)
- TreeNode: Made clicking on arrow with _OpenOnArrow toggle the open state on the
Mouse Down
event rather than the Mouse Down+Up sequence (this is rather standard behavior).
- ColorButton: Added ImGuiColorEditFlags_NoBorder flag to remove the border
normally enforced
by default for standalone ColorButton.
- Nav: Fixed interactions with ImGuiListClipper, so e.g. Home/End result would not
clip the
landing item on the landing frame. (#787)
- Nav: Fixed currently focused item from ever being clipped by ItemAdd(). (#787)
- Scrolling: Fixed scrolling centering API leading to non-integer scrolling values
and initial
cursor position. This would often get fixed after the fix item submission, but
using the
ImGuiListClipper as the first thing after Begin() could largely break size
calculations. (#3073)
- Added optional support for Unicode plane 1-16 (#2538, #2541, #2815) [@cloudwu,
@samhocevar]
- Compile-time enable with '#define IMGUI_USE_WCHAR32' in imconfig.h.
- More onsistent handling of unsupported code points (0xFFFD).
- Surrogate pairs are supported when submitting UTF-16 data via
io.AddInputCharacterUTF16(),
allowing for more complete CJK input.
- sizeof(ImWchar) goes from 2 to 4. IM_UNICODE_CODEPOINT_MAX goes from 0xFFFF to
0x10FFFF.
- Various structures such as ImFont, ImFontGlyphRangesBuilder will use more
memory, this
is currently not particularly efficient.
- Columns: undid the change in 1.75 were Columns()/BeginColumns() were preemptively
limited
to 64 columns with an assert. (#3037, #125)
- Window: Fixed a bug with child window inheriting ItemFlags from their parent when
the child
window also manipulate the ItemFlags stack. (#3024) [@Stanbroek]
- Font: Fixed non-ASCII space occasionally creating unnecessary empty looking
polygons.
- Misc: Added an explicit compile-time test for non-scoped IM_ASSERT() macros to
redirect users
to a solution rather than encourage people to add braces in the codebase.
- Misc: Added additional checks in EndFrame() to verify that io.KeyXXX values have
not been
tampered with between NewFrame() and EndFrame().
- Misc: Made default clipboard handlers for Win32 and OSX use a buffer inside the
main context
instead of a static buffer, so it can be freed properly on Shutdown. (#3110)
- Misc, Freetype: Fixed support for IMGUI_STB_RECT_PACK_FILENAME compile time
directive
in imgui_freetype.cpp (matching support in the regular code path). (#3062)
[@DonKult]
- Metrics: Made Tools section more prominent. Showing wire-frame mesh directly
hovering the ImDrawCmd
instead of requiring to open it. Added options to disable bounding box and mesh
display.
Added notes on inactive/gc-ed windows.
- Demo: Added black and white and color gradients to Demo>Examples>Custom
Rendering.
- CI: Added more tests on the continuous-integration server: extra warnings for
Clang/GCC, building
SDL+Metal example, building imgui_freetype.cpp, more compile-time imconfig.h
settings: disabling
obsolete functions, enabling 32-bit ImDrawIdx, enabling 32-bit ImWchar, disabling
demo. [@rokups]
- Backends: OpenGL3: Fixed version check mistakenly testing for GL 4.0+ instead of
3.2+ to enable
ImGuiBackendFlags_RendererHasVtxOffset, leaving 3.2 contexts without it. (#3119,
#2866) [@wolfpld]
- Backends: OpenGL3: Added include support for older glbinding 2.x loader. (#3061)
[@DonKult]
- Backends: Win32: Added ImGui_ImplWin32_EnableDpiAwareness(),
ImGui_ImplWin32_GetDpiScaleForHwnd(),
ImGui_ImplWin32_GetDpiScaleForMonitor() helpers functions (backported from the
docking branch).
Those functions makes it easier for example apps to support hi-dpi features
without setting up
a manifest.
- Backends: Win32: Calling AddInputCharacterUTF16() from WM_CHAR message handler in
order to support
high-plane surrogate pairs. (#2815) [@cloudwu, @samhocevar]
- Backends: SDL: Added ImGui_ImplSDL2_InitForMetal() for API consistency (even
though the function
currently does nothing).
- Backends: SDL: Fixed mapping for ImGuiKey_KeyPadEnter. (#3031) [@Davido71]
- Examples: Win32+DX12: Fixed resizing main window, enabled debug layer. (#3087,
#3115) [@sergeyn]
- Examples: SDL+DX11: Fixed resizing main window. (#3057) [@joeslay]
- Examples: Added SDL+Metal example application. (#3017) [@coding-jackalope]
-----------------------------------------------------------------------
VERSION 1.75 (Released 2020-02-10)
-----------------------------------------------------------------------
Decorated log and release notes:
https://github.com/ocornut/imgui/releases/tag/v1.75
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.74 (Released 2019-11-25)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- InputText, Nav: Fixed Home/End key broken when activating Keyboard Navigation.
(#787)
- InputText: Filter out ASCII 127 (DEL) emitted by low-level OSX layer, as we are
using the Key value. (#2578)
- Layout: Fixed a couple of subtle bounding box vertical positioning issues
relating to the handling of text
baseline alignment. The issue would generally manifest when laying out multiple
items on a same line,
with varying heights and text baseline offsets.
Some specific examples, e.g. a button with regular frame padding followed by
another item with a
multi-line label and no frame padding, such as: multi-line text, small button,
tree node item, etc.
The second item was correctly offset to match text baseline, and would
interact/display correctly,
but it wouldn't push the contents area boundary low enough.
- Scrollbar: Fixed an issue where scrollbars wouldn't display on the frame
following a frame where
all child window contents would be culled.
- ColorPicker: Fixed SV triangle gradient to block (broken in 1.73). (#2864,
#2711). [@lewa-j]
- TreeNode: Fixed combination of ImGuiTreeNodeFlags_SpanFullWidth and
ImGuiTreeNodeFlags_OpenOnArrow
incorrectly locating the arrow hit position to the left of the frame. (#2451,
#2438, #1897)
- TreeNode: The collapsing arrow accepts click even if modifier keys are being
held, facilitating
interactions with custom multi-selections patterns. (#2886, #1896, #1861)
- TreeNode: Added IsItemToggledOpen() to explicitly query if item was just
open/closed, facilitating
interactions with custom multi-selections patterns. (#1896, #1861)
- DragScalar, SliderScalar, InputScalar: Added p_ prefix to parameter that are
pointers to the data
to clarify how they are used, and more comments redirecting to the demo code.
(#2844)
- Error handling: Assert if user mistakenly calls End() instead of EndChild() on a
child window. (#1651)
- Misc: Optimized storage of window settings data (reducing allocation count).
- Misc: Windows: Do not use _wfopen() if IMGUI_DISABLE_WIN32_FUNCTIONS is defined.
(#2815)
- Misc: Windows: Disabled win32 function by default when building with UWP. (#2892,
#2895)
- Misc: Using static_assert() when using C++11, instead of our own construct (avoid
zealous Clang warnings).
- Misc: Added IMGUI_DISABLE_FILE_FUNCTIONS/IMGUI_DISABLE_DEFAULT_FILE_FUNCTION to
nullify or disable
default implementation of ImFileXXX functions linking with
fopen/fclose/fread/fwrite. (#2734)
- Docs: Improved and moved FAQ to docs/FAQ.md so it can be readable on the web.
[@ButternCream, @ocornut]
- Docs: Moved misc/fonts/README.txt to docs/FONTS.txt.
- Docs: Added permanent redirect from https://www.dearimgui.com/faq to FAQ page.
- Demo: Added simple item reordering demo in Widgets -> Drag and Drop section.
(#2823, #143) [@rokups]
- Metrics: Show wire-frame mesh and approximate surface area when hovering
ImDrawCmd. [@ShironekoBen]
- Metrics: Expose basic details of each window key/value state storage.
- Examples: DX12: Using IDXGIDebug1::ReportLiveObjects() when
DX12_ENABLE_DEBUG_LAYER is enabled.
- Examples: Emscripten: Removed BINARYEN_TRAP_MODE=clamp from Makefile which was
removed in Emscripten 1.39.0
but required prior to 1.39.0, making life easier for absolutely no-one. (#2877,
#2878) [@podsvirov]
- Backends: OpenGL2: Explicitly backup, setup and restore GL_TEXTURE_ENV to
increase compatibility with
legacy OpenGL applications. (#3000)
- Backends: OpenGL3: Fix building with pre-3.2 GL loaders which do not expose
glDrawElementsBaseVertex(),
using runtime GL version to decide if we set
ImGuiBackendFlags_RendererHasVtxOffset. (#2866, #2852) [@dpilawa]
- Backends: OSX: Fix using Backspace key. (#2578, #2817, #2818) [@DiligentGraphics]
- Backends: GLFW: Previously installed user callbacks are now restored on shutdown.
(#2836) [@malte-v]
- CI: Set up a bunch of continuous-integration tests using GitHub Actions. We now
compile many of the example
applications on Windows, Linux, MacOS, iOS, Emscripten. Removed Travis
integration. (#2865) [@rokups]
-----------------------------------------------------------------------
VERSION 1.73 (Released 2019-09-24)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.72b (Released 2019-07-31)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.72 (Released 2019-07-27)
-----------------------------------------------------------------------
Breaking Changes:
- Removed redirecting functions/enums names that were marked obsolete in 1.51 (June
2017):
- ImGuiCol_Column*, ImGuiSetCond_* enums.
- IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(),
IsMouseHoveringWindow() functions.
- IMGUI_ONCE_UPON_A_FRAME macro.
If you were still using the old names, read "API Breaking Changes" section of
imgui.cpp to find out
the new names or equivalent features.
- Renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection
typedef (will obsolete).
- Removed TreeAdvanceToLabelPos() which is rarely used and only does
SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()).
Kept redirection function (will obsolete). (#581, #324)
Other Changes:
- Scrolling: Made mouse-wheel scrolling lock the underlying window until the mouse
is moved again or
until a short delay expires (~2 seconds). This allow uninterrupted scroll even if
child windows are
passing under the mouse cursor. (#2604)
- Scrolling: Made it possible for mouse wheel and navigation-triggered scrolling to
override a call to
SetScrollX()/SetScrollY(), making it possible to use a simpler stateless pattern
for auto-scrolling:
// (Submit items..)
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) // If scrolling at the
already at the bottom..
ImGui::SetScrollHereY(1.0f); // ..make last item fully
visible
- Scrolling: Added SetScrollHereX(), SetScrollFromPosX() for completeness. (#1580)
[@kevreco]
- Scrolling: Mouse wheel scrolling while hovering a child window is automatically
forwarded to parent window
if ScrollMax is zero on the scrolling axis.
Also still the case if ImGuiWindowFlags_NoScrollWithMouse is set (not new), but
previously the forwarding
would be disabled if ImGuiWindowFlags_NoScrollbar was set on the child window,
which is not the case
any more. Forwarding can still be disabled by setting ImGuiWindowFlags_NoInputs.
(amend #1502, #1380).
- Window: Fixed InnerClipRect right-most coordinates using wrong padding setting
(introduced in 1.71).
- Window: Fixed old SetWindowFontScale() api value from not being inherited by
child window. Added
comments about the right way to scale your UI (load a font at the right side,
rebuild atlas, scale style).
- Scrollbar: Avoid overlapping the opposite side when window (often a child window)
is forcibly too small.
- Combo: Hide arrow when there's not enough space even for the square button.
- InputText: Testing for newly added ImGuiKey_KeyPadEnter key. (#2677, #2005)
[@amc522]
- Tabs: Fixed unfocused tab bar separator color (was using ImGuiCol_Tab, should use
ImGuiCol_TabUnfocusedActive).
- Columns: Fixed a regression from 1.71 where the right-side of the contents
rectangle within each column
would wrongly use a WindowPadding.x instead of ItemSpacing.x like it always did.
(#125, #2666)
- Columns: Made the right-most edge reaches up to the clipping rectangle (removing
half of WindowPadding.x
worth of asymmetrical/extraneous padding, note that there's another half that
conservatively has to offset
the right-most column, otherwise it's clipping width won't match the other
columns). (#125, #2666)
- Columns: Improved honoring alignment with various values of ItemSpacing.x and
WindowPadding.x. (#125, #2666)
- Columns: Made GetColumnOffset() and GetColumnWidth() behave when there's no
column set, consistently with
other column functions. (#2683)
- InputTextMultiline: Fixed vertical scrolling tracking glitch.
- Word-wrapping: Fixed overzealous word-wrapping when glyph edge lands exactly on
the limit. Because
of this, auto-fitting exactly unwrapped text would make it wrap. (fixes initial
1.15 commit, 78645a7d).
- Style: Attenuated default opacity of ImGuiCol_Separator in Classic and Light
styles.
- Style: Added style.ColorButtonPosition (left/right, defaults to ImGuiDir_Right)
to move the color button
of ColorEdit3/ColorEdit4 functions to either side of the inputs.
- IO: Added ImGuiKey_KeyPadEnter and support in various backends (previously
backends would need to
specifically redirect key-pad keys to their regular counterpart). This is a
temporary attenuating measure
until we actually refactor and add whole sets of keys into the ImGuiKey enum.
(#2677, #2005) [@amc522]
- Misc: Made Button(), ColorButton() not trigger an "edited" event leading to
IsItemDeactivatedAfterEdit()
returning true. This also effectively make ColorEdit4() not incorrect trigger
IsItemDeactivatedAfterEdit()
when clicking the color button to open the picker popup. (#1875)
- Misc: Added IMGUI_DISABLE_METRICS_WINDOW imconfig.h setting to explicitly compile
out ShowMetricsWindow().
- Debug Tools: Added "Metrics->Tools->Item Picker" tool which allow clicking on a
widget to break in the
debugger within the item code. The tool calls IM_DEBUG_BREAK() which can be
redefined in imconfig.h.
- ImDrawList: Fixed CloneOutput() helper crashing. (#1860) [@gviot]
- ImDrawList::ChannelsSplit(), ImDrawListSplitter: Fixed an issue with merging draw
commands between
channel 0 and 1. (#2624)
- ImDrawListSplitter: Fixed memory leak when using low-level split api (was not
affecting ImDrawList api,
also this type was added in 1.71 and not advertised as a public-facing feature).
- Fonts: binary_to_compressed_c.cpp: Display an error message if failing to
open/read the input font file.
- Demo: Log, Console: Using a simpler stateless pattern for auto-scrolling.
- Demo: Widgets: Showing how to use the format parameter of Slider/Drag functions
to display the name
of an enum value instead of the underlying integer value.
- Demo: Renamed the "Help" menu to "Tools" (more accurate).
- Backends: DX10/DX11: Backup, clear and restore Geometry Shader is any is bound
when calling renderer.
- Backends: DX11: Clear Hull Shader, Domain Shader, Compute Shader before
rendering. Not backing/restoring them.
- Backends: OSX: Disabled default native Mac clipboard copy/paste implementation in
core library (added in 1.71),
because it needs application to be linked with '-framework ApplicationServices'.
It can be explicitly
enabled back by using '#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS' in
imconfig.h. Re-added
equivalent using NSPasteboard api in the imgui_impl_osx.mm experimental backend.
(#2546)
- Backends: SDL2: Added ImGui_ImplSDL2_InitForD3D() function to make D3D support
more visible.
(#2482, #2632) [@josiahmanson]
- Examples: Added SDL2+DirectX11 example application. (#2632, #2612, #2482)
[@vincenthamm]
-----------------------------------------------------------------------
VERSION 1.71 (Released 2019-06-12)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.70 (Released 2019-05-06)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.69 (Released 2019-03-13)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.68 (Released 2019-02-19)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- Added .editorconfig file for text editors to standardize using spaces. (#2038)
[@kudaba]
- ImDrawData: Added FramebufferScale field (currently a copy of the value from
io.DisplayFramebufferScale).
This is to allow render functions being written without pulling any data from
ImGuiIO, allowing incoming
multi-viewport feature to behave on Retina display and with multiple displays.
If you are not using a custom backend, please update your render function code
ahead of time,
and use draw_data->FramebufferScale instead of io.DisplayFramebufferScale.
(#2306, #1676)
- Added IsItemActivated() as an extension to the
IsItemDeactivated/IsItemDeactivatedAfterEdit functions
which are useful to implement variety of undo patterns. (#820, #956, #1875)
- InputText: Fixed a bug where ESCAPE would not restore the initial value in all
situations. (#2321) [@relick]
- InputText: Fixed a bug where ESCAPE would be first captured by the Keyboard
Navigation code. (#2321, #787)
- InputText: Fixed redo buffer exhaustion handling (rare) which could corrupt the
undo character buffer. (#2333)
The way the redo/undo buffers work would have made it generally unnoticeable to
the user.
- Fixed range-version of PushID() and GetID() not honoring the ### operator to
restart from the seed value.
- Fixed CloseCurrentPopup() on a child-menu of a modal incorrectly closing the
modal. (#2308)
- Tabs: Added ImGuiTabBarFlags_TabListPopupButton flag to show a popup button on
manual tab bars. (#261, #351)
- Tabs: Removed ImGuiTabBarFlags_NoTabListPopupButton which was available in 1.67
but actually had zero use.
- Tabs: Fixed a minor clipping glitch when changing style's FramePadding from frame
to frame.
- Tabs: Fixed border (when enabled) so it is aligned correctly mid-pixel and
appears as bright as other borders.
- Style, Selectable: Added ImGuiStyle::SelectableTextAlign and
ImGuiStyleVar_SelectableTextAlign. (#2347) [@haldean]
- Menus: Tweaked horizontal overlap between parent and child menu (to help convey
relative depth)
from using style.ItemSpacing.x to style.ItemInnerSpacing.x, the later being
expected to be smaller. (#1086)
- RadioButton: Fixed label horizontal alignment to precisely match Checkbox().
- Window: When resizing from an edge, the border is more visible and better follow
the rounded corners.
- Window: Fixed initial width of collapsed windows not taking account of contents
width (broken in 1.67). (#2336, #176)
- Scrollbar: Fade out and disable interaction when too small, in order to
facilitate using the resize grab on very
small window, as well as reducing visual noise/overlap.
- ListBox: Better optimized when clipped / non-visible.
- InputTextMultiline: Better optimized when clipped / non-visible.
- Font: Fixed high-level ImGui::CalcTextSize() used by most widgets from
erroneously subtracting 1.0f*scale to
calculated text width. Among noticeable side-effects, it would make sequences of
repeated Text/SameLine calls
not align the same as a single call, and create mismatch between high-level size
calculation and those performed
with the lower-level ImDrawList api. (#792) [@SlNPacifist]
- Font: Fixed building atlas when specifying duplicate/overlapping ranges within a
same font. (#2353, #2233)
- ImDrawList: Fixed AddCircle(), AddCircleFilled() angle step being off, which was
visible when drawing a "circle"
with a small number of segments (e.g. an hexagon). (#2287) [@baktery]
- ImGuiTextBuffer: Added append() function (unformatted).
- ImFontAtlas: Added 0x2000-0x206F general punctuation range to default
ChineseFull/ChineseSimplifiedCommon ranges. (#2093)
- ImFontAtlas: FreeType: Added support for imgui allocators + custom FreeType only
SetAllocatorFunctions. (#2285) [@Vuhdo]
- ImFontAtlas: FreeType: Fixed using imgui_freetype.cpp in unity builds. (#2302)
- Demo: Fixed "Log" demo not initializing properly, leading to the first line not
showing before a Clear. (#2318) [@bluescan]
- Demo: Added "Auto-scroll" option in Log/Console demos. (#2300) [@nicolasnoble,
@ocornut]
- Examples: Metal, OpenGL2, OpenGL3, Vulkan: Fixed offsetting of clipping rectangle
with ImDrawData::DisplayPos != (0,0)
when the display frame-buffer scale scale is not (1,1). While this doesn't make a
difference when using master branch,
this is effectively fixing support for multi-viewport with Mac Retina Displays on
those examples. (#2306) [@rasky, @ocornut]
Also using ImDrawData::FramebufferScale instead of io.DisplayFramebufferScale.
- Examples: Clarified the use the ImDrawData::DisplayPos to offset clipping
rectangles.
- Examples: Win32: Using GetForegroundWindow()+IsChild() instead of
GetActiveWindow() to be compatible with windows created
in a different thread or parent. (#1951, #2087, #2156, #2232) [many people]
- Examples: SDL: Using the SDL_WINDOW_ALLOW_HIGHDPI flag. (#2306, #1676) [@rasky]
- Examples: Win32: Added support for XInput gamepads (if
ImGuiConfigFlags_NavEnableGamepad is enabled).
- Examples: Win32: Added support for mouse buttons 4 and 5 via WM_XBUTTON*
messages. (#2264)
- Examples: DirectX9: Explicitly disable fog (D3DRS_FOGENABLE) before drawing in
case user state has it set. (#2288, #2230)
- Examples: OpenGL2: Added #define GL_SILENCE_DEPRECATION to cope with newer XCode
warnings.
- Examples: OpenGL3: Using GLSL 4.10 shaders for any GLSL version over 410 (e.g.
430, 450). (#2329) [@BrutPitt]
-----------------------------------------------------------------------
VERSION 1.67 (Released 2019-01-14)
-----------------------------------------------------------------------
Breaking Changes:
- Made it illegal to call Begin("") with an empty string. This somehow half-worked
before but had various undesirable
side-effect because the window would have ID zero. In particular it is causing
problems in viewport/docking branches.
- Renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges and
removed its [Beta] mark.
The addition of new configuration options in the Docking branch is pushing for a
little reorganization of those names.
- Renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept
redirection typedef (will obsolete).
Other Changes:
- Added BETA api for Tab Bar/Tabs widgets: (#261, #351)
- Added BeginTabBar(), EndTabBar(), BeginTabItem(), EndTabItem(),
SetTabItemClosed() API.
- Added ImGuiTabBarFlags flags for BeginTabBar().
- Added ImGuiTabItemFlags flags for BeginTabItem().
- Style: Added ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive,
ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive colors.
- Demo: Added Layout->Tabs demo code.
- Demo: Added "Documents" example app showcasing possible use for tabs.
This feature was merged from the Docking branch in order to allow the use of
regular tabs in your code.
(It does not provide the docking/splitting/merging of windows available in the
Docking branch)
- Added ImGuiWindowFlags_UnsavedDocument window flag to append '*' to title without
altering the ID, as a convenience
to avoid using the ### operator. In the Docking branch this also has an effect on
tab closing behavior.
- Window, Focus, Popup: Fixed an issue where closing a popup by clicking another
window with the _NoMove flag would refocus
the parent window of the popup instead of the newly clicked window.
- Window: Contents size is preserved while a window collapsed. Fix auto-resizing
window losing their size for one frame when uncollapsed.
- Window: Contents size is preserved while a window contents is hidden (unless it
is hidden for resizing purpose).
- Window: Resizing windows from edge is now enabled by default
(io.ConfigWindowsResizeFromEdges=true). Note that
it only works _if_ the backend sets ImGuiBackendFlags_HasMouseCursors, which the
standard backends do.
- Window: Added io.ConfigWindowsMoveFromTitleBarOnly option. This is ignored by
window with no title bars (often popups).
This affects clamping window within the visible area: with this option enabled
title bars need to be visible. (#899)
- Window: Fixed using SetNextWindowPos() on a child window (which wasn't really
documented) position the cursor as expected
in the parent window, so there is no mismatch between the layout in parent and
the position of the child window.
- InputFloat: When using ImGuiInputTextFlags_ReadOnly the step buttons are
disabled. (#2257)
- DragFloat: Fixed broken mouse direction change with power!=1.0. (#2174, #2206)
[@Joshhua5]
- Nav: Fixed an keyboard issue where holding Activate/Space for longer than two
frames on a button would unnecessary
keep the focus on the parent window, which could steal it from newly appearing
windows. (#787)
- Nav: Fixed animated window titles from being updated when displayed in the
CTRL+Tab list. (#787)
- Error recovery: Extraneous/undesired calls to End() are now being caught by an
assert in the End() function closer
to the user call site (instead of being reported in EndFrame). Past the assert,
they don't lead to crashes any more. (#1651)
Missing calls to End(), past the assert, should not lead to crashes or to the
fallback Debug window appearing on screen.
Those changes makes it easier to integrate dear imgui with a scripting language
allowing, given asserts are redirected
into e.g. an error log and stopping the script execution.
- ImFontAtlas: Stb and FreeType: Atlas width is now properly based on total surface
rather than glyph count (unless overridden with TexDesiredWidth).
- ImFontAtlas: Stb and FreeType: Fixed atlas builder so missing glyphs won't
influence the atlas texture width. (#2233)
- ImFontAtlas: Stb and FreeType: Fixed atlas builder so duplicate glyphs (when
merging fonts) won't be included in the rasterized atlas.
- ImFontAtlas: FreeType: Fixed abnormally high atlas height.
- ImFontAtlas: FreeType: Fixed support for any values of TexGlyphPadding (not just
only 1).
- ImDrawList: Optimized some of the functions for performance of debug builds where
non-inline function call cost are non-negligible.
(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.)
- IO: Added BackendPlatformUserData, BackendRendererUserData,
BackendLanguageUserData void* for storage use by backends.
- IO: Renamed InputCharacters[], marked internal as was always intended. Please
don't access directly, and use AddInputCharacter() instead!
- IO: AddInputCharacter() goes into a queue which can receive as many characters as
needed during the frame. This is useful
for automation to not have an upper limit on typing speed. Will later transition
key/mouse to use the event queue later.
- Style: Tweaked default value of style.DisplayWindowPadding from (20,20) to
(19,19) so the default style as a value
which is the same as the title bar height.
- Demo: "Simple Layout" and "Style Editor" are now using tabs.
- Demo: Added a few more things under "Child windows" (changing ImGuiCol_ChildBg,
positioning child, using IsItemHovered after a child).
- Examples: DirectX10/11/12: Made imgui_impl_dx10/dx11/dx12.cpp link
d3dcompiler.lib from the .cpp file to ease integration.
- Examples: Allegro 5: Properly destroy globals on shutdown to allow for restart.
(#2262) [@DomRe]
-----------------------------------------------------------------------
VERSION 1.66b (Released 2018-12-01)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.66 (Released 2018-11-22)
-----------------------------------------------------------------------
Breaking Changes:
-----------------------------------------------------------------------
VERSION 1.65 (Released 2018-09-06)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- This is a minor release following the 1.64 refactor, with a little more shuffling
of code.
- Clarified and improved the source code sectioning in all files (easier to search
or browse sections).
- Nav: Removed the [Beta] tag from various descriptions of the gamepad/keyboard
navigation system.
Although it is not perfect and will keep being improved, it is fairly functional
and used by many. (#787)
- Fixed a build issue with non-Cygwin GCC under Windows.
- Demo: Added a "Configuration" block to make io.ConfigFlags/io.BackendFlags more
prominent.
- Examples: OpenGL3+SDL2: Fixed error condition when using the GLAD loader. (#2059,
#2002) [@jiri]
-----------------------------------------------------------------------
VERSION 1.64 (Released 2018-08-31)
-----------------------------------------------------------------------
Changes:
-----------------------------------------------------------------------
VERSION 1.63 (Released 2018-08-29)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.62 (Released 2018-06-22)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- Examples backends have been refactored to separate the platform code (e.g. Win32,
Glfw, SDL2) from the renderer code (e.g. DirectX11, OpenGL3, Vulkan).
The "Platform" backends are in charge of: mouse/keyboard/gamepad inputs, cursor
shape, timing, etc.
The "Renderer" backends are in charge of: creating the main font texture,
rendering imgui draw data.
before: imgui_impl_dx11.cpp --> after: imgui_impl_win32.cpp +
imgui_impl_dx11.cpp
before: imgui_impl_dx12.cpp --> after: imgui_impl_win32.cpp +
imgui_impl_dx12.cpp
before: imgui_impl_glfw_gl3.cpp --> after: imgui_impl_glfw.cpp +
imgui_impl_opengl2.cpp
before: imgui_impl_glfw_vulkan.cpp --> after: imgui_impl_glfw.cpp +
imgui_impl_vulkan.cpp
before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp +
imgui_impl_opengl2.cpp
before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp +
imgui_impl_opengl3.cpp etc.
- The idea is what we can now easily combine and maintain backends and reduce
code redundancy. Individual files are
smaller and more reusable. Integration of imgui into a new/custom engine may
also be easier as there is less overlap
between "windowing / inputs" and "rendering" code, so you may study or grab one
half of the code and not the other.
- This change was motivated by the fact that adding support for the upcoming
multi-viewport feature requires more work
from the Platform and Renderer backends, and the amount of redundancy across
files was becoming too difficult to
maintain. If you use default backends, you'll benefit from an easy update path
to support multi-viewports later
(for future ImGui 1.7x).
- This is not strictly a breaking change if you keep your old backends, but when
you'll want to fully update your backends,
expect to have to reshuffle a few things.
- Each example still has its own main.cpp which you may refer you to understand
how to initialize and glue everything together.
- Some frameworks (such as the Allegro, Marmalade) handle both the "platform" and
"rendering" part, and your custom engine may as well.
- Read examples/README.txt for details.
- Added IsItemDeactivated() to query if the last item was active previously and
isn't anymore. Useful for Undo/Redo patterns. (#820, #956, #1875)
- Added IsItemDeactivatedAfterChange() [*EDIT* renamed to
IsItemDeactivatedAfterEdit() in 1.63] if the last item was active previously,
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
holding return on the same value). (#820, #956, #1875)
- Nav: Added support for PageUp/PageDown (explorer-style: first aim at bottom/top
most item, when scroll a page worth of contents). (#787)
- Nav: To keep the navigated item in view we also attempt to scroll the parent
window as well as the current window. (#787)
- ColorEdit3, ColorEdit4, ColorButton: Added ImGuiColorEditFlags_NoDragDrop flag to
disable ColorEditX as drag target and ColorButton as drag source. (#1826)
- BeginDragDropSource(): Offset tooltip position so it is off the mouse cursor, but
also closer to it than regular tooltips,
and not clamped by viewport. (#1739)
- BeginDragDropTarget(): Added ImGuiDragDropFlags_AcceptNoPreviewTooltip flag to
request hiding the drag source tooltip
from the target site. (#143)
- BeginCombo(), BeginMainMenuBar(), BeginChildFrame(): Temporary style modification
are restored at the end of BeginXXX
instead of EndXXX, to not affect tooltips and child windows.
- Popup: Improved handling of (erroneously) repeating calls to OpenPopup() to not
close the popup's child popups. (#1497, #1533, #1865).
- InputTextMultiline(): Fixed double navigation highlight when scrollbar is active.
(#787)
- InputText(): Fixed Undo corruption after pasting large amount of text (Redo will
still fail when undo buffers are exhausted,
but text won't be corrupted).
- SliderFloat(): When using keyboard/gamepad and a zero precision format string
(e.g. "%.0f"), always step in integer units. (#1866)
- ImFontConfig: Added GlyphMinAdvanceX/GlyphMaxAdvanceX settings useful to make a
font appears monospaced, particularly useful
for icon fonts. (#1869)
- ImFontAtlas: Added GetGlyphRangesChineseSimplifiedCommon() helper that returns a
list of ~2500 most common Simplified Chinese
characters. (#1859) [@JX-Master, @ocornut]
- Examples: OSX: Added imgui_impl_osx.mm backend to be used along with e.g.
imgui_impl_opengl2.cpp. (#281, #1870) [@pagghiu, @itamago, @ocornut]
- Examples: GLFW: Made it possible to Shutdown/Init the backend again (by resetting
the time storage properly). (#1827) [@ice1000]
- Examples: Win32: Fixed handling of mouse wheel messages to support sub-unit
scrolling messages (typically sent by track-pads). (#1874) [@zx64]
- Examples: SDL+Vulkan: Added SDL+Vulkan example.
- Examples: Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag.
Added clipboard support.
- Examples: Allegro5: Unindexing buffers ourselves as Allegro indexed drawing
primitives are buggy in the DirectX9 backend
(will be fixed in Allegro 5.2.5+).
- Examples: DirectX12: Moved the ID3D12GraphicsCommandList* parameter from
ImGui_ImplDX12_NewFrame() to ImGui_ImplDX12_RenderDrawData() which makes a lots
more sense. (#301)
- Examples: Vulkan: Reordered parameters ImGui_ImplVulkan_RenderDrawData() to be
consistent with other backends,
a good occasion since we refactored the code.
- Examples: FreeGLUT: Added FreeGLUT backends. Added FreeGLUT+OpenGL2 example.
(#801)
- Examples: The functions in imgui_impl_xxx.cpp are prefixed with IMGUI_IMPL_API
(which defaults to IMGUI_API) to facilitate
some uses. (#1888)
- Examples: Fixed backends to use ImGuiMouseCursor_COUNT instead of old name
ImGuiMouseCursor_Count_ so they can compile
with IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#1887)
- Misc: Updated stb_textedit from 1.09 + patches to 1.12 + minor patches.
- Internals: PushItemFlag() flags are inherited by BeginChild().
-----------------------------------------------------------------------
VERSION 1.61 (Released 2018-05-14)
-----------------------------------------------------------------------
Breaking Changes:
- DragInt(): The default compile-time format string has been changed from "%.0f" to
"%d", as we are not using integers internally
any more. If you used DragInt() with custom format strings, make sure you change
them to use %d or an integer-compatible format.
To honor backward-compatibility, the DragInt() code will currently parse and
modify format strings to replace %*f with %d,
giving time to users to upgrade their code.
If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead
assert! You may run a reg-exp search on your
codebase for e.g. "DragInt.*%f" to you find them.
- InputFloat(): Obsoleted InputFloat() functions taking an optional "int
decimal_precision" in favor of an equivalent and more
flexible "const char* format", consistent with other functions. Kept redirection
functions (will obsolete).
- Misc: IM_DELETE() helper function added in 1.60 doesn't set the input pointer to
NULL, more consistent with standard
expectation and allows passing r-values.
Other Changes:
-----------------------------------------------------------------------
VERSION 1.60 (Released 2018-04-07)
-----------------------------------------------------------------------
The gamepad/keyboard navigation branch (which has been in the work since July 2016)
has been merged.
Gamepad/keyboard navigation is still marked as Beta and has to be enabled
explicitly.
Various internal refactoring have also been done, as part of the navigation work
and as part of the upcoming viewport/docking work.
Breaking Changes:
- Obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine
render function after ImGui::Render().
e.g. with example backends, call ImDrawData* draw_data = ImGui::GetDrawData();
ImGui_ImplXXXX_RenderDrawData(draw_data).
- Reorganized context handling to be more explicit: (#1599)
- YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND
CALL ImGui::DestroyContext() AT THE END.
- 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().
- you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas
between contexts. Otherwise CreateContext() will create its own font atlas
instance.
- removed allocator parameters from CreateContext(), they are now setup with
SetAllocatorFunctions(), and shared by all contexts.
- removed the default global context and font atlas instance, which were
confusing for users of DLL reloading and users of multiple contexts.
- Renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_
to ImGuiMouseCursor_COUNT for consistency with other public enums.
- 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.
- Fonts: Changed ImFont::DisplayOffset.y to defaults to 0 instead of +1. Fixed
vertical rounding of Ascent/Descent to match TrueType renderer.
If you were adding or subtracting (not assigning) to ImFont::DisplayOffset check
if your fonts are correctly aligned vertically. (#1619)
- BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter
because it is not really usable in many situations at the moment.
- Obsoleted IsAnyWindowHovered() in favor of
IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will
obsolete).
- Obsoleted IsAnyWindowFocused() in favor of
IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will
obsolete).
- 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).
- Removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive,
ImGuiCol_CloseButtonHovered style colors as the closing cross uses regular button
colors now.
- Renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback,
ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData.
- 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).
- [EDITED] Window: BeginChild() with an explicit name doesn't include the hash
within the internal window name. (#1698)
This change was erroneously introduced, undoing the change done for #894, #713,
and not documented properly in the original
1.60 release Changelog. It was fixed on 2018-09-28 (1.66) and I wrote this
paragraph the same day.
Other Changes:
- 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.
- Navigation: merged in the gamepad/keyboard navigation (about a million changes!).
(#787, #323)
The initial focus was to support game controllers, but keyboard is becoming
increasingly and decently usable.
- To use Gamepad Navigation:
- Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable.
- Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the
io.NavInputs[] fields before calling NewFrame(). Read imgui.cpp for more details.
- See https://github.com/ocornut/imgui/issues/1599 for recommended gamepad
mapping or download PNG/PSD at http://goo.gl/9LgVZW
- See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. Read
imgui.cpp for more details.
- To use Keyboard Navigation:
- Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame()
will automatically
fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays.
- Basic controls: arrows to navigate, Alt to enter menus, Space to activate item,
Enter to edit text,
Escape to cancel/close, Ctrl-Tab to focus windows, etc.
- When keyboard navigation is active (io.NavActive +
ImGuiConfigFlags_NavEnableKeyboard),
the io.WantCaptureKeyboard flag will be set.
- For more advanced uses, you may want to read from io.NavActive or
io.NavVisible. Read imgui.cpp for more details.
- Navigation: SetItemDefaultFocus() sets the navigation position in addition to
scrolling. (#787)
- Navigation: Added IsItemFocused(), added IsAnyItemFocused(). (#787)
- Navigation: Added window flags: ImGuiWindowFlags_NoNav (==
ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus).
- Navigation: Style: Added ImGuiCol_NavHighlight, ImGuiCol_NavWindowingHighlight
colors. (#787)
- Navigation: TreeNode: Added ImGuiTreeNodeFlags_NavLeftJumpsBackHere flag to allow
Nav Left direction to jump back to parent tree node from any of its child. (#1079)
- Navigation: IO: Added io.ConfigFlags (input), io.NavActive (output),
io.NavVisible (output). (#787)
- Context: Removed the default global context and font atlas instances, which
caused various
problems to users of multiple contexts and DLL users. (#1565, #1599) YOU NOW NEED
TO CALL
ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL
ImGui::DestroyContext() AT THE END.
Existing apps will assert/crash without it.
- Context: Added SetAllocatorFunctions() to rewire memory allocators (as a
replacement to previous
parameters to CreateContext()). Allocators are shared by all contexts and imgui
helpers. (#1565, #586, #992, #1007, #1558)
- Context: You may pass a ImFontAtlas to CreateContext() to specify a font atlas to
share.
Shared font atlas are not owned by the context and not destroyed along with it.
(#1599)
- Context: Added IMGUI_DISABLE_DEFAULT_ALLOCATORS to disable linking with
malloc/free. (#1565, #586, #992, #1007, #1558)
- IO: Added io.ConfigFlags for user application to store settings for imgui and for
the backend:
- ImGuiConfigFlags_NavEnableKeyboard: Enable keyboard navigation.
- ImGuiConfigFlags_NavEnableGamepad: Enable gamepad navigation (provided
ImGuiBackendFlags_HasGamepad is also set by backend).
- ImGuiConfigFlags_NavEnableSetMousePos: Instruct navigation to move the mouse
cursor. May be useful on TV/console systems where moving a virtual mouse is
awkward.
- 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)
- ImGuiConfigFlags_NoMouse: Instruct imgui to clear mouse position/buttons in
NewFrame(). This allows ignoring the mouse information passed by the backend.
- ImGuiConfigFlags_IsSRGB, ImGuiConfigFlags_IsTouchScreen: Flags for general
application use.
- IO: Added io.BackendFlags for backend to store its capabilities (currently:
_HasGamepad,
_HasMouseCursors, _HasSetMousePos). This will be used more in the next version.
- IO: Added ImGuiKey_Insert, ImGuiKey_Space keys. Setup in all example backends.
(#1541)
- IO: Added Horizontal Mouse Wheel support for horizontal scrolling. (#1463)
[@tseeker]
- IO: Added IsAnyMouseDown() helper which is helpful for backends to handle mouse
capturing.
- Window: Clicking on a window with the ImGuiWIndowFlags_NoMove flags takes an
ActiveId so
we can't hover something else when dragging afterwards. (#1381, #1337)
- Window: IsWindowHovered(): Added ImGuiHoveredFlags_AnyWindow,
ImGuiFocusedFlags_AnyWindow flags
(See Breaking Changes). Added to demo. (#1382)
- Window: Added SetNextWindowBgAlpha() helper. Particularly helpful since the
legacy 5-parameters
version of Begin() has been marked as obsolete in 1.53. (#1567)
- Window: Fixed SetNextWindowContentSize() with 0.0f on Y axis (or
SetNextWindowContentWidth())
overwriting the contents size. Got broken on Dec 10 (1.53). (#1363)
- ArrowButton: Added ArrowButton() given a cardinal direction (e.g. ImGuiDir_Left).
- InputText: Added alternative clipboard shortcuts: Shift+Delete (cut), CTRL+Insert
(copy), Shift+Insert (paste). (#1541)
- InputText: Fixed losing Cursor X position when clicking outside on an item that's
submitted
after the InputText(). It was only noticeable when restoring focus
programmatically. (#1418, #1554)
- InputText: Added ImGuiInputTextFlags_CharsScientific flag to also allow 'e'/'E'
for input of values
using scientific notation. Automatically used by InputFloat.
- Style: Default style is now StyleColorsDark(), instead of the old
StyleColorsClassic(). (#707)
- Style: Enable window border by default. (#707)
- Style: Exposed ImGuiStyleVar_WindowTitleAlign, ImGuiStyleVar_ScrollbarSize,
ImGuiStyleVar_ScrollbarRounding,
ImGuiStyleVar_GrabRounding + added an assert to reduce accidental breakage.
(#1181)
- Style: Added style.MouseCursorScale help when using the software mouse cursor
facility. (#939).
- Style: Close button nows display a cross before hovering. Fixed cross positioning
being a little off. Uses button colors for highlight when hovering. (#707)
- Popup: OpenPopup() Always reopen existing pop-ups. (Removed imgui_internal.h's
OpenPopupEx() which was used for this.) (#1497, #1533).
- Popup: BeginPopupContextItem(), BeginPopupContextWindow(),
BeginPopupContextVoid(), OpenPopupOnItemClick() all react on mouse release instead
of mouse press. (~#439)
- Popup: Better handling of user mistakenly calling OpenPopup() every frame (with
the 'reopen_existing' option).
The error will now be more visible and easier to understand. (#1497)
- Popup: BeginPopup(): Exposed extra_flags parameter that are passed through to
Begin(). (#1533)
- Popup: BeginPopupModal: fixed the conditional test for SetNextWindowPos() which
was polling
the wrong window, which in practice made the test succeed all the time.
- Tooltip: BeginTooltip() sets ImGuiWindowFlags_NoInputs flag.
- Scrollbar: Fixed ScrollbarY enable test after ScrollbarX has been enabled being a
little
off (small regression from Nov 2017). (#1574)
- Scrollbar: Fixed ScrollbarX enable test subtracting WindowPadding.x (this has
been there
since the addition of horizontal scroll bar!).
- Columns: Clear offsets data when columns count changed. (#1525)
- Columns: Fixed a memory leak of ImGuiColumnsSet's Columns vector. (#1529)
[@unprompted]
- Columns: Fixed resizing a window very small breaking some columns positioning
(broken in 1.53).
- Columns: The available column extent takes consideration of the right-most
clipped pixel,
so the right-most column may look a little wider but will contain the same amount
of visible contents.
- MenuBar: Fixed menu bar pushing a clipping rect outside of its allocated bound
(usually unnoticeable).
- TreeNode: nodes with the ImGuiTreeNodeFlags_Leaf flag correctly disable highlight
when DragDrop is active. (#143, #581)
- Drag and Drop: Increased payload type string to 32 characters instead of 8.
(#143)
- Drag and Drop: TreeNode as drop target displays rectangle over full frame.
(#1597, #143)
- DragFloat: Fix/workaround for backends which do not preserve a valid mouse
position when dragged out of bounds. (#1559)
- InputFloat: Allow inputing value using scientific notation e.g. "1e+10".
- InputDouble: Added InputDouble() function. We use a format string instead of a
'decimal_precision'
parameter to also for "%e" and variants. (#1011)
- Slider, Combo: Use ImGuiCol_FrameBgHovered color when hovered. (#1456) [@stfx]
- Combo: BeginCombo(): Added ImGuiComboFlags_NoArrowButton to disable the arrow
button and
only display the wide value preview box.
- Combo: BeginCombo(): Added ImGuiComboFlags_NoPreview to disable the preview and
only
display a square arrow button.
- Combo: Arrow button isn't displayed over frame background so its blended color
matches other buttons. Left side of the button isn't rounded.
- PlotLines: plot a flat line if scale_min==scale_max. (#1621)
- Fonts: Changed DisplayOffset.y to defaults to 0 instead of +1. Fixed rounding of
Ascent/Descent
to match TrueType renderer. If you were adding or subtracting (not assigning) to
ImFont::DisplayOffset
check if your fonts are correctly aligned vertically. (#1619)
- Fonts: Updated stb_truetype from 1.14 to stb_truetype 1.19. (w/ include fix from
some platforms #1622)
- Fonts: Added optional FreeType rasterizer in misc/freetype. Moved from imgui_club
repo. (#618) [@Vuhdo, @mikesart, @ocornut]
- Fonts: Moved extra_fonts/ to misc/fonts/.
- ImFontAtlas: Fixed cfg.MergeMode not reusing existing glyphs if available (always
overwrote).
- ImFontAtlas: Handle stb_truetype stbtt_InitFont() and stbtt_PackBegin() possible
failures
more gracefully, GetTexDataAsRGBA32() won't crash during conversion. (#1527)
- ImFontAtlas: Moved mouse cursor data out of ImGuiContext, fix drawing them with
multiple contexts.
Also remove the last remaining undesirable dependency on ImGui in imgui_draw.cpp.
(#939)
- ImFontAtlas: Added ImFontAtlasFlags_NoPowerOfTwoHeight flag to disable padding
font height
to nearest power of two. (#1613)
- ImFontAtlas: Added ImFontAtlasFlags_NoMouseCursors flag to disable baking
software mouse cursors,
mostly to save texture memory on very low end hardware. (#1613)
- ImDrawList: Fixed AddRect() with anti-aliasing disabled (lower-right corner pixel
was often
missing, rounding looks a little better.) (#1646)
- ImDrawList: Added CloneOutput() helper to facilitate the cloning of ImDrawData or
ImDrawList for multi-threaded rendering.
- Misc: Functions passed to libc qsort are explicitly marked cdecl to support
compiling with
vectorcall as the default calling convention. (#1230, #1611) [@RandyGaul]
- Misc: ImVec2: added [] operator. This is becoming desirable for some code working
of either
axes independently. Better adding it sooner than later.
- Misc: NewFrame(): Added an assert to detect incorrect filling of the io.KeyMap[]
array earlier. (#1555)
- Misc: Added IM_OFFSETOF() helper in imgui.h (previously was in imgui_internal.h)
- Misc: Added IM_NEW(), IM_DELETE() helpers in imgui.h (previously were in
imgui_internal.h)
- Misc: Added obsolete redirection function GetItemsLineHeightWithSpacing() (which
redirects to GetFrameHeightWithSpacing()), as intended and stated in docs of 1.53.
- Misc: Added misc/natvis/imgui.natvis for visual studio debugger users to easily
visualize imgui internal types. Added to examples projects.
- Misc: Added IMGUI_USER_CONFIG to define a custom configuration filename. (#255,
#1573, #1144, #41)
- Misc: Added IMGUI_STB_TRUETYPE_FILENAME and IMGUI_STB_RECT_PACK_FILENAME compile
time directives to use another version of the stb_ files.
- Misc: Updated stb_rect_pack from 0.10 to 0.11 (minor changes).
(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.)
- Metrics: Added display of Columns state.
- Demo: Improved Selectable() examples. (#1528)
- Demo: Tweaked the Child demos, added a menu bar to the second child to test some
navigation functions.
- Demo: Console: Using ImGuiCol_Text to be more friendly to color changes.
- Demo: Using IM_COL32() instead of ImColor() in ImDrawList centric contexts.
Trying to phase out use of the ImColor helper whenever possible.
- Examples: Files in examples/ now include their own changelog so it is easier to
occasionally update your backends if needed.
- Examples: Using Dark theme by default. (#707). Tweaked demo code.
- Examples: Added support for horizontal mouse wheel for API that allows it.
(#1463) [@tseeker]
- Examples: All examples now setup the io.BackendFlags to signify they can honor
mouse cursors, gamepad, etc.
- Examples: DirectX10: Fixed erroneous call to io.Fonts->ClearInputData() +
ClearTexData() that
was left in DX10 example but removed in 1.47 (Nov 2015) in every other backends.
(#1733)
- Examples: DirectX12: Added DirectX 12 example. (#301) [@jdm3]
- Examples: OpenGL3+GLFW,SDL: Changed GLSL shader version from 330 to 150. (#1466,
#1504)
- Examples: OpenGL3+GLFW,SDL: Added a way to override the GLSL version string in
the Init function. (#1466, #1504).
- Examples: OpenGL3+GLFW,SDL: Creating VAO in the render function so it can be more
easily used by multiple shared OpenGL contexts. (#1217)
- Examples: OpenGL3+GLFW: Using 3.2 context instead of 3.3. (#1466)
- Examples: OpenGL: Setting up glPixelStorei() explicitly before uploading texture.
- Examples: OpenGL: Calls to glPolygonMode() are casting parameters as GLEnum to
not fail with more strict backends. (#1628) [@ilia-glushchenko]
- Examples: Win32 (DirectX9,10,11,12): Added support for mouse cursor shapes.
(#1495)
- 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]
- 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)
- Examples: GLFW: Added support for mouse cursor shapes (the diagonal resize
cursors are unfortunately not supported by GLFW at the moment. (#1495)
- 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]
- Examples: SDL: Added support for mouse cursor shapes. (#1626) [@olls]
- Examples: SDL: Using SDL_CaptureMouse() to retrieve coordinates outside of client
area when dragging
(SDL 2.0.4+ only, otherwise using SDL_WINDOW_INPUT_FOCUS instead of previously
SDL_WINDOW_MOUSE_FOCUS). (#1559)
- 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.
- Examples: SDL: Using SDL_GetPerformanceCounter() / SDL_GetPerformanceFrequency()
to handle frame-rate over 1000 FPS properly. (#996)
- Examples: SDL: Using scan-code exclusively instead of a confusing mixture of
scan-codes and key-codes.
- Examples: SDL: Visual Studio: Added .vcxproj file. Using %SDL2_DIR% in the
default .vcxproj
and build files instead of %SDL_DIR%, the earlier being more standard.
- Examples: Vulkan: Visual Studio: Added .vcxproj file.
- Examples: Apple: Fixed filenames in OSX xcode project. Various other Mac friendly
fixes. [@gerryhernandez etc.]
- Examples: Visual Studio: Disabled extraneous function-level check in Release
build.
- Various fixes, tweaks, internal refactoring, optimizations, comments.
-----------------------------------------------------------------------
VERSION 1.53 (Released 2017-12-25)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.52 (2017-10-27)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.51 (2017-08-24)
-----------------------------------------------------------------------
Breaking Changes:
Work on dear imgui has been gradually resuming. It means that fixes and new
features should be tackled at
a faster rate than last year. However, in order to move forward with the library
and get rid of some cruft,
I have taken the liberty to be a little bit more aggressive than usual with API
breaking changes.
Read the details below and search for those names in your code! In the grand scheme
of things,
those changes are small and should not affect everyone, but this is technically our
most aggressive
release so far in term of API breakage.
If you want to be extra forward-facing, you can enable `#define
IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in
your imconfig.h to disable the obsolete names/redirection.
- Renamed `IsItemHoveredRect()` to `IsItemRectHovered()`. Kept inline redirection
function (will obsolete).
- Renamed `IsMouseHoveringWindow()` to `IsWindowRectHovered()` for consistency.
Kept inline redirection function (will obsolete).
- Renamed `IsMouseHoveringAnyWindow()` to `IsAnyWindowHovered()` for consistency.
Kept inline redirection function (will obsolete).
- Renamed `ImGuiCol_Columns***` enums to `ImGuiCol_Separator***`. Kept redirection
enums (will obsolete).
- Renamed `ImGuiSetCond***` types and enums to `ImGuiCond***`. Kept redirection
enums (will obsolete).
- Renamed `GetStyleColName()` to `GetStyleColorName()` for consistency. Unlikely to
be used by end-user!
- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload, which _might_ cause an
"ambiguous call"
compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or
ImVec4 explicitly to fix.
- Marked the weird `IMGUI_ONCE_UPON_A_FRAME` helper macro as obsolete. Prefer using
the more explicit `ImGuiOnceUponAFrame`.
- Changed `ColorEdit4(const char* label, float col[4], bool show_alpha = true)`
signature to
`ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)`,
where flags 0x01 is a safe no-op
(hello dodgy backward compatibility!). The new `ColorEdit4`/`ColorPicker4`
functions have lots of available flags!
Check and run the demo window, under "Color/Picker Widgets", to understand the
various new options.
- Changed signature of `ColorButton(ImVec4 col, bool small_height = false, bool
outline_border = true)`
to `ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0,
ImVec2 size = ImVec2(0,0))`.
This function was rarely used and was very dodgy (no explicit ID!).
- Changed `BeginPopupContextWindow(bool also_over_items=true, const char*
str_id=NULL, int mouse_button=1)`
signature to `(const char* str_id=NULL, int mouse_button=1, bool
also_over_items=true)`.
This is perhaps the most aggressive change in this update, but note that the
majority of users relied
on default parameters completely, so this will affect only a fraction of users of
this already rarely
used function.
- Removed `IsPosHoveringAnyWindow()`, which was partly broken and misleading. In
the vast majority of cases,
people using that function wanted to use `io.WantCaptureMouse` flag. Replaced
with IM_ASSERT + a comment
redirecting user to `io.WantCaptureMouse`. (#1237)
- Removed the old `ValueColor()` helpers, they are equivalent to calling
`Text(label)` + `SameLine()` + `ColorButton()`.
- Removed `ColorEditMode()` and `ImGuiColorEditMode` type in favor of
`ImGuiColorEditFlags` and
parameters to the various Color*() functions. The `SetColorEditOptions()`
function allows to
initialize default but the user can still change them with right-click context
menu.
Commenting out your old call to `ColorEditMode()` may just be fine!
Other Changes:
- Added flags to `ColorEdit3()`, `ColorEdit4()`. The color edit widget now has a
context-menu
and access to the color picker. (#346)
- Added flags to `ColorButton()`. (#346)
- Added `ColorPicker3()`, `ColorPicker4()`. (#346) [@r-lyeh, @nem0, @thennequin,
@dariomanesku and @ocornut]
The API along with those of the updated `ColorEdit4()` was designed so you may
use them in various
situation and hopefully compose your own picker if required. There are a bunch of
available flags,
check the Demo window and comment for `ImGuiColorEditFlags_`.
Some of the options it supports are: two color picker types (hue bar + sat/val
rectangle,
hue wheel + rotating sat/val triangle), display as u8 or float, lifting 0.0..1.0
constraints
(currently rgba only), context menus, alpha bar, background checkerboard
options, preview tooltip,
basic revert. For simple use, calling the existing `ColorEdit4()` function as you
did before
will be enough, as you can now open the color picker from there.
- Added `SetColorEditOptions()` to set default color options (e.g. if you want HSV
over RGBA,
float over u8, select a default picker mode etc. at startup time without a user
intervention.
Note that the user can still change options with the context menu unless disabled
with
`ImGuiColorFlags_NoOptions` or explicitly enforcing a display type/picker mode
etc.).
- Added user-facing `IsPopupOpen()` function. (#891) [@mkeeter]
- Added `GetColorU32(u32)` variant that perform the style alpha multiply without a
floating-point
round trip, and helps makes code more consistent when using ImDrawList APIs.
- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload.
- Added `GetStyleColorVec4(ImGuiCol idx)` which is equivalent to accessing
`ImGui::GetStyle().Colors[idx]`
(aka return the raw style color without alpha alteration).
- ImFontAtlas: Added `GlyphRangesBuilder` helper class, which makes it easier to
build custom glyph ranges
from your app/game localization data, or add into existing glyph ranges.
- ImFontAtlas: Added `TexGlyphPadding` option. (#1282) [@jadwallis]
- ImFontAtlas: Made it possible to override size of AddFontDefault() (even if it
isn't really recommended!).
- ImDrawList: Added `GetClipRectMin()`, `GetClipRectMax()` helpers.
- Fixed Ini saving crash if the ImGuiWindowFlags_NoSavedSettings gets removed from
a window after its creation (unlikely!). (#1000)
- Fixed `PushID()`/`PopID()` from marking parent window as Accessed (which
needlessly woke up the
root "Debug" window when used outside of a regular window). (#747)
- Fixed an assert when calling `CloseCurrentPopup()` twice in a row. [@nem0]
- Window size can be loaded from .ini data even if ImGuiWindowFlags_NoResize flag
is set. (#1048, #1056)
- Columns: Added `SetColumnWidth()`. (#913) [@ggtucker]
- Columns: Dragging a column preserve its width by default. (#913) [@ggtucker]
- Columns: Fixed first column appearing wider than others. (#1266)
- Columns: Fixed allocating space on the right-most side with the assumption of a
vertical scrollbar.
The space is only allocated when needed. (#125, #913, #893, #1138)
- Columns: Fixed the right-most column from registering its content width to the
parent window,
which led to various issues when using auto-resizing window or e.g. horizontal
scrolling. (#519, #125, #913)
- Columns: Refactored some of the columns code internally toward a better API (not
yet exposed) + minor optimizations. (#913) [@ggtucker, @ocornut]
- Popups: Most pop-ups windows can be moved by the user after appearing (if they
don't have explicit
positions provided by caller, or e.g. sub-menu pop-up). The previous restriction
was totally arbitrary. (#1252)
- Tooltip: `SetTooltip()` is expanded immediately into a window, honoring current
font / styling setting.
Add internal mechanism to override tooltips. (#862)
- PlotHistogram: bars are drawn based on zero-line, so negative values are going
under. (#828)
- Scrolling: Fixed return values of `GetScrollMaxX()`, `GetScrollMaxY()` when both
scrollbars were enabled.
Tweak demo to display more data. (#1271) [@degracode]
- Scrolling: Fixes for Vertical Scrollbar not automatically getting enabled if
enabled Horizontal Scrollbar straddle the vertical limit. (#1271, #246)
- Scrolling: `SetScrollHere()`, `SetScrollFromPosY()`: Fixed Y scroll aiming when
Horizontal Scrollbar is enabled. (#665).
- [Windows] Clipboard: Fixed not closing Win32 clipboard on early open failure
path. (#1264)
- Removed an unnecessary dependency on int64_t which failed on some older
compilers.
- Demo: Rearranged everything under Widgets in a more consistent way.
- Demo: Columns: Added Horizontal Scrolling demo. Tweaked another Columns demo.
(#519, #125, #913)
- Examples: OpenGL: Various makefiles for MINGW, Linux. (#1209, #1229, #1209)
[@fr500, @acda]
- Examples: Enabled vsync by default in example applications, so it doesn't confuse
people that
the sample run at 2000+ fps and waste an entire CPU. (#1213, #1151).
- Various other small fixes, tweaks, comments, optimizations.
-----------------------------------------------------------------------
VERSION 1.50 (2017-06-02)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.49 (2016-05-09)
-----------------------------------------------------------------------
Breaking Changes:
Other changes:
-----------------------------------------------------------------------
VERSION 1.48 (2016-04-09)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.47 (2015-12-25)
-----------------------------------------------------------------------
Changes:
- Rebranding "ImGui" -> "dear imgui" as an optional first name to reduce ambiguity
with IMGUI term. (#21)
- Added ProgressBar(). (#333)
- InputText(): Added ImGuiInputTextFlags_Password mode: hide display, disable
logging/copying to clipboard. (#237, #363, #374)
- Added GetColorU32() helper to retrieve color given enum with global alpha and
extra applied.
- Added ImGuiIO::ClearInputCharacters() superfluous helper.
- Fixed ImDrawList draw command merging bug where using PopClipRect() along with
PushTextureID()/PopTextureID() functions
would occasionally restore an incorrect clipping rectangle.
- Fixed ImDrawList draw command merging so
PushTextureID(XXX)/PopTextureID()/PushTextureID(XXX) sequence are now properly
merged.
- Fixed large popups positioning issues when their contents on either axis is
larger than DisplaySize,
and WindowPadding < DisplaySafeAreaPadding.
- Fixed border rendering in various situations when using non-pixel aligned glyphs.
- Fixed border rendering of windows to always contain the border within the window.
- Fixed Shutdown() leaking font atlas data if NewFrame() was never called. (#396,
#303)
- Fixed int>void\* warnings for 64-bit architectures with fancy warnings enabled.
- Renamed the dubious Color() helpers to ValueColor() - dangerously named, rarely
used and probably to be made obsolete.
- InputText(): Fixed and better handling of using keyboard while mouse button if
being held and dragging. (#429)
- InputText(): Replace OS IME (Input Method Editor) cursor on top-left when we are
not text editing.
- TreeNode(), CollapsingHeader(), Bullet(), BulletText(): various sizing and layout
fixes to better support laying out
multiple item with different height on same line. (#414, #282)
- Begin(): Initial window creation with ImGuiWindowFlags_NoBringToFrontOnFocus flag
pushes it at the front of global window list.
- BeginPopupContextWindow() and BeginPopupContextVoid() reopen window on subsequent
click. (#439)
- ColorEdit4(): Fixed broken tooltip on hovering the color button. (actually fixes
#373, #380)
- ImageButton(): uses FrameRounding up to a maximum of available framing size.
(#394)
- Columns: Fixed bug with indentation within columns, also making code a bit
shorter/faster. (#414, #125)
- Columns: Columns set with no implicit id include the columns count within the id
to reduce collisions. (#125)
- Columns: Removed one unnecessary allocation when columns are not used by a
window. (#125)
- ImFontAtlas: Tweaked GetGlyphRangesJapanese() so it is easier to modify.
- ImFontAtlas: Updated stb_rect_pack.h to 0.08.
- Metrics: Fixed computing ImDrawCmd bounding box when the draw buffer have been
unindexed.
- Demo: Added a simple "Property Editor" demo applet. (#125, #414)
- Demo: Fixed assertion in "Custom Rendering" demo when holding both mouse buttons.
(#393)
- Demo: Lots of extra comments, fixes.
- Demo: Tweaks to Style Editor.
- Examples: Not clearing input data/tex data in atlas (will be required for dynamic
atlas anyway).
- Examples: Added /Zi (output debug information) to Win32 batch files.
- Examples: Various fixes for resizing window and recreating graphic context.
- Examples: OpenGL2/3: Save/restore viewport as part of default render function.
(#392, #441).
- Examples; OpenGL3: Fixed gl3w.c for Linux when compiled with a C++ compiler.
(#411)
- Examples: DirectX: Removed assumption about Unicode build in example main.cpp.
(#399)
- Examples: DirectX10: Added DirectX10 example. (#424)
- Examples: DirectX11: Downgraded requirement from shader model 5.0 to 4.0. (#420)
- Examples: DirectX11: Removed Debug flag from graphics context. (#415)
- Examples: Added SDL+OpenGL3 example. (#356)
-----------------------------------------------------------------------
VERSION 1.46 (2015-10-18)
-----------------------------------------------------------------------
Changes:
-----------------------------------------------------------------------
VERSION 1.45 (2015-09-01)
-----------------------------------------------------------------------
Breaking Changes:
- With the addition of better horizontal scrolling primitives I had to make some
consistency fixes.
`GetCursorPos()` `SetCursorPos()` `GetContentRegionMax()`
`GetWindowContentRegionMin()` `GetWindowContentRegionMax()`
are now incorporating the scrolling amount. They were incorrectly not
incorporating this amount previously.
It PROBABLY shouldn't break anything, but that depends on how you used them.
Namely:
- If you always used SetCursorPos() with values relative to GetCursorPos() there
shouldn't be a problem.
However if you used absolute coordinates, note that SetCursorPosY(100.0f) will
put you at +100 from the
initial Y position (which may be scrolled out of the view), NOT at +100 from
the window top border.
Since there wasn't any official scrolling value on X axis (past just manually
moving the cursor) this can
only affect you if you used to set absolute coordinates on the Y axis which is
hopefully rare/unlikely,
and trivial to fix.
- The value of GetWindowContentRegionMax() isn't necessarily close to
GetWindowWidth() if horizontally scrolling.
Previously they were roughly interchangeable (roughly because the content
region exclude window padding).
Other Changes:
-----------------------------------------------------------------------
VERSION 1.44 (2015-08-08)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
- Internal data structure and several useful functions are now exposed in
imgui_internal.h. This should make it easier
and more natural to extend ImGui. However please note that none of the content in
imgui_internal.h is guaranteed
for forward-compatibility and code using those types/functions may occasionally
break. (#219)
- All sample code is in imgui_demo.cpp. Please keep this file in your project and
consider allowing your code to call
the ShowTestWindow() function as de-facto guide to ImGui features. It will be
stripped out by the linker when unused.
- Added GetContentRegionAvail() helper (basically GetContentRegionMax() -
GetCursorPos()).
- Added ImGuiWindowFlags_NoInputs for totally input-passthru window.
- Button(): honor negative size consistently with other widgets that do so (width -
100 to align the button 100 pixels
before the right-most position of the contents region).
- InputTextMultiline(): honor negative size consistently with other widgets that do
so.
- Combo() clamp popup to lower edge of visible area.
- InputInt(): value doesn't pass through an int>float>int casting chain, fix
handling lost of precision with "large" integer.
- InputInt() allow hexadecimal input (awkwardly via
ImGuiInputTextFlags_CharsHexadecimal but we will allow format
string in InputInt* later).
- Checkbox(), RadioButton(): fixed scaling of checkbox and radio button for the
filling of "active" visual.
- Columns: never assume horizontal space for scrollbar if NoScrollbar flag is
explicitly set.
- Slider: fixed using FramePadding between frame and grab visual. Scaling that
spacing would look odd.
- Fixed lower-right resize grip hit box not scaling along with its rendered size
(#287)
- ImDrawList: Fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (v1.43)
being off by an extra PI for no reason.
- ImDrawList: Added ImDrawList::AddText() shorthand helper.
- ImDrawList: Add missing support for anti-aliased thick-lines (#133, also ref
#288)
- ImFontAtlas: Added AddFontFromMemoryCompressedBase85TTF() to load base85 encoded
font string. Default font encoded
as base85 saves ~100 lines / 26 KB of source code. Added base85 output to the
binary_to_compressed_c tool.
- Build fix for MinGW (#276).
- Examples: OpenGL3: Fixed running on script core profiles for OSX (#277).
- Examples: OpenGL3: Simplified code using glBufferData for vertices as well (#277,
#278)
- Examples: DirectX11: Clear font texture view to ensure Release() doesn't get
called twice (#290).
- Updated to stb_truetype 1.07 (back to vanilla version as our minor changes are
now in master & fix unlikely assert
with odd fonts (#280)
-----------------------------------------------------------------------
VERSION 1.43 (2015-07-17)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.42 (2015-07-08)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.41 (2015-06-26)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
-----------------------------------------------------------------------
VERSION 1.40 (2015-05-31)
-----------------------------------------------------------------------
Breaking Changes:
- The BeginPopup() API (introduced in 1.37) had to be changed to allow for stacked
popups and menus.
Use OpenPopup() to toggle the opened state and BeginPopup() to append.**
- The third parameter of Button(), 'repeat_if_held' has been removed. While it's
been very rarely used,
some code will possibly break if you didn't rely on the default parameter.
Use PushButtonRepeat()/PopButtonRepeat() to configure repeat.
- Renamed IsRectClipped() to !IsRectVisible() for consistency (opposite return
value!).
Kept inline redirection function (will obsolete)
- Renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency.
Kept inline indirection function (will obsolete).
Other Changes:
- Menus: Added a menu system! Menus are typically populated with menu items and
sub-menus,
but you can add any sort of widgets in them (buttons, text inputs, sliders,
etc.). (#126)
- Menus: Added MenuItem() to append a menu item. Optional shortcut display, acts a
button & toggle
with checked/unchecked state, disabled mode. Menu items can be used in any
window.
- Menus: Added BeginMenu() to append a sub-menu. Note that you generally want to
add sub-menu inside a popup or a menu-bar.
They will work inside a normal window but it will be a bit unusual.
- Menus: Added BeginMenuBar() to append to window menu-bar (set
ImGuiWindowFlags_MenuBar to enable).
- Menus: Added BeginMainMenuBar() helper to append to a fullscreen main menu-bar.
- Popups: Support for stacked popups. Each popup level inhibit inputs to lower
levels. The menus system is based on this. (#126).
- Popups: Added BeginPopupContextItem(), BeginPopupContextWindow(),
BeginPopupContextVoid() to
create a popup window on mouse-click.
- Popups: Popups have borders by default (#197), attenuated border alpha in default
theme.
- Popups & Tooltip: Fit within display. Handling various
positioning/sizing/scrolling edge
cases. Better hysteresis when moving in corners. Tooltip always tries to stay
away from mouse-cursor.
- Added ImGuiStorage::GetVoidPtrRef() for manipulating stored void*.
- Added IsKeyDown() IsMouseDown() as convenience and for consistency with existing
functions
(instead of reading them from IO structures).
- Added Dummy() helper to advance layout by a given size. Unlike InvisibleButton()
this doesn't catch any click.
- Added configurable io.KeyRepeatDelay, io.KeyRepeatRate keyboard and mouse repeat
rate.
- Added PushButtonRepeat() / PopButtonRepeat() to enable hold-button-to-repeat
press on any button.
- Removed the third 'repeat' parameter of Button().
- Added IsAnyItemHovered() helper.
- Added GetItemsLineHeightWithSpacing() helper.
- Added ImGuiListClipper helper for clipping large list of evenly sized items, to
avoid using CalcListClipping() directly.
- Separator: within group start on group horizontal offset. (#205)
- InputText: Fixed incorrect edit state after text buffer is appended to by user
via the callback. (#206)
- InputText: CTRL+letter-key shortcuts (e.g. CTRL+C/V/X) makes sure only CTRL is
pressed. (#214)
- InputText: Fixed cursor generating a zero-width wire-frame rectangle turning into
a division by zero (would go unnoticed
unless you trapped exceptions).
- InputFloatN/InputIntN: Flags parameter added to match scalar versions. (#218)
- Selectable: Horizontal filling not declared to ItemSize() so
Selectable(),SameLine() works and we can better auto-fit the window.
- Selectable: Handling text baseline alignment for line that aren't of text height.
- Combo: Empty label doesn't add ItemInnerSpacing alignment, matching other
widgets.
- EndGroup: Carries the text base offset from the last line of the group (sort of
incorrect but better than nothing,
should use the first line of the group, will implement in the future).
- Columns: distinguish columns-set ID from other widgets as a convenience, added
asserts and sailors.
- ListBox: ListBox() function only use public API to encourage creating custom
versions. ListBoxHeader() can return false.
- ListBox: Uses ImGuiListClipper and assume items of matching height, so large
lists can be handled.
- Plot: overlay label clipped within frame when not fitting.
- Window: Added ImGuiSetCond_Appearing to test the hidden->visible transition in
SetWindow***/SetNextWindow*** functions.
- Window: Auto-fitting cancel out one worth of vertical spacing for vertical
symmetry (like what group and tooltip do).
- Window: Default item width for auto-resizing windows expressed as a factor of
font height, scales better with different font.
- Window: Fixed auto-fit calculation mismatch of whether a scrollbar will be added
by maximum height
clamping. Also honor NoScrollBar in the case of height clamping, not adding extra
horizontal space.
- Window: Hovering require to hover same child window. Reverted 860cf57 (December
3). Might break something if you have
child overlapping items in parent window.
- Window: Fixed appending multiple times to an existing child via multiple
BeginChild/EndChild calls to same child name.
Allows a simple form of out-of-order appending.
- Window: Fixed auto-filling child window using WindowMinSize at their minimum
size, irrelevant.
- Metrics: Added io.MetricsActiveWindows counter. (#213.
- Metrics: Added io.MetricsAllocs counter (number of active memory allocations).
- Metrics: ShowMetricsWindow() shows popups stack, allocations.
- Style: Added style.DisplayWindowPadding to prevent windows from reaching edges of
display
(similar to style.DisplaySafeAreaPadding which is still in effect and also affect
popups/tooltips).
- Style: Removed style.AutoFitPadding, using style.WindowPadding makes more sense
(the default values were already the same).
- Style: Added style.ScrollbarRounding. (#212)
- Style: Added ImGuiCol_TextDisabled for disabled text. Added TextDisabled()
helper.
- Style: Added style.WindowTitleAlign alignment options, to e.g. center title on
windows. (#222)
- ImVector: tweak growth strategy, matches vector from VS2010.
- ImFontAtlas: Added ClearFonts(), making the different clear funcs more explicit.
(#224)
- ImFontAtlas: Fixed appending new fonts without clearing existing fonts. Clearing
input data left to application. (#224)
- ImDrawList: Merge draw command better, cases of multiple Begin/End gets merged
properly.
- Store common stacked settings contiguously in memory to avoid heap allocation for
unused features, and reduce cache misses.
- Shutdown() tests for g.IO.Fonts not being NULL to ease use of multiple ImGui
contexts. (#207)
- Added IMGUI_DISABLE_OBSOLETE_FUNCTIONS define to disable the functions that are
meant to be removed.
- Examples: Added ? marks with tooltips next to various widgets. Added more
comments in the demo window.
- Examples: Added Menu-bar example.
- Examples: Added Simple Layout example.
- Examples: AutoResize demo doesn't use TextWrapped().
- Examples: Console example uses standard malloc/free, makes more sense as a copy &
pastable example.
- Examples: DirectX9/11: Fixed key mapping for down arrow.
- Examples: DirectX9/11: hide OS cursor if ImGui is drawing it. (#155)
- Examples: DirectX11: explicitly set rasterizer state.
- Examples: OpenGL3: Add conditional compilation of forward compat as required by
glfw on OSX. (#229)
- Fixed build with Visual Studio 2008 (possibly earlier versions as well).
- Other fixes, comments, tweaks.
-----------------------------------------------------------------------
VERSION 1.38 (2015-04-20)
-----------------------------------------------------------------------
Other Changes:
- Added DragFloat(), DragInt() widget, click and drag to adjust value with given
step.
Hold SHIFT/ALT to speed-up/slow-down. Double-click or CTRL+click to input text.
Passing min >= max makes the widget unbounded.
- Added DragFloat2(), DragFloat3(), DragFloat4(), DragInt2(), DragInt3(),
DragInt4() helper variants.
- Added ShowMetricsWindow() which is mainly useful to debug ImGui internals.
- Added IO.MetricsRenderVertices counter.
- Added ResetMouseDragDelta() for iterative dragging operations.
- Added ImFontAtlas::AddFontFromCompressedTTF() helper + binary_to_compressed_c.cpp
tool to
compress a file and create a .c array from it.
- Added PushId() GetId() variants that takes string range to avoid user making
unnecessary copies.
- Added IsItemVisible().
- Fixed IsRectClipped() incorrectly returning false when log is enabled.
- Slider: visual fix in the unlikely that style.GrabMinSize is larger than a
slider.
- SliderFloat: removed support for unbound slider (using FLT_MAX), caused various
inconsistency. Use InputFloat()/DragFloat().
- ColorEdit4: hide components prefix if there's no space for them.
- Combo: adding frame padding inside the combo box.
- Columns: mouse dragging uses absolute mouse coordinates.Fixed dragging left-most
column of an auto-resizable window. #125
- Selectable: render highlight into AutoFitPadding region but do not extend it,
fixing visual gap.
- Focus: Allow SetWindowFocus(NULL) to remove focus.
- Focus: Clicking on void (outside an ImGui windows) loses keyboard-focus so
application can use TAB.
- Popup: Fixed hovering over a popup's child (popups disable hovering on other
windows but not their childs) #197
- Fixed active widget not releasing its active state while being clipped.
- Fixed user-facing version of IsItemHovered() ignoring overlapping windows.
- Fixed label vertical alignment for InputInt2(), InputInt3(), InputInt4().
- Fixed new collapsed auto-resizing window with saved .ini settings not calculating
their initial width #176
- Fixed Begin() returning true on collapsed windows that had loaded settings #176
- Fixed style.DisplaySafeAreaPadding handling from being applied on window prior to
them auto-fitting.
- ShowTestWindow(): added examples for DragFloat, DragInt and only custom label
embedded in format strings.
- ShowTestWindow(): fixed "manipulating titles" example not doing the right thing,
broken in ff35d24
- Examples: OpenGL/GLFW: Fixed modifier key state setting in GLFW callbacks.
- Examples: OpenGL/GLFW: Added glBindTexture(0) in OpenGL fixed pipeline examples.
Save restore current program and texture in the OpenGL3 example.
- Examples: DirectX11: Removed unnecessary vertices conversion and CUSTOMVERTEX
types.
- Comments, fixes, tweaks.
-----------------------------------------------------------------------
VERSION 1.37 (2015-03-26)
-----------------------------------------------------------------------
Other Changes:
- Added a more convenient three parameters version of Begin() which covers the
common uses better.
- Added mouse cursor types handling (resize, move, text input cursors, etc.) that
user
can query with GetMouseCursor(). Added demo and instructions in ShowTestWindow().
- Added embedded mouse cursor data for MouseDrawCursor software cursor rendering,
for consoles/tablets/etc. (#155).
- Added first version of BeginPopup/EndPopup() helper API to create popup menus.
Popups automatically
lock their position to the mouse cursor when first appearing. They close
automatically when clicking
outside, and inhibit hovering items from other windows when active (to allow for
clicking outside). (#126)
- Added thickness parameter to ImDrawList::AddLine().
- Added ImDrawList::PushClipRectFullScreen() helper.
- Added style.DisplaySafeAreaPadding which was previously hard-coded.
(useful if you can't see the edges of your display, e.g. TV screens).
- Added CalcItemRectClosestPoint() helper.
- Added GetMouseDragDelta(), IsMouseDragging() helpers, given a mouse button and an
optional
"unlock" threshold. Added io.MouseDragThreshold setting. (#167)
- IsItemHovered() return false if another widget is active, aka we can't use what
we are hovering now.
- Added IsItemHoveredRect() if old behavior of IsItemHovered() is needed (e.g. for
implementing
the drop side of a drag'n drop operation).
- IsItemhovered() include space taken by label and behave consistently for all
widgets (#145)
- Auto-filling child window feed their content size to parent (#170)
- InputText() removed the odd ~ characters when clipping.
- InputText() update its width in case of resize initiated programmatically while
the widget is active.
- InputText() last active preserve scrolling position. Reset scroll if widget size
becomes bigger than contents.
- Selectable(): not specifying a width defaults to using max of label width and
remaining width.
- Selectable(const char*, bool) version has bool defaulting to false.
- Selectable(): fixed misusage of GetContentRegionMax().x leaking into auto-
fitting.
- Windows starting Collapsed runs initial auto-fit to retrieve a width for their
title bar (#175)
- Fixed new window from having an incorrect content size on their first frame, if
queried by user.
Fixed SetWindowPos/SetNextWindowPos having a side-effect size computation (#175)
- InputFloat(): fixed label alignment if total widget width forcefully bigger than
space available.
- Auto contents size aware of enforced vertical scrollbar if window is larger than
display size.
- Fixed new windows auto-fitting bigger than their .ini saved size.
This was a bug but it may be a desirable effect sometimes, may reconsider it.
- Fixed negative clipping rectangle when collapsing windows that could affect
manual
submission to ImDrawList and end-user rendering function if unhandled (#177)
- Fixed bounding measurement of empty groups (fix #162)
- Fixed assignment order in Begin() making auto-fit size effectively lag by one
frame. Also disabling
"clamp into view" while windows are auto-fitting so that auto-fitting window in
corners don't get pushed away.
- Fixed MouseClickedPos not updated on double-click update (#167)
- Fixed MouseDrawCursor feature submitting an empty trailing command in the draw
list.
Fixed unmerged draw calls for software mouse cursor.
- Fixed double-clicking on resize grip keeping the grip active if mouse button is
kept held.
- Bounding box tests exclude higher bound, so touching items (zero spacing) don't
report double hover when cursor is on edge.
- Setting io.LogFilename to NULL disable default LogToFile() (part of #175)
- Tweak stb_textedit integration to be lenient if another piece of code are leaking
their STB_TEXTEDIT definitions/symbols.
- Shutdown() freeing a few extra vectors so they don't have to freed by destruction
(#169)
- Examples: OpenGL2/3 examples automatically hide the OS mouse cursor if software
cursor rendering is used.
- ShowTestWindow: Added Widgets Alignment demo under Layout section
- ShowTestWindow: Added simple dragging widget example.
- ShowTestWindow: Graph has checkbox under the label, also demo using
BeginGroup/EndGroup().
- ShowTestWindow: Using SetNextWindowSize() in examples to encourage its use.
- Fixes, tweaks, comments.
-----------------------------------------------------------------------
VERSION 1.36 (2015-03-18)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.35 (2015-03-09)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.34 (2015-03-02)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.33b (2015-02-23)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.33 (2015-02-22)
-----------------------------------------------------------------------
Other Changes:
- InputText: having a InputText widget active doesn't steal mouse inputs from
clicking on
a button before losing focus (relate to #134)
- InputText: cursor/selection/undo stack persist when using other widgets and
getting back to same (#134).
- InputText: fix effective buffer size being smaller than necessary by 1 byte (so
if you give
3 bytes you can input 2 ascii chars + zero terminator, which is correct).
- Added IsAnyItemActive().
- Child window explicitly inherit collapse state from parent (so if user keeps
submitting items
even thought Begin has returned 'false' the child items will be clipped faster).
- BeginChild() return a bool the same way Begin() does. if true you can skip
submitting content.
- Removed extraneous (1,1) padding on child window (pointed out in #125)
- Columns: doesn't bail out when SkipItems is set (fix #136)
- Columns: Separator() within column correctly vertical offset all cells (pointed
out in #125)
- GetColumnOffset() / SetColumnOffset() handles padding values more correctly so
matching columns
can be lined up between a parent and a child window (cf. #125)
- Fix ImFont::BuildLookupTable() potential dangling pointer dereference (fix #131)
- Fix hovering of child window extending past their parent not taking account of
parent clipping
rectangle (fix #137)
- Sliders: value text is clipped inside the frame when resizing sliders to be
small.
- ImGuITextFilter::Draw() use regular width call rather than computing its own
arbitrary width.
- ImGuiTextFilter: can take a default filter string during construction.
-----------------------------------------------------------------------
VERSION 1.32 (2015-02-11)
-----------------------------------------------------------------------
Other Changes:
- Added Selectable() building block for various list boxes, combo boxes, etc.
- Added ListBox() (#129).
- Added ListBoxHeader(), ListBoxFooter() for customized list traversal and creating
multi-selection boxes.
- Fixed title bar text clipping issue (fix #128).
- InputText: added ImGuiInputTextFlags_CallbackCharFilter system for
filtering/replacement (#130).
Callback now passed an "EventFlag" parameter.
- InputText: Added ImGuiInputTextFlags_CharsUppercase and
ImGuiInputTextFlags_CharsNoBlank stock filters.
- PushItemWidth() can take negative value to right-align items.
- Optimisation: Columns offsets cached to avoid unnecessary binary search.
- Optimisation: Optimized CalcTextSize() function by about 25% (they are often the
bottleneck when
submitting thousands of clipped items).
- Added ImGuiCol_ChildWindowBg, ImGuiStyleVar_ChildWindowRounding for completeness
and flexibility.
- Added BeginChild() variant that takes an ImGuiID.
- Tweak default ImGuiCol_HeaderActive color to be less bright.
- Calculate framerate for the user (IO.Framerate), as a purely luxurious feature
and to reduce sample code size a little.
-----------------------------------------------------------------------
VERSION 1.31 (2015-02-08)
-----------------------------------------------------------------------
Other Changes:
-----------------------------------------------------------------------
VERSION 1.30 (2015-02-01)
-----------------------------------------------------------------------
Breaking Changes:
- Big update! Initialisation had to be changed. You don't need to load PNG data
anymore. Th
new system gives you uncompressed texture data.
- This sequence:
const void* png_data;
unsigned int png_size;
ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size);
// <Copy to GPU>
- Became:
unsigned char* pixels;
int width, height;
// io.Fonts->AddFontFromFileTTF("myfontfile.ttf", 24.0f); // Optionally load
another font
io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height);
// <Copy to GPU>
io.Fonts->TexID = (your_texture_identifier);
- PixelCenterOffset has been removed and isn't a necessary setting anymore.
Offset your
projection matrix by 0.5 if you have rendering problems.
Other Changes:
-----------------------------------------------------------------------
VERSION 1.20 (2015-01-07)
-----------------------------------------------------------------------
Decorated log and release notes:
https://github.com/ocornut/imgui/releases/tag/v1.20
- Fixed InputInt() InputFloat() label not declaring their width, breaking usage of
SameLine().
- Fixed hovering of combo boxes that extend beyond the parent window limits.
- Fixed text input of Unicode character in the 128-255 range.
- Fixed clipboard pasting into an InputText box not filtering the characters
according to contents semantic.
- Dragging outside area of a widget while it is active doesn't trigger hover on
other widgets.
- Activating widget bring parent window to front if not already.
- Checkbox and Radio buttons activate on click-release to be consistent with other
widgets and most UI.
- InputText() nows consume input characters immediately so they cannot be reused if
ImGui::Update is called again with a call to ImGui::Render(). (fixes #105)
- Examples: Console: added support for History callbacks + some cleanup.
- Various small optimisations.
- Cleanup and other fixes.
-----------------------------------------------------------------------
VERSION 1.19 (2014-12-30)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
VERSION 1.18 (2014-12-11)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
VERSION 1.17 (2014-12-03)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
VERSION 1.16b (2014-11-21)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
VERSION 1.16 (2014-11-21)
-----------------------------------------------------------------------
- General fixing of Columns API to allow filling a cell with multiple widgets
before switching to the next column.
- Added documentation INDEX to top of imgui.cpp.
- Fixed unaligned memory access for Emscripten compatibility.
- Various pedantic warning fixes (now testing with Clang).
- Added extra asserts to catch incorrect usage.
- PushStyleColor() / PushStyleVar() can be used outside the scope of a window
(namely to change
variables that are used within the Begin() call).
- PushTextWrapPos() defaults to 0.0 (right-end of current drawing region).
- Fixed compatibility with std::vector if user decide to #define ImVector.
- MouseWheel input is now normalized.
- Added IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT compile-time option to redefine the
vertex layout.
- Style editor: colors listed inside a scrolling region.
- Examples: tweaks and fixes.
-----------------------------------------------------------------------
VERSION 1.15 (2014-11-07)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
VERSION 1.14 (2014-10-25)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.13 (2014-09-30)
-----------------------------------------------------------------------
- Added support for UTF-8 for international text display and text edition/input (if
the font supports it).
- Added sample "M+ font" by Coji Morishita in extra_fonts/ to display Japanese
text.
- Added IO.ImeSetInputScreenPosFn callback for positioning OS IME input.
- Added IO.FontFallbackGlyph (default to '?').
- OpenGL example: added commented code to load custom font from file-system.
- OpenGL example: shared makefile for Linux and MacOSX.
----------------------------------------------------------------------
VERSION 1.12 (2014-09-24)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.11 (2014-09-10)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.10 (2014-08-31)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.09 (2014-08-28)
-----------------------------------------------------------------------
Breaking Changes:
- The behaviour of PixelCenterOffset changed! You may need to change your value if
you had set
it to non-default in your code and/or offset your projection matrix by 0.5
pixels. It is
likely that the default PixelCenterOffset value of 0.0 is now suitable unless
your rendering
uses some form of multisampling.
Other Changes:
- Various minor render tweaks and fixes. Better support for renderers using
multisampling.
- Moved IMGUI_FONT_TEX_UV_FOR_WHITE #define to a variable in the IO structure so
font can be changed at runtime.
- Minor other fixes, tweaks, comments.
----------------------------------------------------------------------
VERSION 1.08 (2014-08-25)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.07 (2014-08-18)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.06 (2014-08-15)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.05 (2014-08-14)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.04 (2014-08-13)
-----------------------------------------------------------------------
- Fixes (v1.03 introduced a bug with combo box & scissoring bug OpenGL sample).
- Added ImGui::InputFloat2() and ImGui::SliderFloat2() functions.
----------------------------------------------------------------------
VERSION 1.03 (2014-08-13)
-----------------------------------------------------------------------
- OpenGL example now use the fixed function-pipeline + cleanups, down by 150 lines.
- Added quick & dirty Makefiles for MacOSX and Linux.
- Simplified the DrawList system, ImDrawCmd include the clipping rectangle + some
optimisations.
- Fixed warnings for more stringent compilation settings.
----------------------------------------------------------------------
VERSION 1.02 (2014-08-12)
-----------------------------------------------------------------------
- Comments.
- Portability fixes.
- Fixing and tidying up sample applications.
- Checkboxes and radio buttons can be clicked on their labels as well as their
icon.
- Checkboxes and radio buttons display in a different color when hovered.
----------------------------------------------------------------------
VERSION 1.01 (2014-08-11)
-----------------------------------------------------------------------
----------------------------------------------------------------------
VERSION 1.00 (2014-08-10)
-----------------------------------------------------------------------
- Initial release.