ocornut
75d99659c4
Docking: move DockTabItemStatusFlags stuff next to its peers in DC structure.
2025-01-27 15:48:20 +01:00
ocornut
db4e541306
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
# imgui_internal.h
# imgui_widgets.cpp
2025-01-27 15:45:26 +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
81dab646ee
Merge branch 'master' into docking
2025-01-25 01:15:30 +01:00
ocornut
96e3b147f0
Fixed build with IMGUI_ENABLE_FREETYPE ( #8346 )
2025-01-25 01:14:46 +01:00
ocornut
afb6e9a879
Fonts: OversampleH auto-selection uses 36 as heuristic for now.
2025-01-24 20:03:04 +01:00
ocornut
355cb589e3
Merge branch 'master' into docking, incl conflict merge in BeginMenuBar() for #8267
...
# Conflicts:
# imgui_widgets.cpp
2025-01-24 19:40:54 +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
64e738cae7
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
2025-01-22 12:19:09 +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
David Maas
a3802c84fd
Backends: SDL3: new viewport windows are created with the SDL_WINDOW_HIDDEN flag before calling SDL_ShowWindow(). ( #8328
...
Unsure why it was missing from a526ff8c3
2025-01-22 10:02:24 +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
David Maas
2af26b75d1
ColorEdit, ColorPicker: Fixed alpha preview broken in 1.91.7. ( #8336 , #8241 ). [@PathogenDavid]
...
ImAlphaBlendColors() was broken by ImLerp() change. (cd6c83c
)
2025-01-21 14:26:00 +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
6e94f6cefb
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_osx.mm
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# imgui.cpp
# imgui_internal.h
2025-01-20 18:04:31 +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
Julian Rachele
aa1b4ea861
Backends: OSX: Remove notification observer when shutting down. ( #8331 )
2025-01-20 09:24:43 +01:00
Daniel K. O. (dkosmari)
aa23f3801b
Backends: SDL_Renderer2/3: Use endian-dependent RGBA32 texture format, to match SDL_Color. ( #8327 )
2025-01-18 17:26:36 +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
Diego Mateos
007735737a
Ignore vscode artifacts ( #8324 )
2025-01-16 17:10:26 +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
109dd2be5d
Backends: Vulkan: VK_SUBOPTIMAL_KHR doesn't skip frame. ( #7831 , #7825 )
2025-01-15 17:50:57 +01:00
ocornut
507cdba44e
Backends: Vulkan: vkQueuePresentKHR() returning VK_SUBOPTIMAL_KHR keeps moving forward. ( #7825 )
2025-01-15 17:38:37 +01:00
ocornut
015186aaf8
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_dx12.cpp
# backends/imgui_impl_vulkan.cpp
2025-01-15 17:34:17 +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
b9badb597a
Backends: Vulkan: removed misleading code incrementing frameindex. ( #7834 )
...
Thanks NostraMagister!
2025-01-15 17:08:04 +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