ocornut
046a8eae0f
Tabs: fixed tab bar underline not drawing below scroll buttons. ( #6820 , #4859 , #5022 , #5239 )
...
Fix ef8ff1b5d8 which accidentally meant we are using BarRect after it may have been modified by TabBarScrollingButtons().
2025-07-31 22:04:01 +09:00
ocornut
a0cdac48e0
Tables: fixed TableGetHoveredRow() ( #7350 , #6588 , #6250 ) + TableGetRowIndex() which never correctly worked when using a clipper.
...
Amend e09454aec . Can't understand the comment nor why code was commented. Code looks alright. Compared TableEndRow() between 1.80 and current as well.
2025-07-31 13:21:26 +09:00
ocornut
2ab3946ecb
Windows: add StopMouseMovingWindow(), partial merge 80d78fa from docking.
2025-07-30 18:46:49 +09:00
ocornut
87d7f7744e
Fonts: (Internal) Added undocumented ImFontBaked::LoadNoRenderOnLayout. ( #8758 , #8465 )
...
Amend fd75bdccb0 .
2025-07-27 20:33:57 +09:00
ocornut
10dc1882c8
Fonts: (Internal) rename ImFontBaked::LockLoadingFallback to ImFontBaked::LoadNoFallback.
2025-07-27 20:31:37 +09:00
ocornut
c6c0c3be08
Docs: amend 1.92.0 logs on the fact that font->CalcTextSizeA() used to be thread-safe.
2025-07-27 20:15:21 +09:00
ocornut
da6c97203e
Fixed comments for io.KeyCtrl / io.KeySuper to match the one for ImGuiMod_Ctrl, ImGuiMod_Super. ( #8839 )
2025-07-27 19:37:30 +09:00
ocornut
19d1ad04f4
Fonts: stop using stb_truetype.h implementation functions. Fix using IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION. ( #8794 )
2025-07-23 16:42:00 +09:00
ocornut
b884533957
Document/workaround an issue using IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION since 1.92.0. ( #8794 )
2025-07-23 16:30:30 +09:00
ocornut
174f37bdaf
Fixed building with IMGUI_DISABLE_DEBUG_TOOLS only. ( #8796 )
2025-07-23 16:17:35 +09:00
ocornut
4f00774006
Examples: SDL3+Metal: Amend example. ( #8827 , #8825 )
...
Amend 8403c49
2025-07-23 16:11:47 +09:00
ocornut
06ab541e2f
CI: Adjust policies to more frequently build Win64 SDL3+SDL_Renderer, SDL3+SDL_GPU, and tweak others.
2025-07-22 17:01:26 +09:00
ocornut
ea613e181c
Windows: fixed an issue where resizable child windows would emit border logic when hidden/non-visible. ( #8815 )
...
This makes more sense in docking branch but may be merged in master right away.
2025-07-22 16:22:53 +09:00
ocornut
ed5bd1f9ef
Changed ImTextCharToUtf8() to return bytes count rather than original pointer. ( #8820 )
...
Amend c2bf4abfa1
2025-07-22 14:17:11 +09:00
ocornut
c9e0208de4
Textures: moved UpdateTexturesNewFrame(), UpdateTexturesEndFrame() to a more suitable location in the file.
2025-07-21 15:35:53 +09:00
ocornut
57a816ae60
Texutres: minor comments, tweaks.
2025-07-21 15:27:17 +09:00
ocornut
643f0e3abf
Backends: OpenGL3: restore update path on non-WebGL non-ES targets that doesn't require a CPU copy. ( #8802 , #8465 )
...
Amend/fix dbb91a5
2025-07-15 14:34:40 +02:00
ocornut
8744d10235
Backends: OpenGL2, OpenGL3: set GL_UNPACK_ALIGNMENT to 1 before updating textures. ( #8802 )
2025-07-15 14:30:50 +02:00
ocornut
7c51c0e3de
Docs: misc update. ( #8727 , #8764 )
2025-07-08 11:59:32 +02:00
ocornut
8c61ee5498
Tables: fixed comments about DisableDefaultContextMenu. ( #8746 )
2025-06-29 18:05:28 +02:00
ocornut
d99ab9f903
Backends: SDL2: undef Status for X11. ( #8751 )
2025-06-28 17:15:18 +02:00
ocornut
de7625b8c2
Docs: tweak/fixed comments. ( #8750 , #8749 )
2025-06-28 17:12:05 +02:00
ocornut
0dc2885f3e
InputText: fix for InsertChars() to work on read-only buffer. ( #8714 , #8689 , #8242 )
...
Ill defined feature but memory editor use InsertChars etc on a read-only buffer.
`if (init_state)` block of InputTextEx() intentionally does not resize TextA, as unneeded.
Amend b2c73596ae
Amend e900571
2025-06-22 13:04:51 +02:00
ocornut
afe20dc9b6
Backends: warning fix.
2025-06-20 15:23:52 +02:00
ocornut
e97e55adbc
Backends: Fixed various warnings discovered when using MinGW GCC 15/Clang on latest backends.
...
dx12: 'ImGui_ImplDX12_Data* bd' shadowed local in spite of being in lambda.
2025-06-20 15:18:00 +02:00
ocornut
2f9c518ca8
Textures: ImTextureData::GetPixels() returns void* for clarity.
2025-06-20 15:17:13 +02:00
ocornut
9a50c09172
Bsckends: SDL2, GLFW: fixed ImGui_ImplXXXX_GetContentScaleXXX functions never using SDL 2.0.4 & GLFW 3.3 path in master.
...
Amend 9da3e6696a , 8269924c (was broken for master)
2025-06-20 14:38:33 +02:00
ocornut
3a964d18e0
Comments on ImGuiMod_XXXX and ImGuiKey_GamepadXXXX values.
2025-06-20 10:11:07 +02:00
ocornut
8d6e66d38c
Backends: DX10, DX11, DX12, OpenGL3, Vulkan, WGPU: Assert when CreateDeviceObjects() calls return false.
2025-06-20 09:49:53 +02:00
ocornut
f7dabede8b
Backends: Allegro5: Fixed missing invisible mouse cursor, broken by ee8941e0d.
2025-06-20 09:49:53 +02:00
ocornut
f633a60581
Backends: GLFW: Added support for multiple Dear ImGui contexts. ( #8676 , #8239 , #8069 )
2025-06-18 16:46:37 +02:00
ocornut
d290e583c5
Backends: GLFW: fixed WndProc relying on current context. ( #8676 , #8239 , #8069 )
...
This makes the backend closer to support multi-context.
2025-06-18 16:39:57 +02:00
ocornut
c56e8b4964
imgui_freetype: fixed NULL that creeped in instead of nullptr.
2025-06-18 15:31:00 +02:00
ocornut
b2c73596ae
InputText: fixed a buffer overrun that could happen when using dynamically resizing buffers. ( #8689 )
2025-06-17 20:11:22 +02:00
ocornut
12626b85c4
InputText: minor changes to match for both insert chars paths to look more similar.
2025-06-17 19:24:45 +02:00
ocornut
08bb348142
Misc: removed static linkage from operators to facilitate using in C++ modules. ( #8682 , #8358 )
2025-06-17 17:09:26 +02:00
ocornut
041abe8522
Revert "Misc: removed static linkage from operators to facilitate using in C++ modules. ( #8682 , #8358 ) [@radjkarl]"
...
This reverts commit 39a90ac4d6 .
2025-06-17 14:57:39 +02:00
ocornut
39a90ac4d6
Misc: removed static linkage from operators to facilitate using in C++ modules. ( #8682 , #8358 ) [@radjkarl]
2025-06-17 14:52:34 +02:00
ocornut
f2e4e80391
Windows: BeginChild(): fixed being unable to combine manual resize on one axis and automatic resize on the other axis. ( #8690 )
...
+ removed obsolete TODO entries.
2025-06-17 14:01:01 +02:00
ocornut
fe048efeab
DrawList, Fonts: fixed PushFont()/AddImage() not restoring correct atlas texture id when using multiple atlas ( #8694 )
...
This also needs 24f7328 .
2025-06-17 12:06:14 +02:00
ocornut
24f7328e5f
DrawList, Fonts: fixed ImFontAtlasTextureRepack() overwriting draw list shared data UV's etc. even when not bound. ( #8694 , #8465 )
...
ImFontAtlasUpdateDrawListsSharedData() call from ImFontAtlasTextureRepack() would trigger this.
For simplicity we also track current atlas in ImDrawListSharedData, but we could probably use Font->ContainerAtlas.
2025-06-17 12:06:05 +02:00
ocornut and ocornut
39f6c793b3
Fonts: proof of concept support for user textures.
...
# Conflicts:
# imgui.h
# imgui_internal.h
2025-06-11 15:59:19 +02:00
ocornut and ocornut
fad5280d4c
Fonts: fixed broken support for legacy backend due to a mismatch with initial pre-build baked id.
2025-06-11 15:57:44 +02:00
ocornut and ocornut
4dec946ae6
Fonts: don't pretend to half recover from OOM for now + debug log filename on load failure.
2025-06-11 15:57:35 +02:00
ocornut and ocornut
8140a9d8a6
Fonts: comments on ImTextureData fields.
2025-06-11 15:57:35 +02:00
ocornut and ocornut
42e7bb80b6
imgui_freetype: removed anonymous namespace + extracting two functions outside of ImGui_ImplFreeType_FontSrcData.
2025-06-11 15:57:28 +02:00
ocornut and ocornut
6a455e1281
imgui_freetype: moving data out of ImGui_ImplFreeType_FontSrcData.
...
The reasoning behind that we would ideally transition ImGui_ImplFreeType_FontSrcData to be shared between fonts using same source.
2025-06-11 15:57:28 +02:00
ocornut and ocornut
fc87081133
Fonts: fixed GetCustomRectUV().
...
Fixing typo. Broken by fe598f7
2025-06-11 15:55:38 +02:00
ocornut and ocornut
e41bf16ff1
Fonts: fixed ImTextureID() being zero-cleared instead of using ImTextureUserID_Invalid. .
2025-06-11 15:53:42 +02:00
ocornut and ocornut
7ac1bff482
Fonts: fixed an issue calling legacy ImFontAtlas::Clear().
2025-06-11 15:52:12 +02:00
ocornut and ocornut
144f444217
Fonts: fixed memory leaks, shutting down font loader, and on AddFont() failure in FreeType backend.
2025-06-11 15:52:12 +02:00
ocornut and ocornut
8ea0ae454f
Fonts: fixed a bug using size specified by secondary font sources.
2025-06-11 15:52:12 +02:00
ocornut and ocornut
e98a314e06
Textures: Added ImTextureData::UsedRect.
...
# Conflicts:
# imgui_internal.h
2025-06-11 15:51:19 +02:00
ocornut and ocornut
2bf6879dae
Fonts: tidying up font scale logic.
...
# Conflicts:
# imgui_internal.h
2025-06-11 15:51:18 +02:00
ocornut and ocornut
066b24d741
Fonts: Fixed _OnChangedTextureID() asserting when calling on e.g. finalized drawlists.
2025-06-11 15:47:34 +02:00
ocornut and ocornut
a2bc3d81c2
Fonts: Fixed support for multiple contexts.
2025-06-11 15:43:07 +02:00
ocornut and ocornut
43cc3fc8b1
Fonts: optimization bake FallbackAdvanceX into IndexAdvanceX[].
2025-06-11 15:42:54 +02:00
ocornut and ocornut
4f27792ffe
(Breaking) Removed atlas->TexDesiredWidth now unnecessary (github 327)
2025-06-11 15:42:54 +02:00
ocornut and ocornut
b670f799d5
Fonts: use TexGlyphPadding. Fixed packing issues. Removed old code.
2025-06-11 15:41:21 +02:00
ocornut and ocornut
0f553c57bd
Fonts: AddFont() actually does the work, so we can handle errors & return an accurate return value.
2025-06-11 15:41:21 +02:00
ocornut and ocornut
208705368e
Textures: Adding a RefCount to textures so backend can avoid destroying them on shutdown if atlas is shared.
2025-06-11 15:05:51 +02:00
ocornut and ocornut
0f0473bf1c
Fonts, Textures: main code for ImGuiBackendFlags_RendererHasTextures feature.
...
# Conflicts:
# imgui.h
# imgui_demo.cpp
2025-06-11 15:03:46 +02:00
ocornut
b5a73033ab
Examples: Apple: Amend build scripts and gitignore, fix misc OSX warnings. ( #8637 )
...
# Conflicts:
# backends/imgui_impl_metal.mm
2025-05-14 18:23:31 +02:00
ocornut
08689c51a9
Backends: GLFW, SDL2, SDL3: include GLFW/SDL version number in io.BackendPlatformName.
...
# Conflicts:
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
2025-05-13 15:50:51 +02:00
ocornut
4a6ba95392
Backends: SDL3: Comments ( #6146 )
2025-05-12 19:19:30 +02:00
ocornut
46235e91f6
Examples: SDL3: specify SDL_WINDOW_HIGH_PIXEL_DENSITY and make centering consistent + call SDL_RenderScale().
2025-05-05 20:04:32 +02:00
ocornut
afd3a36f69
Demo: added basic Fonts section under main demo (same as Metrics one) for visibility.
2025-05-05 19:39:56 +02:00
ocornut
c5e2bb7cd1
Backends: SDLGPU3: Fixed creating atlas texture earlier than other backends.
...
# Conflicts:
# backends/imgui_impl_sdlgpu3.cpp
2025-05-05 19:20:12 +02:00
ocornut
e3bfaab3f7
Examples: update xcode projects.
2025-05-05 18:38:55 +02:00
ocornut
75ddd9a6cd
Backends: SDLGPU3: added support for ImDrawCallback_ResetRenderState. ( #8599 )
2025-04-28 23:10:43 +02:00
ocornut
cbb8edb0b7
Tables: fixed an assert when combining Tables, Frozen Rows, Clipper and BeginMultiSelect() in a certain order. ( #8595 , #8250 )
...
The table->CurrentColumn != -1 test in BeginMultiSelect() was affected. It would have been possible to amend the test with table->IsInsideRow but this seems generally saner.
Docs: fixed typo. (#8592 )
2025-04-26 15:44:51 +02:00
ocornut
af987eb117
Backends: DX12: build fix for Clang. ( #8582 )
2025-04-20 11:24:30 +02:00
ocornut
69d572bb10
Fonts: reworked text ellipsis logic to ensure a "..." is always displayed instead of a single character. ( #7024 )
...
Requires 97d85338e8 and e4a865177e
2025-04-16 20:30:29 +02:00
ocornut
97d85338e8
Tabs: adjust handling of ellipsis now that Close Button visibility changed. ( #8387 ) Internals: remove extra parameter to RenderTextEllipsis().
...
This requires RenderTextEllipsis() to use fine CPU-side clippoing.
Users of RenderTextEllipsis(): #7024 , #6236 , #5267 , #5745 , #4269 , #2775
2025-04-16 20:29:43 +02:00
ocornut
e4a865177e
ImFont: added cpu clip fine option for ImFont::RenderChar() (which is technically internal).
...
(toward #7024 )
2025-04-16 20:21:23 +02:00
ocornut
faea193800
Internals: minor refactor of TabItemLabelAndCloseButton(), should be no-op.
...
(minor thing toward #7024 )
2025-04-16 20:07:39 +02:00
ocornut
7ab4728a36
Error Handling: added better error report and recovery when calling EndFrame() or Render() without NewFrame().
2025-04-16 18:12:53 +02:00
ocornut
b23a216ecd
Examples: added SDL2+Vulkan, SDL3+Vulkan, GLFW+Vulkan makefiles. Amend ignore list. ( #2480 )
2025-04-16 15:04:14 +02:00
ocornut
39f34e1e58
TreeNode: Don't latch GetColorU32(ImGuiCol_TreeLines). ( #2920 )
...
Trade off doesn't seem worth it for large trees. User who really needs to alter colors can do it by adjusting Push/Pop locations.
2025-04-08 19:58:59 +02:00
ocornut
e5b218e6d1
TreeNode: added ImGuiTreeNodeFlags_DrawTreeXXX flags. ( #2920 )
...
# Conflicts:
# docs/CHANGELOG.txt
2025-04-08 19:58:59 +02:00
ocornut
b4bd596a39
Fonts: word-wrapping code handle ideographic comma & full stop (U+3001, U+3002). ( #8540 )
2025-04-01 22:57:07 +02:00
ocornut
fcab22f80f
Fonts: fixed CalcWordWrapPositionA() fallback when width is too small to wrap with multibyte codepoints.. ( #8540 )
2025-04-01 22:57:07 +02:00
ocornut
dbd9ae287a
Windows: fixed SetNextWindowCollapsed()/SetWindowCollapsed() breaking codepath that preserve last contents size when collapsed. ( #7691 )
2025-03-23 12:57:14 +01:00
ocornut
5679de60c5
Error Handling: added better report and recovery for extraneous EndPopup() call. ( #1651 , #8499 )
2025-03-18 17:35:43 +01:00
ocornut
97428e8ac9
Version 1.91.9
2025-03-14 17:13:11 +01:00
ocornut
ea2a12112d
Misc: Various zealous warning fixes for newer version of Clang.
2025-03-14 17:13:11 +01:00
ocornut
09654f4e8c
Revert "Examples: Updated all .vcxproj from VS2015 to VS2019 (toolset v140 to v142), Windows SDK 8.1 to 10."
...
This reverts commit 6da230636b .
2025-03-11 18:42:12 +01:00
ocornut
557c77e455
Added ImGuiKey_AbntC1, ImGuiKey_AbntC2 + Backends: GLFW, Win32: added support. ( #8468 )
2025-03-11 18:38:45 +01:00
ocornut
6da230636b
Examples: Updated all .vcxproj from VS2015 to VS2019 (toolset v140 to v142), Windows SDK 8.1 to 10.
2025-03-11 12:25:19 +01:00
ocornut
51e4cba909
Backends: Fixed zealous warnings.
2025-03-11 12:05:23 +01:00
ocornut
1ec99f4fd3
Internals: added ImStrlen/ImMemchr #define to facilitate experimenting with variations. ( #8421 )
2025-03-07 11:09:07 +01:00
ocornut
4819eae867
Clipper: Fixed an issue where passing an out of bound index to IncludeItemByIndex() could incorrectly offset the final cursor.
...
One case where it would manifest was calling Combo() with an out of range index. (#8450 )
2025-03-02 14:15:11 +01:00
ocornut
c5ade6591e
TextLink(), TextLinkOpenURL(): fixed honoring text baseline alignment. ( #8451 , #7660 )
2025-03-02 13:40:51 +01:00
ocornut
aa83d5d455
Backends: SDL2, SDL3: Only start SDL_CaptureMouse() when mouse is being dragged. ( #6410 , #3650 )
...
To mitigate issues with e.g. Linux debuggers not claiming capture back.
2025-02-26 15:34:31 +01:00
ocornut
9996a2d51b
Backends: WebGPU: update code for latest webgpu-native changes. Fix for Emscripten. ( #8426 )
2025-02-26 15:16:38 +01:00
ocornut
6aa0810de5
Backends: WebGPU: update code for latest webgpu-native changes. Amend. ( #8426 )
2025-02-26 15:10:28 +01:00
ocornut
242d856ede
Examples: SDL3+SDL_Renderer: removed reference to OpenGL to remove confusion. ( #8434 )
...
Amend
2025-02-26 14:40:41 +01:00
ocornut
6e29450f76
Internals: added IsItemActiveAsInputText() helper.
2025-02-25 16:02:10 +01:00
ocornut
edc66d79c7
Nav: extract code into a NavUpdateWindowingApplyFocus() so it may be reused elsewhere.
2025-02-21 23:11:11 +01:00
ocornut and ocornut
434b7710f3
Internals: packing ImGuiDataVarInfo + misc renaming + value of ImGuiDataType_Pointer doesn't need to be Count+1
2025-02-21 19:26:24 +01:00