ocornut
cec3e945f0
Fonts: added ImFontAtlas::RemoveFont(), fixed various leaks.
2025-06-11 15:43:07 +02:00
ocornut
df8450d928
Fonts: marked ImFontAtlas::Build() as obsolete
2025-06-11 15:43:07 +02:00
ocornut
4399599de9
Fonts: ClearCache(), ImFontAtlasBuildGetTextureSizeEstimate(), tweak clearing functions.
2025-06-11 15:43:06 +02:00
ocornut
ef1521b472
Fonts: fix for password fields
2025-06-11 15:43:06 +02:00
ocornut
a51a26e2aa
Fonts: use a structure for post-processing - easier to pass things around and iterate on.
2025-06-11 15:43:06 +02:00
ocornut
553b1c301d
Fonts: repack without full reload, discard rectangle, fixed CustomRect api with stable id, remove public BuildInit().
2025-06-11 15:43:01 +02:00
ocornut
a6c7801926
Fonts: Measured and tweaked CalcTextSize() computation to minimize cost in our stress tests.
2025-06-11 15:42:55 +02:00
ocornut
076a1ab85c
Fonts: Misc amends, remove _PackNodesFactor, comments.
2025-06-11 15:42:54 +02:00
ocornut
ac13683c26
Fonts: ImFontAtlas accept DrawListSharedData not being set.
2025-06-11 15:42:54 +02:00
ocornut
1269467fa0
imgui_freetype: Removing old code.
2025-06-11 15:41:16 +02:00
ocornut
08e1e7681e
imgui_freetype: Added Freetype implementation for new architecture.
2025-06-11 15:41:16 +02:00
ocornut
ee8941e0de
Backends: Allegro5: added ImGuiBackendFlags_RendererHasTextures support.
2025-06-11 15:41:05 +02:00
ocornut
16fe666e36
Backends: SDLGPU3: added ImGuiBackendFlags_RendererHasTextures support.
...
# Conflicts:
# backends/imgui_impl_sdlgpu3.cpp
# backends/imgui_impl_sdlgpu3.h
2025-06-11 15:38:14 +02:00
ocornut
e538883a20
Backends: SDL_Renderer3: added ImGuiBackendFlags_RendererHasTextures support.
2025-06-11 15:38:13 +02:00
ocornut
9fa65cd190
Backends: SDL_Renderer2: added ImGuiBackendFlags_RendererHasTextures support.
2025-06-11 15:37:50 +02:00
ocornut
abe294bfd0
Backends: Vulkan: added ImGuiBackendFlags_RendererHasTextures support.
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
2025-06-11 15:33:28 +02:00
ocornut
0430c55b84
Backends: OpenGL2: added ImGuiBackendFlags_RendererHasTextures support.
...
Removed ImGui_ImplOpenGL2_CreateFontsTexture() and ImGui_ImplOpenGL2_DestroyFontsTexture().
2025-06-11 15:30:45 +02:00
ocornut
dbb91a574f
Backends: OpenGL3: added ImGuiBackendFlags_RendererHasTextures support.
...
+ Removed ImGui_ImplOpenGL3_CreateFontsTexture() and ImGui_ImplOpenGL3_DestroyFontsTexture().
2025-06-11 15:29:14 +02:00
ocornut
eefe5d5aac
Backends: DirectX12: added ImGuiBackendFlags_RendererHasTextures support.
...
# Conflicts:
# backends/imgui_impl_dx12.cpp
2025-06-11 15:27:19 +02:00
ocornut
2d2b1bc1cc
Backends: DirectX10: added ImGuiBackendFlags_RendererHasTextures support.
...
# Conflicts:
# backends/imgui_impl_dx10.cpp
# backends/imgui_impl_dx10.h
2025-06-11 15:27:16 +02:00
ocornut
75efba7ec7
Backends: DirectX9: added ImGuiBackendFlags_RendererHasTextures support
...
# Conflicts:
# backends/imgui_impl_dx9.cpp
2025-06-11 15:27:11 +02:00
ocornut
372fd27e71
Backends: DirectX11: added ImGuiBackendFlags_RendererHasTextures support.
...
# Conflicts:
# backends/imgui_impl_dx11.cpp
2025-06-11 15:26:00 +02:00
ocornut
c20e160e0f
Textures: added texture list pointer in ImDrawData.
...
# Conflicts:
# imgui.h
2025-06-11 15:12:02 +02:00
ocornut
a21a2e855b
Textures: Single Textures[] array allows backend to not have to care about atlases.
...
# Conflicts:
# imgui.h
2025-06-11 15:05:49 +02:00
ocornut
ee357aaddf
Textures: Add ImTextureUserID_Invalid + introducing SetTexID().
...
Which gives us room for potentially updating ImDrawData during render.
2025-06-11 15:04:02 +02:00
ocornut
2cde9125d6
Fonts: Selecting font config source list done by shared code.
2025-06-11 15:04:02 +02:00
ocornut
191a728ecc
(Breaking) added ImTextureRef struct. Changed ImDrawCmd::TextureId to TexRef.
...
Softly breaking. May require support from language binding generator.
Rebased and reworked completely on 2025/03/19.
2025-06-11 15:02:36 +02:00
ocornut
b2f39318cb
Adding .cache to ignore list. ( #8674 )
2025-06-11 13:41:06 +02:00
ocornut
c3d7ada9df
Demo: add indentation to simplify upcoming merges.
2025-06-04 22:27:34 +02:00
ocornut
91f72bbe1c
Demo: omit ImGui:: prefix from ShowStyleEditor(), ShowUserGuide() code.
2025-06-04 21:29:12 +02:00
ocornut
9485aeb5c8
Demo: changed default framed item width to use Min(GetFontSize() * 12, GetContentRegionAvail().x * 0.40f).
2025-06-04 17:35:45 +02:00
ocornut
e877f78b0e
TreeNode: minor amend to b7ab2b7. ( #2920 )
2025-06-02 20:57:21 +02:00
ocornut
ef503ab0c8
TreeNode: fixed out of bound access in ImGuiTreeNodeFlags_DrawLinesXXX feature. ( #2920 )
...
TreeNode behavior would read TreeRecordsClippedNodesY2Mask from an older node at same lebel, and write to g.TreeNodeStack.Data[-1].
2025-06-02 20:50:38 +02:00
ocornut
b7ab2b7523
TreeNode: fixed an issue where tree lines are not drawn on node opening frame. ( #2920 )
2025-06-02 20:47:02 +02:00
ocornut
69e1fb50ca
Docs: fixed missing commit credit. ( #8656 )
2025-05-30 21:59:13 +02:00
ocornut
c3a3a39e92
Nav: fixed abnormal clipping disable over large ranges, could lead to stall. ( #3841 , #1725 )
...
Amend 93cccd27f
2025-05-30 21:55:50 +02:00
ocornut
19289d587a
Nav: fixed scroll fallback (when there are no interactive widgets to jump to) not being enabled on windows with menu or title bar.
2025-05-30 21:54:33 +02:00
ocornut
c53c9a8644
Clipper: further mitigation/improvements for abnormally large contents ranges (larger than e.g. 2^31). ( #3609 , #8215 )
2025-05-30 21:53:25 +02:00
ocornut
87a6443c5b
Scroll: fixed contents size, scrollbar visibility and scrolling reet issue with abnormally large contents ranges. ( #3609 , #8215 )
2025-05-30 21:52:51 +02:00
ocornut
77f1d3b317
Refactor: move SetCurrentFont(), PushFont(), PopFont() to a section.
2025-05-26 19:32:28 +02:00
ocornut
407a0b972e
(Breaking) Fonts: CalcWordWrapPositionA() -> CalcWordWrapPosition(), takes size instead of scale.
...
This will be needed for upcoming changes.
2025-05-23 16:08:00 +02:00
ocornut
5f0acadf7d
RenderTextEllipsis() added breaking comments.
2025-05-20 18:06:12 +02:00
ocornut
143924bbf3
Image(), ImageWithBg(): added extra comments. ( #8131 , #8238 )
2025-05-20 17:53:17 +02:00
ocornut
1ffa7a40ac
TextLinkOpenURL(): added bool return value on click. ( #8645 , #8451 , #7660 )
2025-05-20 17:32:50 +02:00
ocornut
415dddf0fa
Tooltips: tooltips have a maximum size corresponding to host display/monitor size.
2025-05-19 18:42:55 +02:00
ocornut
10a0eb3e1c
Alter windows min/max size logic to prioritize enforcing size_max bounds rather than size_min.
...
Docking branch until now used the opposite, aka ImClamp(size_desired, size_min, ImMax(size_min, size_max));, will be standardized across branches.
2025-05-19 18:42:28 +02:00
ocornut
cdb5cbe6f8
(Breaking) Commented out ImGuiListClipper::ForceDisplayRangeByIndices() which was obsoleted in 1.89.6.
...
Amend ecb0aaa .
2025-05-15 17:44:27 +02:00
ocornut
d93d918eca
(Breaking) Commented out PushAllowKeyboardFocus()/PopAllowKeyboardFocus() which was obsoleted in 1.89.4. ( #3092 )
...
Amend e83fb46 .
2025-05-15 17:43:27 +02:00
ocornut
6d939fcedc
(Breaking) TreeNode: renamed ImGuiTreeNodeFlags_NavLeftJumpsBackHere to ImGuiTreeNodeFlags_NavLeftJumpsToParent for clarity. ( #1079 , #8639 )
2025-05-15 17:35:29 +02:00
ocornut
9361c35176
Backends: SDL2, SDL3: maximum room for sanitizer to not be zealous.
2025-05-15 15:36:42 +02:00
ocornut
4e487cfa99
stb_textedit: subsequent comments to match ocornut/stb branch. ( #8635 , #7925 )
2025-05-14 14:05:19 +02:00
ocornut
1387d356aa
stb_textedit: subsequent fixes for next/prev word impl (not used by imgui) + PageUp/Home/End (no side effect but more correct) ( #8635 , #7925 )
2025-05-14 13:38:36 +02:00
ocornut
5c3ac93335
stb_textedit: minor edits to match PR submitted upstream.
2025-05-14 13:17:53 +02:00
ocornut
61242e2e6a
InputText: fixed cursor positioning issue using up/down keys on non-ASCII text. ( #8635 , #7925 )
...
Bug introduced in abd07f6d30 .
Ref https://github.com/nothings/stb/issues/188
2025-05-14 11:37:55 +02:00
ocornut
f484af34c2
Font: rename ImFont::AddRemapChar() parameters for clarity. ( #609 )
2025-05-08 18:05:05 +02:00
ocornut
bf68040dc5
Backends: Vulkan: fixed build with VK_NO_PROTOTYPES.
...
Amend bbc89b6 (#8600 )
2025-05-07 15:42:23 +02:00
ocornut
64a5e27486
Docs: bad merge error.
2025-05-07 14:22:19 +02:00
ocornut
c0dfd65d67
Backends: Win32: Fixed an issue where externally losing mouse capture (due to e.g. focus loss) would fail to claim it again the next subsequent click. ( #8594 )
2025-04-30 16:23:58 +02:00
ocornut
20066a8964
Examples: DirectX12+Win32: also test for IsIconic() for sleeping since we don't seem to get a DXGI_STATUS_OCCLUDED signal when minimized. ( #8603 )
...
Amend ec1d2be96f . (#2496 , #3907 , #6308 , #7615 )
This technically prevents multi-viewports from working with io.ConfigViewportsNoDefaultParent=true but this is a more fringe case to handle for our example app, better tradeoff imho to use IsIconic().
2025-04-30 11:30:06 +02:00
ocornut
3f8033324f
Demo: Dual List Box: fix sorting function, in theory should return 0 when equal. ( #8601 )
2025-04-30 11:10:58 +02:00
ocornut
75964a9860
CI: run on ubuntu-latest.
2025-04-24 14:39:25 +02:00
ocornut
0fc4967ebc
Rework TextAligned() api to fix issues with baseline alignment + use standard CalcItemSize(). ( #7024 )
2025-04-23 15:08:57 +02:00
ocornut
aed1bcc12c
Rework TextAligned() api to take size input. ( #7024 )
2025-04-23 14:52:29 +02:00
ocornut
6a42d6b339
Added wp TextAligned() TextAlignedV(), TextAlignedExV() to internal API. ( #7024 )
2025-04-23 14:39:59 +02:00
ocornut
dcf0d8cab6
Tables: fixed TableHeader() eager vertical clipping of text. ( #6236 )
2025-04-22 18:34:56 +02:00
ocornut
7c6ce12fa4
Platform IME: minor amend to bf0f586 ( #8584 )
2025-04-22 11:24:02 +02:00
ocornut
bf0f586b69
Platform IME: added ImGuiPlatformImeData::WantTextInput, ViewportId. Backends: SDL3: honor WantTextInput. ( #8584 , #7492 , #6341 )
2025-04-22 11:21:02 +02:00
ocornut
3ab50c334a
TreeNode, Style: added style.TreeLinesRounding support. ( #2920 )
2025-04-10 19:26:29 +02:00
ocornut
9943137d1e
TreeNode: fixed non-opened clipped child node not moving Y2 marker. ( #2920 )
2025-04-10 17:25:06 +02:00
ocornut
ee0d96ac0d
TreeNode: extract code out of TreePop() into TreeNodeDrawLineToTreePop(). ( #2920 )
2025-04-10 17:00:29 +02:00
ocornut
8c977bf7b3
TreeNode, Tables: fixed ImGuiTreeNodeFlags_DrawLinesXXX feature when TreePop() is called in table: in no column or at top of row. ( #2920 )
2025-04-10 16:53:14 +02:00
ocornut
5311253468
TreeNode: ImGuiTreeNodeFlags_DrawLinesFull uses ToNodes Y2 when they are close (using a threshold). ( #2920 )
2025-04-10 16:03:39 +02:00
ocornut
ed50bb1676
TreeNode, Tables: fixed ImGuiTreeNodeFlags_DrawLinesXXX feature when TreePop() is called from a different column. ( #2920 )
2025-04-10 14:47:08 +02:00
ocornut
bbb0f0ade4
TreeNode: fixed incorrect clipping of arrow/bullet when using ImGuiTreeNodeFlags_SpanAllColumns.
2025-04-10 14:08:17 +02:00
ocornut
43caca05c2
TreeNode: DrawLines: tweak X2 offset to avoid losing line when ItemSpacing is large. ( #2920 )
2025-04-09 18:57:20 +02:00
ocornut
bcbbfdaad4
TreeNode: DrawLines: latch X1 offset during TreePush(). ( #2920 )
2025-04-09 18:56:56 +02:00
ocornut
5e7174dec6
TreeNode: removed TreeLinesSize > 0.0f optimization check. ( #2920 )
...
This is desirable but we'd need to avoid exposing 0.0f in style editor + assert on it.
2025-04-09 17:40:15 +02:00
ocornut
789de09dda
TreeNode: extracted TreeNodeDrawLineToChildNode() for usage by custom widgets ( #2920 )
2025-04-09 12:04:09 +02:00
ocornut
faa03031b4
Windows: loosened code to handle ImGuiButtonFlags_FlattenChildren so that master matches docking. ( #8554 )
...
This essentially merges 059560d2 back into master.
2025-04-07 18:21:34 +02:00
ocornut
974bf58a21
Backends: Vulkan: Build and warning fixes. ( #8282 )
2025-04-07 17:39:00 +02:00
ocornut
91652c317e
Backends: Vulkan: Deep-copy ImGui_ImplVulkan_InitInfo::PipelineRenderingCreateInfo's pColorAttachmentFormats buffer when set, in order to reduce common user-error of specifying a pointer to data that gets out of scope. ( #8282 )
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
# docs/CHANGELOG.txt
2025-04-07 16:40:14 +02:00
ocornut
9701810bc3
TreeNode: adding ImGuiTreeNodeFlags_NoNavFocus in imgui_internal.h ( #8551 )
2025-04-07 11:41:21 +02:00
ocornut
4bdb0ac685
Comments
2025-03-31 15:12:28 +02:00
ocornut
b6786595a4
Backends: SDLGPU3: Made ImGui_ImplSDLGPU3_PrepareDrawData() reuse GPU Transfer Buffers which were unusually slow to recreate every frame. ( #8534 )
2025-03-31 14:45:29 +02:00
ocornut
a26fcf58cc
Nav: fixed assertion when holding gamepad FaceLeft/West button + pressing a keyboard key. ( #8525 )
2025-03-30 16:40:39 +02:00
ocornut
8bbdfefe05
Nav: added bool ConfigNavWindowingWithGamepad to disable windowing with gamepad. ( #8525 , #4828 , #3255 , #5641 )
2025-03-30 15:05:27 +02:00
ocornut
187acb8609
Nav: polling gamepad for ImGuiKey_NavGamepadMenu use routing-friendly Shortcut() so Ctrl+Tab equivalent may be hijacked. ( #8525 , #4828 , #3255 , #5641 )
2025-03-30 14:46:58 +02:00
ocornut
702a67807b
Move Changelog entry. ( #8509 )
2025-03-21 20:17:49 +01:00
ocornut
ca3ba28768
Internals: made MousePos an argument of UpdateHoveredWindowAndCaptureFlags(). ( #8431 , #1152 )
2025-03-21 17:21:45 +01:00
ocornut
102f3f3a0d
IO: variations in analog-only components of gamepad events do not interfere with trickling of mouse position events ( #4921 , #8508 )
2025-03-21 16:18:36 +01:00
ocornut
979c7d76ab
Backends: SDL2, SDL3, OSX: Fill gamepad inputs and set ImGuiBackendFlags_HasGamepad regardless of ImGuiConfigFlags_NavEnableGamepad being set. ( #8508 )
2025-03-21 15:42:47 +01:00
ocornut
d467950a5e
Style, InputText: added ImGuiCol_InputTextCursor to configure color of the InputText cursor/caret. ( #7031 )
2025-03-19 17:50:40 +01:00
ocornut
0ecb2bbe74
Version 1.92.0 WIP
2025-03-19 17:45:20 +01:00
ocornut
ee48ffe021
Added comments about line/rect thickness needing scaling. ( #7031 )
2025-03-19 17:42:19 +01:00
ocornut
f5befd2d29
Version 1.91.9b
2025-03-17 20:17:26 +01:00
ocornut
cfed7a3a54
Tables: fixed assert/issues loading settings. ( #8496 , #7934 )
...
Not sure what I did with 05742f9b6f but I missed on the primary filter.
2025-03-17 20:04:50 +01:00
ocornut
93b446a962
Backtrack of version tagging 1.92.0 > 1.91.9b for publishing a hotfix ( #8496 )
2025-03-17 19:39:52 +01:00
ocornut
a7dc184772
Moved ImDrawIdx definition lower in imgui.h. Moved ImTextureID slightly below in its own section.
2025-03-17 19:19:25 +01:00
ocornut
bfaef8ca17
Version 1.92.0 WIP
2025-03-17 19:09:07 +01:00
ocornut
2737dbb1e1
Docs: Fixed typo. Very oops. ( #8495 )
2025-03-17 11:51:57 +01:00