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
Pascal Thomet
842837e35b
imgui_freetype: fix conversion null -> bool in FontBakedLoadGlyph ( #8696 )
2025-06-16 18:36:33 +02:00
Shawn Hatori
6b3cbb10a2
Backends: Vulkan: correct minimum pool size assertion ( #8691 )
2025-06-16 11:59:26 +02:00
ocornut
cfa43e721a
Windows: clicking on a window close button doesn't claim focus and bring to front. ( #8683 )
...
Added ImGuiItemFlags_NoFocus, ImGuiButtonFlags_NoFocus. Neither are well specified so marking as experimental.
2025-06-13 17:40:17 +02:00
ocornut
d8da97f756
Fonts: UpdateCurrentFontSize() early out doesn't need to clear FontBaked.
...
This was meant when the code would be lower in the function (after updating e.g. g.FontSize) Amend 0e769c5
.
2025-06-13 16:47:23 +02:00
ocornut
ca3169310e
Fonts: fixed FontBaked=NULL in initial call to SetCurrentWindow() in Begin() using previous frame value of SkipItems. ( #8465 )
...
ref 0e769c5
2025-06-13 16:46:41 +02:00
ocornut
1ec1510ef7
Fonts: clarify assert. ( #8680 )
2025-06-12 16:49:47 +02:00
ocornut
7ac99a4366
Backends: OSX: ImGui_ImplOSX_HandleEvent() only process event for window containing our view. ( #8644 )
2025-06-12 15:44:18 +02:00
ocornut
b7f13df130
Docs: reformat Changelog.
2025-06-12 15:42:51 +02:00
ocornut
571dae9664
Backends: WGPU: added ImGuiBackendFlags_RendererHasTextures support. ( #8465 )
2025-06-12 15:31:51 +02:00
ocornut
b178fd4286
Backends: WebGPU: moved sampler creation out of ImGui_ImplWGPU_CreateFontsTexture().
2025-06-12 14:55:46 +02:00
ocornut
115a8e74c2
Fonts: update misc comments, docs.
2025-06-12 14:18:23 +02:00
ocornut
41f4acfb4f
Fonts: add has_textures parameters to ImFontAtlasUpdateNewFrame().
2025-06-12 11:44:11 +02:00
ocornut
1ce75e2bca
Fixed duplicate symbols in some compile-time configurations.
2025-06-12 11:25:15 +02:00
ocornut
f6fc166584
TreeNode: fixed runtime asan warning ( #2920 )
...
imgui_widgets.cpp:6923:52: runtime error: shift exponent -1 is negative
2025-06-12 11:07:08 +02:00
ocornut
a0b3eceec7
Fixed using IMGUI_DISABLE_DEMO_WINDOWS without IMGUI_DISABLE_DEBUG_TOOLS and without linking with imgui_demo.cpp
2025-06-12 11:02:32 +02:00
ocornut
7a42233d43
imgui_freetype: fixed using legacy names.
2025-06-11 20:47:17 +02:00
ocornut
895bff6524
Removed unneeded check in RenderText() loop + disable static analyzer false-positive warnings.
2025-06-11 19:17:34 +02:00
ocornut
df068ce11e
Various/misc fixes following back-and-forth dynamic_fonts->master->docking merges. Added missing API BREAKING CHANGES section.
2025-06-11 18:50:16 +02:00
ocornut
96be957315
Docs: update Changelog, FAQ, Fonts docs.
2025-06-11 17:40:10 +02:00
ocornut
4acce85656
Fonts: tweaks demo and exposure to sliders, etc.
2025-06-11 17:36:28 +02:00
ocornut
cc3d4cab21
(Breaking) renamed ImFontConfig::FontBuilderFlags -> FontLoaderFlags. ImFontAtlas::FontBuilderFlags -> FontLoaderFlags. ImGuiFreeTypeBuilderFlags -> ImGuiFreeTypeLoaderFlags.
2025-06-11 16:42:31 +02:00
ocornut
e1481a731d
Fonts: fixed NewFrame() when atlas builder has been created but fonts not added. Fixed GetCustomRect() after atlas clear.
2025-06-11 16:25:18 +02:00
ocornut
29fbf3c1ec
Fonts: demote ImFont::GetFontBaked() as slighty internal.
2025-06-11 16:25:17 +02:00
ocornut
0e769c5418
Fonts: amend UpdateCurentFontSize() early out optimization.
2025-06-11 16:25:13 +02:00
ocornut
573f08135d
Fonts: fixed PopFont() broken recovery.
...
"misc_recover_1" test would assert in EndFrame()
2025-06-11 16:25:10 +02:00
ocornut
2e67bd4de7
Fonts: rename to ImFontAtlasBuildLegacyPreloadAllGlyphRanges().
2025-06-11 16:25:06 +02:00
ocornut
c18301f356
Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment.
2025-06-11 16:25:03 +02:00
ocornut
02f58b3207
Fonts: AddFont() functions now allow size_pixels==0.0f (only required when using certain functions)
...
Fonts: AddFont() funcitons allow size_pixels==0 for merged fonts.
2025-06-11 16:24:48 +02:00
ocornut
bc394410a2
Examples: Win32+DX9/DX10/DX11/DX12, SDL2+DX11/OpenGL2/OpenGL3/SDLRenderer/Vulkan, SDL3+OpenGL/SDLGPU/SDLRenderer/Vulkan: made example DPI aware by default. (master + docking: partial support for multi-dpi by scaling fonts + viewports but not style)
...
We don't bother with WIN32_LEAN_AND_MEAN.
# Conflicts:
# examples/example_glfw_opengl3/main.cpp
# examples/example_sdl2_directx11/main.cpp
# examples/example_sdl2_opengl2/main.cpp
# examples/example_sdl2_opengl3/main.cpp
# examples/example_sdl2_vulkan/main.cpp
# examples/example_sdl3_opengl3/main.cpp
# examples/example_sdl3_sdlgpu3/main.cpp
# examples/example_sdl3_vulkan/main.cpp
# examples/example_win32_directx10/main.cpp
# examples/example_win32_directx11/main.cpp
# examples/example_win32_directx12/main.cpp
# examples/example_win32_directx9/main.cpp
2025-06-11 16:24:05 +02:00
ocornut
b98e92839c
Backends: SDL2, SDL3, GLFW: Backport small part of c90ea13
from docking.
2025-06-11 16:24:04 +02:00
ocornut
8269924c33
Backends: GLFW: added ImGui_ImplGlfw_GetContentScaleForMonitor(), ImGui_ImplGlfw_GetContentScaleForWindow() helpers.
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
2025-06-11 16:13:49 +02:00
ocornut
9da3e6696a
Backends: SDL2: added ImGui_ImplSDL2_GetDpiScaleForDisplay(), ImGui_ImplSDL2_GetContentScaleForWindow() helpers.
2025-06-11 16:12:41 +02:00
ocornut
d72e66cdee
Examples: remove comments/references about baking and GetGlyphRangesJapanese().
2025-06-11 16:11:03 +02:00
ocornut
2d2b1cee6b
Fonts: internals: renamed g.FontSizeBeforeScaling to g.FontSizeBase for consistency.
...
# Conflicts:
# imgui_internal.h
2025-06-11 16:10:45 +02:00
ocornut
3c27c643a9
Fonts: internals: renamed g.FontScale to g.FontBakedScale for clarity. Comments.
2025-06-11 16:10:18 +02:00
ocornut
d85e22d205
Added style.FontScaleDpi which is the field overwritten by ImGuiConfigFlags_DpiEnableScaleFonts.
...
# Conflicts:
# imgui.cpp
# imgui.h
# imgui_demo.cpp
2025-06-11 16:09:56 +02:00
ocornut
8766efcba6
(Breaking) Renamed io.FontGlobalScale to style.FontScaleMain.
...
# Conflicts:
# imgui.cpp
2025-06-11 16:07:21 +02:00
ocornut
80c08f2286
(Breaking) Fonts: obsoleting SetWindowFontScale().
...
+ Comments
# Conflicts:
# imgui.cpp
2025-06-11 16:07:05 +02:00
ocornut
59a11363a5
Fonts: ground work for allowing SizePixels to be optional.
2025-06-11 16:06:24 +02:00
ocornut
402db2ef32
Fonts: fixed passing negative sizes to stb_truetype loader.
2025-06-11 16:06:24 +02:00
ocornut
1e118ab891
Fonts: added ImGuiStyle::FontSizeBase. Ensuring PushFontSize() works before main loop and across NewFrame().
...
# Conflicts:
# imgui.cpp
2025-06-11 16:06:21 +02:00
ocornut
b029be6b6c
Fonts: avoid calling GetFontBaked() during SetFontSize(). Also fixes loading extraneous baked on atlas that will be locked
...
e.g. PushFontSize() before NewFrame() on legacy backend.
2025-06-11 16:06:00 +02:00
ocornut
033cdc4133
Fonts: comments and slight packing of ImFontConfig fields.
2025-06-11 16:06:00 +02:00
ocornut
69547bd4bd
Fonts: ImFont::DefaultSize -> ImFont::LegacySize. ImFontFlags_UseDefaultSize -> ImFontFlags_DefaultToLegacySize.
2025-06-11 16:06:00 +02:00
ocornut
e3860aa6ac
(Breaking) Fonts: removing obsolete ImFont::Scale.
2025-06-11 16:05:54 +02:00