Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
imgui-1.89.7-all.jar | 2023-09-01 | 36.2 MB | |
1.89.7 source code.tar.gz | 2023-09-01 | 17.5 MB | |
1.89.7 source code.zip | 2023-09-01 | 17.6 MB | |
README.md | 2023-09-01 | 8.4 kB | |
Totals: 4 Items | 71.3 MB | 0 |
v1.89.7
1.89.7: Summer release! 🌞
Reading the changelog is a good way to keep up to date with the things Dear ImGui has to offer, and maybe will give you ideas of some features that you've been ignoring until now!
Dear ImGui is funded by your contributions and needs them right now. If your company uses Dear ImGui, consider reaching out.
Changes
This is a followup to v1.89, v1.89.2, v1.89.3, v1.89.4, v1.89.5, v1.89.6. We are trying to make more frequent releases. Because: some people are relying on tagging and auto-generated bindings for other languages. And: it sets a beat and may encourage teams to update more frequently.
Omar has been stubbornly deferring tagging 1.90 for while because he wanted to include the range-select feature in it, but it's not done... But there are about 540 lines of changelog between 1.89 and 1.89.7.
Breaking Changes:
- Moved
io.hoverDelayShort/io.hoverDelayNormal
tostyle.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 initialization, we are exceptionally accepting the breakage. Majority of users are likely to not even notice. - Overlapping items: (https://github.com/ocornut/imgui/issues/6512, https://github.com/ocornut/imgui/issues/3909, https://github.com/ocornut/imgui/issues/517)
- Obsoleted
setItemAllowOverlap()
: it didn't and couldn't work reliably since 1.89 (2022-11-15), and relied on ambiguously defined design. UsesetNextItemAllowOverlap()
before item instead. - AddedsetNextItemAllowOverlap()
(called before an item) as a replacement for usingsetItemAllowOverlap()
(called after an item). This is roughly equivalent to using the legacysetItemAllowOverlap()
call (public API) +ButtonFlag,AllowOverlap
(internal). - Renamed 'TreeNodeFlag.AllowItemOverlapto
TreeNodeFlag,AllowOverlapfor consistency. - Renamed
SelectableFlag.AllowItemOverlapto
SelectableFlag.AllowOverlap` for consistency.
Other Changes:
- Tooltips/IsItemHovered() related changes:
- Tooltips: Added
setItemTooltip()
andbeginItemTooltip()
helper functions. - They are shortcuts for the common idiom of usingisItemHovered()
. -setItemTooltip("Hello") == if (isItemHovered(HoveredFlag.Tooltip)) setTooltip("Hello")
-beginItemTooltip() == isItemHovered(HoveredFlag.Tooltip) && beginTooltip()
The newly addedHoveredFlag.Tooltip
is meant to facilitate standardizing mouse hovering delays and rules for a given application. The previously common idiom of using 'if (isItemHovered()) setTooltip(...)' won't use delay or stationary test. - IsItemHovered: AddedHoveredFlag.Stationary
to require mouse being stationary when hovering a new item. Addedstyle.hoverStationaryDelay
(~0.15 sec). Once the mouse has been stationary once the state is preserved for same item. (https://github.com/ocornut/imgui/issues/1485) - IsItemHovered: AddedHoveredFlag.ForTooltip
as a shortcut for pulling flags fromstyle.hoverFlagsForTooltipMouse
orstyle.hoverFlagsForTooltipNav
depending on active inputs. (https://github.com/ocornut/imgui/issues/1485) -style.hoverFlagsForTooltipMouse
defaults toHoveredFlag.Stationary | HoveredFlag.DelayShort
. -style.hoverFlagsForTooltipNav
defaults toHoveredFlag.NoSharedDelay | HoveredFlag.DelayNormal
. - Tooltips: Tweak default offset for non-drag and drop tooltips so underlying items isn't covered as much. (Match offset for drag and drop tooltips) - IsItemHovered: Tweaked default value ofstyle.hoverDelayNormal
from 0.30 to 0.40, Tweaked default value ofstyle.hoverDelayShort
from 0.10 to 0.15. (https://github.com/ocornut/imgui/issues/1485) - IsItemHovered: AddedHoveredFlag.AllowWhenOverlappedByWindow
to ignore window-overlap only. OptionHoveredFlag.AllowWhenOverlapped
now expand into a combination of both.AllowWhenOverlappedByWindow + .AllowWhenOverlappedByItem
, matching old behavior. - Overlapping items: (https://github.com/ocornut/imgui/issues/6512, https://github.com/ocornut/imgui/issues/3909, https://github.com/ocornut/imgui/issues/517)
- Most item types should now work with
setNextItemAllowOverlap()
. (https://github.com/ocornut/imgui/issues/6512, https://github.com/ocornut/imgui/issues/3909, https://github.com/ocornut/imgui/issues/517) - Fixed first frame of an overlap highlighting underlying item if previous frame didn't hover anything. - IsItemHovered: Changed to return false when querying an item using AllowOverlap mode which is being overlapped. AddedHoveredFlag.AllowWhenOverlappedByItem
to opt-out. (https://github.com/ocornut/imgui/issues/6512, https://github.com/ocornut/imgui/issues/3909, https://github.com/ocornut/imgui/issues/517) - Selectable, TreeNode: When usingSelectableFlag.AllowOverlap/TreeNodeFlag.AllowOverlap
and holding item held, overlapping widgets won't appear as hovered. (https://github.com/ocornut/imgui/issues/6512, https://github.com/ocornut/imgui/issues/3909) - IsWindowHovered: Added support for
HoveredFlag.Stationary
. - IsWindowHovered, IsItemHovered: Assert when passed any unsupported flags.
- Tables: Fixed a regression in 1.89.6 leading to the first column of tables with either ScrollX or ScrollY flags from being impossible to resize. (https://github.com/ocornut/imgui/issues/6503)
- CollapsingHeader/TreeNode: Fixed text padding when using
.Framed+.Leaf
flags. (https://github.com/ocornut/imgui/issues/6549) - InputText: Fixed not returning true when buffer is cleared while using the
InputTextFlag.EscapeClearsAll
flag. (https://github.com/ocornut/imgui/issues/5688, https://github.com/ocornut/imgui/issues/2620) - InputText: Fixed a crash on deactivating a ReadOnly buffer. (https://github.com/ocornut/imgui/issues/6570, https://github.com/ocornut/imgui/issues/6292, https://github.com/ocornut/imgui/issues/4714)
- InputText:
InputTextCallbackData::insertChars
accept(null, null)
range, in order to conform to common idioms (e.g. passing .data(), .data() + .size() from a null string). (https://github.com/ocornut/imgui/issues/6565, https://github.com/ocornut/imgui/pull/6566, https://github.com/ocornut/imgui/issues/3615) - Combo: Made simple/legacy Combo() function not returns true when picking already selected item. This is consistent with other widgets. If you need something else, you can use BeginCombo(). (https://github.com/ocornut/imgui/issues/1182)
- Clipper: Rework inner logic to allow functioning with a zero-clear constructor. This is order to facilitate usage for language bindings (e.g cimgui or dear_binding) where user may not be calling a constructor manually. (https://github.com/ocornut/imgui/pull/5856)
- Drag and Drop: Apply default behavior of drag source not reporting itself as hovered at lower-level, so
drag
,slider
,input
, Plot widgets are fulfilling it. (Behavior doesn't apply whenDragDropFlag.SourceNoDisableHover
is set). - Modals: In the case of nested modal, made sure that focused or appearing windows are moved below the lowest blocking modal (rather than the highest one). (https://github.com/ocornut/imgui/issues/4317)
- Debug Tools: Added
io.configDebugIniSettings
option to save .ini data with extra comments. Currently mainly for inspecting Docking .ini data, but makes saving slower. - Demo: Added more developed Widgets->Tooltips section. (https://github.com/ocornut/imgui/issues/1485)
- Backends: OpenGL3: Fixed support for
glBindSampler()
backup/restore on ES3. (https://github.com/ocornut/imgui/pull/6375, https://github.com/ocornut/imgui/issues/6508) [@jsm174] - Backends: OpenGL3: Fixed erroneous use
glGetIntegerv(GL_CONTEXT_PROFILE_MASK)
on contexts lower than 3.2. (https://github.com/ocornut/imgui/issues/6539, https://github.com/ocornut/imgui/pull/6333) [@krumelmonster]Backends: GLFW: Accept
glfwGetTime()` not returning a monotonically increasing value. This seems to happens on some Windows setup when peripherals disconnect, and is likely to also happen on browser+Emscripten. Matches similar 1.89.4 fix in SDL backend. (https://github.com/ocornut/imgui/issues/6491)