ocornut
3ff8c466bf
Menus: fixed BeginMenuEx() icon/arrow baseline when using inside a line with an offset.
...
Amend 1f54665 .
2025-11-27 20:05:18 +01:00
ocornut
1f54665799
Menus: fixed MenuItem() label baseline when using inside a line with an offset.
...
Amend f8fae02270
2025-11-27 19:54:06 +01:00
ocornut
ae873b1e0d
Misc: rename extraneous parenthesizes from return statements.
2025-11-27 15:01:24 +01:00
ocornut
9c75ef5a61
Tables: clarify TableNextRow() row_height and adjust demo to make this clearer (demo height were arbitrary and therefore misleading).
2025-11-26 18:25:30 +01:00
ocornut
c36162fc6c
Internals: add SetContextName() helper. ( #9097 )
...
Amend 37c243b .
2025-11-26 17:29:37 +01:00
ocornut
75db81cf08
Backends: SDL_GPU3: select between metallib and MSL shaders based on availability. ( #9076 )
...
Amend fd887f5
2025-11-26 15:05:05 +01:00
ocornut
285e3042ba
Docs: tweaks. Add reference to imgui-module from main README. ( #9092 , #8868 )
2025-11-26 14:49:11 +01:00
ocornut
d981b33dd0
Textures: amend to please static analyzer.
2025-11-26 14:24:55 +01:00
ocornut
e768f91dc2
Textures: fixed displaying texture # in metrics/debugger.
2025-11-26 14:21:48 +01:00
ocornut
3fef0d553d
Textures: fixed a building issue when ImTextureID is defined as a struct.
...
+ Added CI for this case.
2025-11-26 14:21:48 +01:00
ocornut
3a45bae9dc
Backends: Vulkan: helper for creating a swapchain selects VkSwapchainCreateInfoKHR's compositeAlpha based on cap.supportedCompositeAlpha. ( #8784 )
2025-11-24 18:11:23 +01:00
ocornut
98636f4a23
Fonts: fixed handling of ImFontConfig::FontDataOwnedByAtlas = false which did erroneously make a copy of the font data. ( #9086 )
...
Amend 815168c7e
+ Added explicit casts for intent/clarity when passing to stb_truetype/freetype.
2025-11-24 15:58:01 +01:00
ocornut
5f82275ba1
Docs: updated 1.91.5 logs for missing info that GetKeyIndex() was removed at this date.
...
Amend 6f287dd16
2025-11-24 14:49:16 +01:00
ocornut
136d067eed
Scrollbar: fixed a codepath leading to a divide-by-zero. ( #9089 )
2025-11-24 14:27:03 +01:00
ocornut
324cea1f41
Version 1.92.6 WIP
2025-11-24 13:35:41 +01:00
ocornut
6d910d5487
Version 1.92.5
2025-11-20 17:49:52 +01:00
ocornut
4ab86e1d61
Nav: fixed scoring when using PageUp/PageDown from a focused item which is outside of visible boundaries. ( #9079 )
...
We only use ImGuiNavMoveFlags_AlsoScoreVisibleSet when starting point is visible.
2025-11-19 19:01:22 +01:00
ocornut
0faa0dba15
Drag and Drop: rework cancel drag and drop logic to be overridable. ( #9071 )
2025-11-19 18:26:44 +01:00
ocornut
db6b8e0fb3
Drag and Drop: handling of Escape after UpdateKeyboardInputs(). ( #9071 )
2025-11-19 18:26:43 +01:00
ocornut
1f16ca5e5c
Docs: update ShowUserGuide() + PR guidelines. ( #9071 )
2025-11-19 18:26:43 +01:00
ocornut
b4a3d423e0
Docs: amend BeginDisabled() comments. ( #9082 )
2025-11-19 17:06:44 +01:00
ocornut
23bd697f05
Drag and Drop: Pressing Escape while carrying a payload automatically cancel the active drag and drop. ( #9071 )
2025-11-18 19:18:10 +01:00
ocornut
37f9153105
Nav: improved/clarified behavior when requesting PageUp/PageDown from a focused item which is outside of visible boundaries. ( #9079 )
2025-11-18 18:59:06 +01:00
ocornut
81e01ddebe
Nav: reworked PageUp/PageDown to pick same-page top/bottom page based on inner rectangle rather than clipping rectangle.
2025-11-18 18:57:32 +01:00
ocornut
405c802607
Nav: shallow tweaks.
2025-11-18 18:22:36 +01:00
ocornut
91b5256c57
Clipper: fixed an issue when using up/down from an item outside of visible bound and using the clipper. ( #9079 )
2025-11-18 17:00:01 +01:00
ocornut
6ae32c696a
Backends: fixed misc zealous Clang warnings.
2025-11-18 16:34:35 +01:00
ocornut
9afc62d087
InputText: Fixed an assert when using ImGuiInputTextFlags_ReadOnly and making underlying contents shorter while text is selected. ( #9069 )
2025-11-18 16:20:51 +01:00
ocornut
c3835de38a
CI: fixes warning building example_null w/ msvc as DLL
2025-11-17 18:01:51 +01:00
ocornut
52caa2f38a
CI: fixes warning building example_null w/ msvc as DLL
2025-11-17 17:50:37 +01:00
ocornut
04af1a3917
CI: fixes warning building example_null w/ mingw 64-bit, as DLL
2025-11-17 17:43:09 +01:00
ocornut
e1f9b8b3a7
CI: fixes warning building example_null w/ mingw 64-bit, as DLL
2025-11-17 16:49:34 +01:00
ocornut
cfb48969af
Examples: CI: backtrack and make example_null embed backend: simpler for all sorts of quick build scripts.
2025-11-17 16:38:07 +01:00
ocornut
0cf5b93a0a
CI, Backends: fixes for example_null building. Add consistent IMGUI_IMPL_API in backend.
2025-11-17 16:18:12 +01:00
ocornut
d99baf332c
CI: fixes for example_null building.
2025-11-17 16:11:05 +01:00
ocornut
7e919a543c
Examples: fix example_null Makefile.
...
Amend b885382,eb19a77
2025-11-17 15:58:12 +01:00
ocornut
eb19a77848
Examples: fix example_null Makefile.
...
Amend b885382
2025-11-17 15:52:32 +01:00
ocornut
b885382a63
Backends: Null: added imgui_impl_null platform/renderer backend.
2025-11-17 15:28:03 +01:00
ocornut
9e15ebb402
Backends: GLFW: fixed last ImGui_ImplGlfw_Shutdown() call not immediately clearing the context map. ( #9075 , #8676 , #8239 , #8069 )
...
Amend/fix f633a6058
2025-11-17 13:38:17 +01:00
ocornut
f145b0cffd
Debug Tools: ID Stack Tool: refactor, extract data/code into ImGuiDebugItemPathQuery for reuse.
2025-11-13 18:32:43 +01:00
ocornut
c254db7637
Debug Tools: ID Stack Tool: store ResultsComplete and don't display incomplete paths.
2025-11-13 16:19:27 +01:00
ocornut
5a0c67c4b8
Debug Tools: ID Stack Tool: extracted code into a StackToolGetResultAsPath() function.
2025-11-13 16:15:00 +01:00
ocornut
ec6219752d
Fonts: calling ImFontAtlas::Clear() mid-frame without re-adding a font will lead to a more explicit crash. ( #9067 )
...
+ reformat Changelog.
2025-11-13 15:54:50 +01:00
ocornut
d246850787
Fonts: added comment about the classic AddFontFromMemoryTTF() issue. ( #9067 , #6916 , #6781 , #5330 , #4307 , #2042 , #2029 , #1734 , #1259 , #220 )
2025-11-13 15:42:19 +01:00
ocornut
e60e5bff63
Misc: standardized casing of keyboard mods in comments and demo ("CTRL" -> "Ctrl").
2025-11-13 15:24:03 +01:00
ocornut
873fe34b31
Debug Tools: ID Stack Tool: preserve first data type, so user of PushOverrideID() e.g. TreeNode() elements don't get demoted from _String to _ID.
2025-11-13 15:05:16 +01:00
ocornut
e3979c2098
Demo: removing absolute __FILE_ from being emitted by default. ( #9033 )
2025-11-13 14:23:25 +01:00
ocornut
68a44776bd
Misc: tweak conflicting id error tooltip to use a link.
...
Now that nested tooltips are not hiding each others.
2025-11-13 13:47:45 +01:00
ocornut
613cfaf0b4
Tooltips: made BeginTooltipEx() not hide nested tooltips.
...
It's not typically possible to nest tooltips since BeginTooltipEx() imply ImGuiWindowFlags_NoInputs + following mouse pos + most tooltips would be triggered on hover. But BeginErrorTooltip() bypass that.
2025-11-13 13:47:45 +01:00
ocornut
de917ebb95
Windows: move auto-fit block into braces for clarify. (no-op)
2025-11-11 21:48:17 +01:00
ocornut
501e0adcdb
Windows: CalcWindowAutoFitSize() remove child-specific hack added by 29439bdd27 and made obsolete by 7537ba2b4. ( #9060 , #1710 )
2025-11-11 21:47:15 +01:00
ocornut
a2544f9496
Windows: programmatic auto-sizing on a single axis also apply proper logic. ( #9060 )
2025-11-11 21:37:21 +01:00
ocornut
b51f6e073c
Windows: reorganize auto-fitting code blocks in Begin(), step 2.
...
Toward #9060
2025-11-11 21:15:43 +01:00
ocornut
52e9d94f93
Windows: reorganize auto-fitting code blocks in Begin(), aimed to have no side-effect, but..
...
..outer ImGuiWindowFlags_AlwaysAutoResize previously took priority for both axis. New logic per-axis.
Toward #9060
2025-11-11 20:03:31 +01:00
ocornut
fc262355ca
Windows: Fixed an issue where repeated calls to SetNextWindowSize() using 0.0f to auto-size would keep marking ini settings as dirty.
...
+ marking dirty on old io.FontAllowUserScaling Ctrl+Wheel
2025-11-11 19:47:48 +01:00
ocornut
7537ba2b44
Windows: fixed single-axis auto-sizing (via double-clicking a border) to take account of remaining scrollbar on the other axis. ( #9060 )
...
Potentially now should apply same logic to the other resizing path also described in #9060
2025-11-10 19:36:16 +01:00
ocornut
86daa8930e
Backends, Examples: WebGPU: simplified ifndef ( #8381 )
2025-11-07 13:24:16 +01:00
ocornut
635eb1d8e9
Added .tmp files.
2025-11-06 18:07:18 +01:00
ocornut
bd0e2036e0
Drag and Drop: added ImGuiDragDropFlags_AcceptDrawAsHovered. ( #8632 )
...
Not calling SetHoveredId() in that path, does not seem necessary.
2025-11-06 18:07:18 +01:00
ocornut
b0d3c3a674
Drag and Drop: prev/curr storage for DragDropAcceptFlags. ImGuiDragDropFlags_AcceptNoPreviewTooltip test uses DragDropAcceptFlagsPrev for consistency. ( #143 )
...
I don't think this would have materialized as a visible bug.
2025-11-06 17:59:01 +01:00
ocornut
dacd080639
Docs: added link to imgui-module. (#8868(
2025-11-06 17:30:00 +01:00
ocornut
8e2e87d638
(Breaking) Commented out legacy SetItemAllowOverlap() obsoleted in 1.89.7: this never worked right. Use SetNextItemAllowOverlap() _before_ item instead.
2025-11-06 16:29:19 +01:00
ocornut
e389502ffb
Amends comments referring to 1.92.X to refer to 1.92.0. FontAllowUserScaling not marked obsolete anymore.
2025-11-06 16:28:59 +01:00
ocornut
1c3a60047c
(Breaking) IO: commented out legacy io.ClearInputCharacters() obsoleted in 1.89.8.
2025-11-06 16:28:58 +01:00
ocornut
62162747e7
(Breaking) Keys: commented out legacy names which were obsoleted in 1.89.
...
ImGuiKey_ModCtrl --> ImGuiMod_Ctrl, ImGuiKey_ModShift --> ImGuiMod_Shift, ImGuiKey_ModAlt --> ImGuiMod_Alt, ImGuiKey_ModSuper --> ImGuiMod_Super.
2025-11-06 16:28:25 +01:00
ocornut
189d8c9d9c
(Breaking) Commented out legacy ImGuiChildFlags_Border ( #462 ), ImGuiWindowFlags_NavFlattened ( #7687 ), ImGuiWindowFlags_AlwaysUseWindowPadding.
2025-11-06 16:11:07 +01:00
ocornut
f45adb995c
Drag and Drop, Style: added basic styling options to DragDrop target rect. Amends. ( #9056 )
2025-11-06 15:38:20 +01:00
ocornut
a0bfbe4d8f
Windows: BgClickFlags inherited by default + missing info in Changelog. Amend 40f9e4e. ( #899 , #3071 , #5044 , #3379 )
2025-11-05 20:16:45 +01:00
ocornut
e674f57bb6
Backends: SDL3: Fixed an issue with missing characters events when an already active text field changes viewports. ( #9054 )
...
Always use SDL_GetKeyboardFocus().
(tried to defer ImGui_ImplSDL3_PlatformSetImeData() processing for when OS-window is available but it didn't actually work because we don't systemetically OS-focus new viewports and SDL3 only sent characters to keyboard focused window.)
2025-11-05 19:15:47 +01:00
ocornut
1897248bda
Misc: added assert to detect ~ImGuiContext() called without DestroyContext(). ( #9051 )
2025-11-04 17:55:18 +01:00
ocornut
051a31594f
Metrics: fixed table and columns rect highlight from display when metrics window is not in the same viewport as the table.
2025-11-03 19:48:57 +01:00
ocornut
dc6e0f4b9e
Tables: Angled headers: fixed an auto-resize feedback loop that could affect tables with empty non-resizing columns using angled headers.
2025-11-03 19:35:19 +01:00
ocornut
8e5e79054e
Examples: WGPU: tweak headers and standardize other things so examples have less differences. ( #8381 )
2025-11-03 19:05:28 +01:00
ocornut
f1becf7e4b
Amend 149587b config/build infos change to be resilient to IM_ASSERT() macros using stringification inside a list.
2025-11-03 14:31:14 +01:00
ocornut
823ccc274e
Examples: update docs. ( #8381 )
2025-10-31 19:34:12 +01:00
ocornut
505ff536f9
Textures: fixed an issue preventing multi-contexts from using each others' fonts if context 2 runs after context 1's Render() function. ( #9039 )
2025-10-31 16:38:27 +01:00
ocornut
db577cd445
Fonts: rename internal fields for consistency.
2025-10-31 16:38:23 +01:00
ocornut
149587b85b
Config/build infos emit infos to convey when IM_ASSERT() macro is disabled.
2025-10-30 18:03:36 +01:00
ocornut
670a92723a
Move IM_STRINGIFY() to imgui.h
2025-10-30 17:47:06 +01:00
ocornut
130c3e6b75
Backends: Vulkan: tweak comments. ( #9041 )
2025-10-30 16:04:21 +01:00
ocornut
3c578fa87e
InputText: restore truncating, now between UTF-8 codepoint. ( #9029 )
...
Amend e612536 , 2a194e2 .
2025-10-29 18:40:40 +01:00
ocornut
8df962a6ed
Debug Tools: fixed DebugTextEncoding() potentially reading out of bounds if provided a trailing truncated UTF-8 sequence.
2025-10-29 17:58:52 +01:00
ocornut
2a194e21a0
InputText: revert truncation behavior from e612536 as it can truncate mid-UTF8. ( #9029 )
2025-10-29 17:24:23 +01:00
ocornut
9753c741b9
Disabled, ButtonBehavior: fixed a bug when a previously enabled item that got nav focus and then turns disabled could still be activated using keyboard. ( #9036 )
...
ButtonBehavior() was relying on lack of nav focus for keyboard handling
2025-10-29 16:43:27 +01:00
ocornut
7c483a0eba
Add indentation to ButtonBehavior() - no logic change.
2025-10-29 16:39:37 +01:00
ocornut
0ba9fedf1a
Win32: Revert 1.92.4 change of comparing dwPacketNumber. ( #8556 )
2025-10-29 16:29:47 +01:00
ocornut
2c54b15a5f
Update ignore list.
2025-10-29 15:03:55 +01:00
ocornut
2a229c8cb8
Examples: SDL3+OpenGL3: fixed Emscripten makefile + ignore list.
...
Can't get this to run however.
2025-10-29 14:21:43 +01:00
ocornut
40f9e4e8e2
Windows: store BgClickFlags which allows the equivalent of io.ConfigWindowsMoveFromTitleBarOnly to be overridden on a per window basis. ( #899 , #3071 , #5044 , + #3379 )
...
io.ConfigWindowsMoveFromTitleBarOnly now sets initial value for BgClickFlags. Using e.g. ImGui::GetCurrentWindow()->BgClickFlags &= ~ImGuiWindowBgClickFlags_Move; allow per-window override.
This will be extended for supporting scrolling options for #3379 .
As a minor side effect: the effect of enabling io.ConfigWindowsMoveFromTitleBarOnly now happens one frame later ('window_modal_bounds_exceeding_work_area" test accidentally broke in some situations because of that)
2025-10-28 19:13:11 +01:00
ocornut
245e12cca7
Internals: tweak UpdateMouseMovingWindowEndFrame().
2025-10-28 19:06:37 +01:00
ocornut
8019d39545
Shuffle a few internal context fields to reduce padding.
2025-10-28 19:06:36 +01:00
ocornut
a1632c6116
InputText, Demo: amend comments to direct more users to the std::string version.
...
https://www.youtube.com/watch?v=pLwvNdpTpjs wasted a solid hour before finding this.
Crazy that people are using AI instead of actually _reading_ comments, demo and headers. (The information appeared multiple times on their screen)
2025-10-24 17:10:57 +02:00
ocornut
c72d0b2cbb
Backends: Vulkan: SwapChainImageUsage assume VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT which is added automatically. ( #8946 , #8110 , #8111 , #8686 )
...
Merge bad3c14 which was accidentally only pushed to docking. No important side effect.
2025-10-23 21:04:48 +02:00
ocornut
e6125361f9
InputText: paste does a truncate when not fitting instead of ignoring it. ( #9029 )
2025-10-23 20:53:29 +02:00
ocornut
b7e45b3a48
InputText: rework STB_TEXTEDIT_INSERTCHARS() signature to allow partial insertion (unused). ( #9029 )
...
To be submitted as a PR to nothings/stb.
2025-10-23 20:19:16 +02:00
ocornut
6add99f8d2
Examples: SDL3+Vulkan: Fixed call to ImGui_ImplVulkanH_CreateOrResizeWindow() during resize. ( #9030 )
...
Surprisingly it still worked because ImGui_ImplVulkanH_CreateWindowSwapChain() pulls from `cap.currentExtent` when available.
2025-10-23 20:00:57 +02:00
ocornut
750c5d2a61
InputText: do not require anymore that CursorPos be clamped by user code. ( #9029 )
...
Add clamping outside of callback code + simplify logic. The previous logic checking for difference was because old code e.g. 21d03edcb0 required a ImTextCountCharsFromUtf8() which is not required since #7925 .
2025-10-23 18:54:32 +02:00
ocornut
e571ccf3f4
InputText: removed unnecessary variables.
2025-10-23 18:43:20 +02:00
ocornut
b8573a7e33
Groups: fixed an issue reporting IsItemEdited() signal after EndGroup() for some widgets e.g. Checkbox(), Selectable(). ( #9028 )
2025-10-23 13:54:14 +02:00
ocornut
bc5da9b367
Examples: DirectX10: Amends. ( #8979 )
2025-10-22 13:58:51 +02:00