ocornut
98c2f6b0c4
Tables, Error Handling: Recovery from invalid index in TableSetColumnIndex(). ( #1651 )
2025-02-13 16:19:41 +01:00
ocornut
e1ae7db4cc
Backends: Vulkan: Fixed building with older headers not supporting VK_HEADER_VERSION_COMPLETE. ( #8326 , #8365 )
2025-02-13 16:03:40 +01:00
ocornut
12963f5231
Examples: Vulkan: make ApiVersion a little more visible in examples. ( #8326 , #8365 )
2025-02-13 15:49:47 +01:00
ocornut
890ead6a71
Backends: Vulkan: Added ApiVersion field in ImGui_ImplVulkan_InitInfo. Dynamic rendering path loads "vkCmdBeginRendering/vkCmdEndRendering" without -KHR on API 1.3. ( #8326 , #8365 )
2025-02-13 15:40:49 +01:00
ocornut
b78cc37891
Backends: SDL2: Fixed build for versions older than 2.0.14. ( #7660 )
2025-02-12 19:27:43 +01:00
ocornut
a931fb7f51
Fixed static analyzer warning.
...
(was harmless as initialized in NewFrame)
2025-02-12 19:15:00 +01:00
ocornut
7cd31c3557
Tables: tamed some .ini settings optimizations to more accurately allow overwriting/hot-reloading settings. ( #7934 )
2025-02-12 19:08:52 +01:00
ocornut
7221f5e739
Styles, Tabs: Fixed ef7ffaf. ( #8387 )
2025-02-12 19:01:02 +01:00
ocornut
ef7ffaff74
Styles, Tabs: (Breaking) Renamed TabMinWidthForCloseButton to TabCloseButtonMinWidthUnselected. Added TabCloseButtonMinWidthSelected. ( #8387 )
2025-02-12 15:46:17 +01:00
ocornut
3b2f2602b4
Windows: Fixed an issue where BeginChild() inside a collapsed Begin() wouldn't inherit the SkipItems flag.
...
Amend/fix a89f05a10 (old!)
Discovered while looking at glyph being processed in WIP branch.
2025-02-10 21:34:55 +01:00
ocornut
4dc9df6aae
Tables: fixed an issue where Columns Visible/Hidden state wouldn't be correctly overridden when hot-reloading .ini state. ( #7934 )
2025-02-10 19:29:18 +01:00
ocornut
88cda0cab6
Fixed minor warning. Added comment.
2025-02-10 12:39:54 +01:00
ocornut
a431e1277e
Backends: SDL2, SDL3: Using SDL_OpenURL() in platform_io.Platform_OpenInShellFn handler. ( #7660 )
2025-02-10 12:09:44 +01:00
ocornut
a18622c369
TextLinkOpenURL(): fixed default Win32 io.PlatformOpenInShellFn handler to handle UTF-8 regardless of system regional settings. ( #7660 )
2025-02-10 12:02:01 +01:00
ocornut
2206e31e54
Demo: Combos: demonstrate a very simple way to add a filter to a combo. ( #718 )
2025-02-10 11:38:17 +01:00
ocornut
50dbb086f2
Tables: sneakily honor ImGuiNextWindowDataFlags_HasChildFlags/ImGuiNextWindowDataFlags_HasWindowFlags as a way to facilitate various hacks/workarounds.
2025-02-07 22:57:15 +01:00
ocornut
e368015d79
Tables: a clipped scrolling table correctly clears SetNextWindowXXX flags. ( #8196 )
...
Amend 43c51eb12
2025-02-07 22:56:02 +01:00
ocornut
e5668b8c73
Internals: rename ImGuiNextWindowData::Flags to HasFlags for consistency and to reduce mistakes.
2025-02-07 22:48:31 +01:00
ocornut
4982602f6f
Windows, Style: Added style.WindowBorderHoverPadding setting to configure inner/outer padding applied to hit-testing of windows borders.
...
Amend 3c7177c6 , 59f3c4fc2 , ae7f833c6 .
Could be latched inside windows to be multi-dpi friendly, but likely won't matter soon.
2025-02-07 18:16:04 +01:00
ocornut
914fbcf2e5
Fonts: removed unnecessary const qualifier from ImFont::FindGlyph()
...
Amend 0bde57c
2025-02-07 16:26:20 +01:00
ocornut
0625b37760
Scrollbar: Rework logic that fades-out scrollbar when it becomes too small.
...
Amend 0236bc246f
2025-02-06 18:41:47 +01:00
ocornut
cfed18afc7
Add ImFontConfig::GlyphExtraAdvanceX as a replacement for GlyphExtraSpacing.x ( #242 )
...
Partly restore 1a31e31 .
2025-02-06 12:34:37 +01:00
ocornut
1a31e31ae9
(Breaking) Fonts: removed ImFontConfig::GlyphExtraSpacing option which seems largely obsolete and unused. ( #242 )
2025-02-03 17:55:35 +01:00
ocornut
de962e83d0
ImFont: remove SetGlyphVisible()
...
Which was never marked public. Added by d284a6cff . (#2149 , #515 )
Making room by removing stuff that are inconvenient to implement in our scaling system.
If you were using this function please post an issue to report it.
2025-02-03 17:50:12 +01:00
ocornut
5dd84082ab
InputTextWithHint(): Fixed buffer overflow when user callback modifies the buffer contents in a way that alters hint visibility. ( #8368 )
2025-02-03 15:11:22 +01:00
ocornut
204cebc8fc
Backends: Metal: Fixed a crash on application resources. ( #8367 , #7419 ) [@anszom]
2025-02-03 14:21:53 +01:00
ocornut
6265339995
Fixed IsItemDeactivatedAfterEdit() signal being broken for Checkbox(), RadioButton(), Selectable(). ( #8370 )
...
Item is already made inactive at the time of calling MarkItemEdited().
Fix a604d4f71
2025-02-03 14:03:43 +01:00
ocornut
f820bf7cd4
Version 1.91.9 WIP
2025-02-03 12:33:40 +01:00
ocornut
e4db4e423d
Internals: renamed GetIOEx() to GetIO(). Added GetPlatformIO() explicit context variant. - OOPS
2025-01-31 19:50:18 +01:00
ocornut
e2a99b5760
Internals: renamed GetIOEx() to GetIO(). Added GetPlatformIO() explicit context variant.
2025-01-31 18:28:31 +01:00
ocornut
dbb5eeaadf
Version 1.91.8
2025-01-31 16:08:17 +01:00
ocornut
ae6cfd32a0
Tables, Menus: Fixed tables or child windows submitted inside BeginMainMenuBar() being unable to save their settings. ( #8356 )
...
Amend error handling (fa178f4 ) to avoid us setting ImGuiWindowFlags_NoSavedSettings on the wrong window.
2025-01-30 14:34:51 +01:00
ocornut
fa178f4235
Error Handling: Recovery from missing EndMenuBar() call. ( #1651 )
2025-01-30 14:30:14 +01:00
ocornut
c0308da665
Fixed zealous GCC warning. ( #8355 )
...
Amend dfd1bc3
2025-01-29 20:13:22 +01:00
ocornut
dabc990189
Rename internal id for standardizing naming convention. "##menubar" -> "##MenuBar", "###NavWindowingList" -> "###NavWindowingOverlay"
...
"###NavUpdateWindowing" one should have zero side effect on anyone.
2025-01-29 19:59:41 +01:00
ocornut
a71191515a
EndMainMenuBar doesn't attempt to restore focus when there's an active id. ( #8355 )
...
I don't have a specific issue in mind but it seems sane to add that test.
2025-01-29 19:07:28 +01:00
ocornut
dfd1bc3c5b
Tables, Menus: Fixed using BeginTable() in menu layer (any menu bar). ( #8355 )
2025-01-29 19:05:18 +01:00
ocornut
4230e98720
Error Handling, Debug Log: IMGUI_DEBUG_LOG_ERROR() doesn't need the extra variable.
...
Amend 236006152
2025-01-28 14:39:10 +01:00
ocornut
ea0da0bf47
Extracted PushPasswordFont() out of InputText code.
2025-01-27 18:04:44 +01:00
ocornut
9c4948a4d1
TabBar: Internals: added TabItemSpacing(). ( #8349 , #3291 )
2025-01-27 15:41:24 +01:00
ocornut
a05d547ae8
Windows: separating WindowItemStatusFlags from ChildItemStatusFlag, because IsItemXXX _after_ BeginChild()>Begin() shouldn't return last status emitted by e.g. EndChild()
...
As IsItemXXX() after is specced as returning title bar data we don't want to lock ourselves up from adding them to child window (e.g. MDI idea using windows to host child windows).
2025-01-27 14:39:26 +01:00
ocornut
134fbe1245
Windows: Fixed IsItemXXXX() functions not working on append-version of EndChild(). ( #8350 )
...
Also made some of the fields accessible after BeginChild() to match Begin() logic.
2025-01-27 12:41:31 +01:00
ocornut
5a28f188ff
Fixed parameter names to SetLastItemData() to align with current names.
2025-01-27 12:27:15 +01:00
ocornut
afb6e9a879
Fonts: OversampleH auto-selection uses 36 as heuristic for now.
2025-01-24 20:03:04 +01:00
ocornut
8a1613a382
Fonts: OversampleH/OversampleV value defaults to 0 for automatic selection.
2025-01-24 19:32:30 +01:00
ocornut
4211fdc70b
ImFont: compact comments in header section.
2025-01-24 17:49:34 +01:00
ocornut
9eafb7bbfb
ImFont: IndexLookup[] table hold 16-bit values even in ImWchar32 mode.
2025-01-24 16:54:59 +01:00
ocornut
53244aaac7
Amend 9bc5b04 with a shadowed variable warning fix.
2025-01-24 15:00:21 +01:00
ocornut
ed7551c1d4
Selectable: Fixed horizontal label alignment when combined with using ImGuiSelectableFlags_SpanAllColumns. ( #8338 )
2025-01-24 14:59:37 +01:00
ocornut
bbf957875b
Amend 9bc5b04 to avoid using GImGui mid-function.
2025-01-24 14:43:16 +01:00
ocornut
9bc5b0406d
Windows, Style: Fixed small rendering issues with menu bar, resize grip and scrollbar when using thick border sizes. ( #8267 , #7887 )
...
Amend e.g. 742b5f4c .
2025-01-24 14:39:07 +01:00
ocornut
10199341b1
ImFontAtlas: made calling ClearFonts() call ClearInputData(). ( #8174 , #6556 , #6336 , #4723 )
2025-01-23 11:31:32 +01:00
ocornut
71da34c48c
Debug Tools: Tweaked font preview + indent "Glyphs" block.
2025-01-22 16:56:18 +01:00
ocornut
6906ac979e
ColorEdit, ColorPicker: (Breaking) redesigned how alpha is displayed in the preview square. ( #8335 , #1578 , #346 )
...
Added ImGuiColorEditFlags_AlphaOpaque, ImGuiColorEditFlags_AlphaNoBg.
Removed ImGuiColorEditFlags_AlphaPreview.
2025-01-22 12:12:07 +01:00
ocornut
fdca6c08ad
Inputs: added IsMouseReleasedWithDelay() helper. ( #8337 , #8320 )
2025-01-22 11:28:47 +01:00
ocornut
d17e9fc107
Backends: SDL_GPU: shallow tweaks + disable anisotropy in sampler. Examples: SDL+Vulkan: Fixed incorrect defines.
2025-01-22 10:37:39 +01:00
ocornut
3e6bdc2242
Examples: SDL3+SDL_GPU: use SDL_GPU_PRESENTMODE_MAILBOX swapchain parameters.
2025-01-22 10:22:31 +01:00
ocornut
bf13442c7c
Moved ImGuiColorEditFlags_AlphaPreview/ImGuiColorEditFlags_AlphaPreviewHalf flags. Demo: reorganized some of color edit/picker demo section.
2025-01-21 14:59:29 +01:00
ocornut
7ae7c90790
Tabs, Style: reworked selected overline rendering to better accommodate for rounded tabs. ( #8334 )
2025-01-21 13:55:44 +01:00
ocornut
e8779a67b1
Font: direct AddText()/RenderText() calls don't need to call strlen() if below clipping region.
...
Unlikely to meaningful affect anyone but still..
2025-01-20 18:00:03 +01:00
ocornut
4c2e7bb035
Backends: SDL2,SDL3: removed assert preventing using ImGui_ImplSDL2_SetGamepadMode()/ImGui_ImplSDL3_SetGamepadMode() with ImGui_ImplSDL2_GamepadMode_Manual/ImGui_ImplSDL3_GamepadMode_Manual and an empty array. ( #8329 )
2025-01-20 15:24:46 +01:00
ocornut
8b0af7fddc
Backends: SDL: update comments regarding API stability, regarding SDL_GPU and SDL_Renderer.
2025-01-20 14:30:40 +01:00
ocornut
80c9cd1f6e
Font: reduce unnecessary padding in ImFontConfig struct too.
2025-01-18 16:45:58 +01:00
ocornut
d7454de80a
Font: minor tweak to struct alignment.
2025-01-17 18:09:28 +01:00
ocornut
dd89a3741b
Backends: Vulkan: sharing duplicate code. ( #5446 , #8326 )
2025-01-17 17:11:22 +01:00
ocornut
487d7f9a29
Font: Internals: make used page maps smaller. Since it's extremely rarely used and for iterations only. ~34->16 bytes with ImWchar32.
2025-01-16 22:30:43 +01:00
ocornut
f2262eb81a
Windows: latch FontRefSize at time of Begin(), consistent with e.g. TitleBarHeight, and to avoid calling CalcFontSize() on non-current window.
2025-01-16 19:46:54 +01:00
ocornut
b7c27c5333
Windows: legacy SetWindowFontScale() is properly inherited by nested child windows. ( #2701 , #8138 , #1018 )
2025-01-16 19:08:39 +01:00
ocornut
4c64ba16c5
imgui_freetype: fixed issue where glyph advances would incorrectly be snapped to pixels.
2025-01-16 17:42:00 +01:00
ocornut
b4a5d1dc53
Backends: SDLGPU3: Rename GpuDevice->Device. Expose ImGui_ImplSDLGPU3_CreateDeviceObjects(), ImGui_ImplSDLGPU3_DestroyDeviceObjects(). Misc renaming. ( #8163 , #7998 , #7988 )
2025-01-16 12:43:06 +01:00
ocornut
0f33d7185f
Examples: Vulkan: vkAcquireNextImageKHR() and vkQueuePresentKHR() returning VK_SUBOPTIMAL_KHR keeps moving forward. ( #7825 , #7831 )
2025-01-15 17:31:38 +01:00
ocornut
8ebf22d3c1
Backends: Vulkan: use ImVector<> for simplicity.
2025-01-15 16:21:16 +01:00
ocornut
6684984c49
Examples: DirectX12: Reduced number of frame in flight from 3 to 2 in provided example, to reduce latency.
2025-01-15 15:13:05 +01:00
ocornut
0e21bde77b
Misc shallow merge to reduce diff in other branches.
2025-01-15 14:00:03 +01:00
ocornut
8a9de84cd0
FontAtlas: reduced baked IM_DRAWLIST_TEX_LINES_WIDTH_MAX from 63 to 32. ( #3245 )
2025-01-15 14:00:03 +01:00
ocornut
100075f2be
Backends: DirectX12: Texture upload use the command queue provided in ImGui_ImplDX12_InitInfo instead of creating its own.
...
+ minor tweaks to faciliate branch merging.
2025-01-15 12:15:24 +01:00
ocornut
c59a2267d0
Version 1.91.8 WIP
2025-01-15 11:58:47 +01:00
ocornut
5c1d2d1e4c
Version 1.91.7
2025-01-14 13:29:25 +01:00
ocornut
9f8481a842
(Breaking) TreeNode: renamed ImGuiTreeNodeFlags_SpanTextWidth to ImGuiTreeNodeFlags_SpanLabelWidth. ( #6937 )
2025-01-14 13:14:50 +01:00
ocornut
21902e2f53
Backends: SDL_GPU: fixed SDL_GPUViewport initialisation. ( #8163 , #7998 , #7988 )
...
Probably harmless. Amend 8bbccf7
2025-01-13 19:51:15 +01:00
ocornut
c38c18c1a0
Avoid using 1<<31 for ImGuiWindowFlags_NavFlattened as it seems to confuse some binding generators.
2025-01-13 19:39:57 +01:00
ocornut
c5f60942bd
Demo: tweak demo for ImGuiTreeNodeFlags_LabelSpanAllColumns. ( #8318 , #3565 )
2025-01-13 19:19:30 +01:00
ocornut
290e402a02
TreeNode, Tables: added ImGuiTreeNodeFlags_LabelSpanAllColumns. ( #8318 , #3565 )
2025-01-13 18:55:09 +01:00
ocornut
6fb7d44255
Backends: SDL2/SDL3: Comments. ( #7672 , #7670 )
2025-01-13 17:40:38 +01:00
ocornut
32cea85331
Debug Tools: Item Picker: Always available in menu. Tweak Demo Debug Options. ( #2673 , #1651 )
2025-01-13 15:51:39 +01:00
ocornut
00f12b9a09
InputText: Fixed not calling CallbackEdit on revert/clear with Escape key. ( #8273 ) + rework comments.
...
Seems like there is no reason to not run that path. Amend ancient 9501cd99 , f3ab5e625
2025-01-13 15:25:20 +01:00
ocornut
a604d4f717
Fixed IsItemDeactivated(), IsItemDeactivatedAfterEdit() to work when interrupted before/after the active id is submitted. ( #5184 , #5904 , #6766 , #8303 , #8004 )
2025-01-13 14:09:41 +01:00
ocornut
a28ffa81c4
Docs: added more references to IsKeyDown(), InFlags. ( #8317 )
2025-01-13 13:35:26 +01:00
ocornut
0b8ff4b238
Backends, Examples: Vulkan: add IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE. use in descriptor pools sizes. ( #6642 )
2025-01-09 23:29:44 +01:00
ocornut
596e09770d
Backends: SDL3: Added ImGui_ImplSDL3_InitForSDLGPU() for consistency. ( #8163 , #7998 , #7988 )
2025-01-09 17:07:53 +01:00
ocornut
e799849272
Backends: SDLGPU3: Added sdl_gpu backend (amends). ( #8163 , #7998 , #7988 )
2025-01-09 16:55:03 +01:00
ocornut
940d9540f3
Fixed MinGW builds uses UTF-8 friendly _wfopen(). ( #8300 )
...
Amend bbd0a37bd , 40db2ca09
2025-01-09 15:28:48 +01:00
ocornut
c7983115e9
Fonts: Further tweaks for Ellipsis ("...") character width when automatically created from a single comma character: use AdvanceX as min.
2025-01-08 18:27:01 +01:00
ocornut
90094a871a
Fonts: Fixed miscalculation of Ellipsis ("...") character width when automatically created from a single comma character.
2025-01-08 18:13:53 +01:00
ocornut
1c67a3412e
BeginChild: also caller to manually set ImGuiNextWindowDataFlags_HasChildFlags / ChildFlags. ( #8280 )
2025-01-08 14:55:51 +01:00
ocornut
2b8545684c
Refactor: moved Window Focus related functions to a dedicated section.
2025-01-08 14:22:37 +01:00
ocornut
bbbdc70f26
Refactor: moved FindBlockingModal() in its section.
2025-01-08 14:22:04 +01:00
ocornut
0514332474
Avoid clang/gcc warnings: -Wnontrivial-memaccess in backends. ( #8295 , #8129 , #8135 )
2025-01-08 11:44:00 +01:00
ocornut
cec8ff1885
Backends: Vulkan: Fixed building with using VK_NO_PROTOTYPES. ( #8180 )
...
Broken by a2e2172
2025-01-06 18:41:17 +01:00
ocornut
f04d3cbdaa
Backends: DirectX10: Expose selected render state in ImGui_ImplDX10_RenderState, which you can access in 'void* platform_io.Renderer_RenderState' during draw callbacks. ( #6969 , #5834 , #7468 , #3590 )
...
Amend e94f95d
2025-01-06 18:28:01 +01:00