1b1a443e19
Merge remote-tracking branch 'upstream/master' into HEAD
cpu
moonpower2026-06-03 03:05:20 +02:00
c4eaac6d48
Fonts: fixed an issue where passing a manually created ImFontAtlas to CreateContext() would incorrectly destroy it in DestroyContext() when ref-count gets back to zero. (#9426)
ocornut2026-06-02 19:04:14 +02:00
5a42cddcd2
Fixed a build issue when defined IMGUI_API + IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#9424)
ocornut2026-06-02 18:40:14 +02:00
995e4a65ff
(Breaking) TreeNode: commented out legacy name ImGuiTreeNodeFlags_SpanTextWidth which was obsoleted in 1.90.7 (May 2024). Use ImGuiTreeNodeFlags_SpanLabelWidth instead.
ocornut2026-06-02 18:37:01 +02:00
1d33ea939f
DrawList: added ImDrawListFlags_NoTextPixelSnap to disable snapping of AddText() coordinates for a given scope. (#3437, #9417, #2291)
ocornut2026-05-29 18:10:29 +02:00
75f985998b
Using custom ceilf inline impl in ImGui::CalcTextSize().
ocornut2026-05-29 15:59:44 +02:00
12b7977555
Tweak CalcTextSize() awkward width rounding/ceiling code to reduce floating-point imprecisions altering the result by 1 even at relatively small width. (#791) + apply same fudge factor to less important roundings.
ocornut2026-05-28 19:19:11 +02:00
33bb693b4c
DrawList: skip PathLineTo/PathStroke calls for common AddLine(), AddLineH(), AddLineV() functions. (#4091)
ocornut2026-05-28 15:37:29 +02:00
904b663184
Clarify support for "%s" shortcuts in functions taking format strings. (#9404, #3466, #6846)
ocornut2026-05-19 18:50:39 +02:00
3e7b79aa17
Backends: Win32: use SetProcessDpiAwarenessContext instead of SetThreadDpiAwarenessContext when available, to fix the OpenGL3 Win32 example DPI scaling issue. (#9403)
MouriNarutoandocornut2026-05-19 23:21:36 +08:00
e41d691da1
Demo: Tree Nodes: extract 'Tree Nodes->Selectable Nodes' into its own thing.
ocornut2026-05-18 14:13:49 +02:00
93e396ffb7
Textures: call ImTextureDataUpdateNewFrame() for textures registered via RegisterUserTexture(). (#8789, #8465)
ocornut2026-05-15 16:38:05 +02:00
068e055510
Textures: extract ImTextureDataUpdateNewFrame() out of ImFontAtlasUpdateNewFrame(). (#8465)
ocornut2026-05-15 16:34:53 +02:00
db161b84c9
Windows: clicking on a window's empty-space to move/focus a window checks for lack of queued focus request. (#9382)
ocornut2026-05-15 13:45:03 +02:00
4088a4f40c
Windows: clicking on a window's empty-space to move/focus a window checks for lack of mouse button ownership. (#9382)
ocornut2026-05-15 13:33:51 +02:00
46a050fff2
Nav: minor optimization NavUpdate().
ocornut2026-05-15 13:38:32 +02:00
310c719a1f
Rework definition of ImDrawFlags_InvalidMask_ so it more strictly fits in an int32 for non C/C++ languages where it matters. (#9396, #9397)
ocornut2026-05-15 10:48:24 +02:00
b2546a5c93
Comments on not needing to use ImDrawFlags_RoundCornersAll.
ocornut2026-05-13 12:46:07 +02:00
e0f5f9a14c
Amend AddRect(), AddPolyline() error detection to safely return an trigger error handling mechanism.
ocornut2026-05-12 17:40:28 +02:00
ac1f57ba0c
Fixed BeginMenu() leading to window with is_resizable_width=true. Fix/amend 95bd1577d. (#9355)
ocornut2026-05-11 16:34:33 +02:00
821a396556
Fixed warning on Clang 26.
ocornut2026-05-11 15:59:42 +02:00
2b31f65167
Examples: WebGPU+GLFW/SDL2/SDL3: wire up the IMGUI_WGVK_DIR path. (#9387)
manuelandocornut2026-05-01 12:57:48 +02:00
b58836f287
Backends: WebGPU: detect WGSL support at runtime instead of excluding WGVK at compile time. (#9387)
manuelandocornut2026-05-01 12:57:48 +02:00
bca5a69928
BeginMenu()/MenuItem(): fixed accidental triggering of child menu items when opening a menu inside a small host window forcing the child menu window to be repositioned under the mouse cursor. (#8233, #9394)
ocornut2026-05-11 15:32:39 +02:00
56b37bf93c
Inputs: SetItemKeyOwner(): does not set ownership is key is already taken.
ocornut2026-05-07 21:22:02 +02:00
0eae77f783
Inputs: SetItemKeyOwner(): return true if ownership has been requested, which can to be checked to accurately gate further input test.
ocornut2026-05-07 20:51:32 +02:00
02ccd9f348
Scrolling, Inputs: using mouse wheel to scroll takes and keeps ownership of the corresponding keys while a wheeling window is locked.
ocornut2026-05-07 20:45:49 +02:00
163b8670c8
Demo: added image viewer with magnifier and grid.
ocornut2026-05-07 19:55:12 +02:00
6df50a0667
(Breaking) DrawList: swapped the last two arguments of AddRect(), AddPolyline(), PathStroke(). thickness<>flags.
ocornut2026-04-27 22:13:42 +02:00
976c5c0f3a
Textures: extract ImTextureDataQueueUpload() out of ImFontAtlasTextureBlockQueueUpload() (#8465)
ocornut2026-05-06 16:17:17 +02:00
c0b693b1d4
MultiSelect: Box-Select + Tables: fixed when using SpanAllColumns paths. (#9383, #7994)
ocornut2026-04-28 15:56:50 +02:00
865a6dfa59
InputScalar: fixed not parsing user input when the display format is configured not to show the scalar value. (#9385)
Alexander "FireFox" Ongandocornut2026-04-28 20:44:20 +10:00
dee9b15bbe
Backends: Metal: add sampler states and DrawCallback_SetSamplerLinear / DrawCallback_SetSamplerNearest callbacks. (#9381, #9371, #9378)
Vladandocornut2026-04-27 16:06:33 +09:00
d1a8995634
MultiSelect: Box-Select + Tables: fixed when using SpanAllColumns paths. (#9383, #7994)
ocornut2026-04-28 14:58:29 +02:00
82f46a73f8
(Breaking) Moved ImDrawCallback_ResetRenderState -> ImGui::GetPlatformIO().DrawCallback_ResetRenderState + added room in ImGuiPlatformIO for more standard backend-agnostic draw callbacks. (#9378)
ocornut2026-04-23 16:14:53 +02:00
a6a16cf8a2
Backends: WebGPU: protect better against zero tex id.
ocornut2026-04-23 20:13:25 +02:00
e887098740
Backends: WebGPU: always use SPIR-V shader on WGVK, as it cannot be detected at runtime. (#9316, #9246, #9257)
ocornut2026-04-23 19:42:08 +02:00
f934719fbf
TabBar: comments about ImGuiTabBarFlags_FittingPolicyMixed and TabMinWidthShrink. (#9376, #3421, #8800)
ocornut2026-04-23 18:31:53 +02:00
2d131ef5b7
Backends: Vulkan: renaming and moving code around to reduce diff in upcoming change. Should be no-op.
ocornut2026-04-21 22:07:03 +02:00
a1e05521e9
Backends: GLFW: added a Win32-specific implementation of ImGui_ImplGlfw_GetContentScaleXXXX functions for legacy GLFW 3.2. (#9003)
ocornut2026-04-21 17:24:41 +02:00
d7b40ab9a9
MultiSelect: Box-Select + Tables: Amend ac88294. fix usage of box-selection columns with items straying out of columns. (#7994, #2221)
ocornut2026-04-20 11:40:01 +02:00
ac88294b4a
MultiSelect: Box-Select +Tables: fix usage of box-selection columns with items straying out of columns. (#7994, #2221)
ocornut2026-04-20 11:07:45 +02:00
ea1c04f7ab
Multi-Select + Tables: fixed an issue which could lead to an extra vertical offset in the Header row. (#8250, #7994)
ocornut2026-04-17 19:21:51 +02:00
cdb046ac3f
Demo: Assets Browser: fixed not submitting anything after a SetCursorScreenPos() call when no items. Would not manifest because BeginMultiSelect() altered CursorMaxPos. (#5548)
ocornut2026-04-17 19:19:21 +02:00
97939e6837
Multi-Select: Box-Select: fixes for using accross nested child windows. (#8364)
ocornut2026-04-17 16:30:53 +02:00
c91b03060d
Multi-Select: Box-Select: improve dirty unclip rectangle calculation + use in ImGuiMultiSelectFlags_BoxSelect1d mode when needed (e.g. wheel scrolling up). (#7994, #8250, #7821, #7850, #7970)
ocornut2026-04-16 23:59:19 +02:00
a2eb6d99ed
MultiSelect: Box-Select +Tables: revert 4d00bf8ad which seems unneeded since enforce table layout in BeginMultiSelect(). (#7970, #7821).
ocornut2026-04-15 16:42:56 +02:00
2cbdb7a337
TextLink(), BeginCombo(): fixed two remainig instances of needlessly scanning for ##.
ocornut2026-04-16 16:47:13 +02:00
d4783bd553
Added missing Test Engine hooks for PlotXXX(), VSliderXXX(), TableHeader().
ocornut2026-04-16 16:39:07 +02:00
ce855cada2
Tables, Multi-Select: Fixed an issue using Multi-Select within a Table causing column width measurement to be invalid when trailing column contents is not submitted in the last row. (#9341, #8250)
ocornut2026-04-16 15:07:56 +02:00
39e7bf5a08
Separator(): enforce a minimum border size if style.SeparatorSize is 0.0f. (#9369)
ocornut2026-04-16 11:32:40 +02:00
0e318a5182
Backends: SDL2: Made ImGui_ImplSDL2_GetContentScaleXXX helpers return a minimum of 1.0f, as some Linux setup seems to report <1.0f value and this breaks scaling border size. (#9369)
ocornut2026-04-16 11:32:07 +02:00
19753a30d8
Multi-Select: Box-Select+Tables: fixed Column return value when UnClipRect is active. (#7994, #8250)
ocornut2026-04-15 15:08:41 +02:00
6fb74f38af
Demo: Assets Browser: make default icon size font dependant.
ocornut2026-04-15 14:22:42 +02:00