ocornut
e55415bfef
(Breaking) renamed/moved ImGuiConfigFlags_DpiEnableScaleFonts -> ioConfigDpiScaleFonts, ImGuiConfigFlags_DpiEnableScaleViewports -> io.ConfigDpiScaleViewports
2025-06-11 15:02:06 +02:00
ocornut
eaac68ca2c
Merge branch 'master' into docking
...
# Conflicts:
# imgui_demo.cpp
2025-06-04 22:30:43 +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
a92b53df7b
Backends: Win32: Viewports: handle WM_DPICHANGED in backend when ImGuiConfigFlags_DpiEnableScaleViewports flag is enabled.
2025-06-02 19:21:22 +02:00
ocornut
ac6b84a7d7
Viewports: fixed handling of simultaneous move + resize (e.g. toggling maximized) when ImGuiConfigFlags_DpiEnableScaleViewports is enabled.
...
Amend 967073ba3d
2025-06-02 17:15:40 +02:00
ocornut
5e17c08010
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
2025-05-30 22:00:26 +02:00
ocornut
69e1fb50ca
Docs: fixed missing commit credit. ( #8656 )
2025-05-30 21:59:13 +02:00
Romain Moret
e6913f58b9
imgui_freetype: Update lunasvg API to support v3.0+ ( #8656 , #6842 , #6591 )
2025-05-30 21:58:25 +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
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
1ffa7a40ac
TextLinkOpenURL(): added bool return value on click. ( #8645 , #8451 , #7660 )
2025-05-20 17:32:50 +02:00
ocornut
e11ad6b77e
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# imgui.cpp
2025-05-19 18:48:22 +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
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
c008c7d494
Merge remote-tracking branch 'origin/master' into docking
...
# Conflicts:
# backends/imgui_impl_dx10.cpp
# backends/imgui_impl_dx11.cpp
# backends/imgui_impl_dx12.cpp
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
2025-05-15 14:45:15 +02:00
ocornut
c90ea1315a
Viewports: added per-viewport FramebufferScale, Platform_GetWindowFramebufferScale() + Backends: GLFW, SDL2, SDL3, Apple: added support. ( #1065 , #1542 , #1676 , #1786 , #2826 , #3757 , #5081 , #5580 , #5592 , #6465 , #7273 , #7779 etc.)
...
)
Metal backend is not in charge of writing to DpiScale/FramebufferScale (tho it was a neat workaround).
2025-05-15 14:43:30 +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
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
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
WSSDude
ba513ba804
Backends: DX10, DX11, DX12: honor FramebufferScale. ( #8412 )
...
# Conflicts:
# backends/imgui_impl_dx11.cpp
# backends/imgui_impl_dx12.cpp
2025-05-07 19:19:30 +02:00
ocornut
1c8fad73f8
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdlgpu3.cpp
# backends/imgui_impl_vulkan.cpp
# backends/imgui_impl_win32.cpp
2025-05-07 15:24:46 +02:00
ChrisTom-94
bbc89b6391
Backends: Vulkan: fixed validation errors during window detach in multi-viewport mode. ( #8600 , #8176 )
2025-05-07 15:23:03 +02:00
ocornut
64a5e27486
Docs: bad merge error.
2025-05-07 14:22:19 +02:00
ChrisTom-94
d1dc2a3298
Backends: Vulkan: Load dynamic rendering functions using vkGetDeviceProcAddr() + try both non-KHR and KHR versions. ( #8600 , #8326 , #8365 )
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
# docs/CHANGELOG.txt
2025-05-07 11:50:32 +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
ef62aa7333
Backends: SDL3: macOS: Fixed secondary-viewports not appearing on a different monitor than the main viewport.
2025-05-05 19:04:18 +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
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
fcdaa32793
Backends: GLFW: Disable multi-viewports under Wayland. ( #8587 )
2025-04-26 14:54:09 +02:00
ocornut
fe298cf984
Revert "Backends: SDL2, SDL3: viewports created with ImGuiViewportFlags_NoInputs are passing SDL_WINDOW_TOOLTIP to SDL_CreateWindow(). ( #8576 )"
...
This reverts commit 2a000ee091 .
2025-04-25 20:10:46 +02:00
ocornut
2a000ee091
Backends: SDL2, SDL3: viewports created with ImGuiViewportFlags_NoInputs are passing SDL_WINDOW_TOOLTIP to SDL_CreateWindow(). ( #8576 )
...
Which reduces issues related to losing key down state on focus loss.
2025-04-23 19:12:32 +02:00
ocornut
839e3274e1
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# imgui.cpp
# imgui.h
# imgui_widgets.cpp
2025-04-23 14:42:36 +02:00
ocornut
dcf0d8cab6
Tables: fixed TableHeader() eager vertical clipping of text. ( #6236 )
2025-04-22 18:34:56 +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
87f12e56fe
Backends: SDL_GPU: Added multi-viewport support. Amends + update example. ( #8573 , #8163 , #7998 , #7988 )
2025-04-17 15:41:15 +02:00
ocornut
88d2df24be
Merge branch 'master' into docking
2025-04-16 20:31:18 +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
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
3ab50c334a
TreeNode, Style: added style.TreeLinesRounding support. ( #2920 )
2025-04-10 19:26:29 +02:00
ocornut
f4d9359095
Merge branch 'master' into docking
2025-04-10 17:26:11 +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