ocornut
1d942eb6c9
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_win32.cpp
# imgui.cpp
# imgui_demo.cpp
# imgui_internal.h
2025-10-30 18:08:56 +01:00
ocornut
670a92723a
Move IM_STRINGIFY() to imgui.h
2025-10-30 17:47:06 +01:00
ocornut
3c578fa87e
InputText: restore truncating, now between UTF-8 codepoint. ( #9029 )
...
Amend e612536 , 2a194e2 .
2025-10-29 18:40:40 +01:00
ocornut
40f9e4e8e2
Windows: store BgClickFlags which allows the equivalent of io.ConfigWindowsMoveFromTitleBarOnly to be overridden on a per window basis. ( #899 , #3071 , #5044 , + #3379 )
...
io.ConfigWindowsMoveFromTitleBarOnly now sets initial value for BgClickFlags. Using e.g. ImGui::GetCurrentWindow()->BgClickFlags &= ~ImGuiWindowBgClickFlags_Move; allow per-window override.
This will be extended for supporting scrolling options for #3379 .
As a minor side effect: the effect of enabling io.ConfigWindowsMoveFromTitleBarOnly now happens one frame later ('window_modal_bounds_exceeding_work_area" test accidentally broke in some situations because of that)
2025-10-28 19:13:11 +01:00
ocornut
8019d39545
Shuffle a few internal context fields to reduce padding.
2025-10-28 19:06:36 +01:00
ocornut
95e047244e
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# examples/example_sdl3_vulkan/main.cpp
2025-10-23 21:05:22 +02:00
ocornut
b8573a7e33
Groups: fixed an issue reporting IsItemEdited() signal after EndGroup() for some widgets e.g. Checkbox(), Selectable(). ( #9028 )
2025-10-23 13:54:14 +02:00
ocornut
28dabdcb9e
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
# docs/CHANGELOG.txt
2025-10-16 20:41:17 +02:00
ocornut
d7fec5e1d3
Tables: fixed a bug where nesting BeginTable()->Begin()->BeginTable(). ( #9005 )
2025-10-15 16:50:11 +02:00
ocornut
7d8d587bc0
Version 1.92.5 WIP
2025-10-15 16:46:18 +02:00
ocornut
e7d2d636af
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
2025-10-14 19:33:36 +02:00
ocornut
9a5d5c45f5
Version 1.92.4
2025-10-14 19:26:56 +02:00
ocornut
f9571ce4d3
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_dx12.cpp
# docs/CHANGELOG.txt
# imgui.cpp
2025-10-13 15:13:06 +02:00
ocornut
b6e277980f
Shortcuts: reorganize route scoring so values are easier to read. ( #9004 )
...
Score now require 16-bits but ImGuiKeyRoutingData doesn't grow size.
2025-10-13 15:06:32 +02:00
ocornut
2b770a029b
InputText: fixed an infinite loop error happening if a custom input text callback modifies/clear BufTextLen before calling InsertChars(). ( #8994 , #3237 )
...
+ misc comments.
2025-10-08 19:06:12 +02:00
ocornut
fd0873c61f
Test Engine: fixed mismatched macro signature when disabled.
...
The macro was actually unused in our code if IMGUI_ENABLE_TEST_ENGINE is not defined, but can affect third-party code.
2025-10-07 15:59:45 +02:00
ocornut
09e15e8c9d
Nav: fixed typo.
2025-10-06 13:56:34 +02:00
ocornut
f6754fd812
Merge branch 'master' into docking
2025-10-03 19:07:29 +02:00
ocornut
27a9374ef3
Drag and Drop: added BeginDragDropTargetViewport(), still in imgui_internal.h for now. ( #5204 )
2025-10-03 19:06:23 +02:00
ocornut
1cdec11e24
Drag and Drop: rework RenderDragDropTargetRect() into RenderDragDropTargetRectForItem() and add RenderDragDropTargetRectEx(). ( #1603 , #5204 )
2025-10-03 18:54:15 +02:00
ocornut
8ccff82153
Merge branch 'master' into docking
2025-09-18 15:39:52 +02:00
ocornut
0e7cd694eb
Version 1.92.4 WIP
2025-09-18 15:38:46 +02:00
ocornut
34bff4672c
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# docs/CHANGELOG.txt
# examples/example_glfw_metal/main.mm
# examples/example_glfw_opengl2/main.cpp
# examples/example_glfw_vulkan/main.cpp
# examples/example_win32_opengl3/main.cpp
# examples/example_win32_vulkan/main.cpp
# imgui.h
2025-09-17 18:48:39 +02:00
ocornut
1c544ee941
Version 1.92.3
2025-09-17 18:37:56 +02:00
ocornut
9cf9d2be83
Debug Tools: ID Stack Tool: fixed a crash when using PushOverrideID(0) during a query. ( #8937 , #4631 )
2025-09-17 18:06:45 +02:00
ocornut
7e473d38d3
Debug Tools: ID Stack Tool: internal renaming (should be no-op).
2025-09-17 18:06:45 +02:00
ocornut
6d834d325e
Debug Tools: ID Stack Tool: fixed misleading/unnecessary run of UpdateDebugToolStackQueries() on first frame. ( #4631 )
...
`if (g.FrameCount != tool->LastActiveFrame + 1)` test failing on first frame.
Was not harmful but probably confusing in a debugger.
2025-09-17 18:06:45 +02:00
ocornut
8c6096fcfe
Merge branch 'master' into docking
2025-09-12 15:05:55 +02:00
ocornut
78c1d4a92c
InputText: Word-Wrap: moving ImGuiInputTextFlags_WordWrap to public API. Added in demo. ( #3237 , #952 , #1062 , #7363 )
2025-09-12 15:03:33 +02:00
ocornut
71f45c12e9
Merge branch 'master' into docking
2025-09-11 21:28:02 +02:00
ocornut
1e52e7b90c
InputText: Added a line index. Refactored cursor and selection rendering, now simpler, easier to reason about, and faster. ( #3237 , #952 , #1062 , #7363 )
2025-09-11 21:26:01 +02:00
ocornut
67085d732a
ImGuiTextIndex: rename member.
2025-09-11 21:25:56 +02:00
ocornut
3dcd17f402
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_dx12.cpp
2025-09-10 19:02:44 +02:00
ocornut
2f1d1c8b2f
Focus, InputText: fixed an issue where SetKeyboardFocusHere() did not work on InputTextMultiline() with ImGuiInputTextFlags_AllowTabInput. ( #8928 )
2025-09-10 18:31:34 +02:00
ocornut
4e98fb20e2
TabBar: Internals: added TabBarFindByID(), TabBarRemove() helpers.
...
Currently only for the benefit of TestEngine.
2025-09-10 17:59:26 +02:00
ocornut
8e4955bb23
Selectable: moved ImGuiSelectableFlags_SelectOnNav to public API.
2025-09-09 17:42:14 +02:00
ocornut
ab760992ad
Merge branch 'master' into docking
2025-09-08 13:35:24 +02:00
ocornut
230418a75d
InputText: Word-Wrap: attempt to track cursor while resizing frame/parent. ( #3237 , #952 , #1062 , #7363 )
2025-09-08 11:56:22 +02:00
ocornut
a82f66a9b0
InputText: Word-Wrap: added ImGuiInputTextFlags_WordWrap support. ( #3237 , #952 , #1062 , #7363 )
2025-09-08 11:56:20 +02:00
ocornut
e422a38e4c
InputText: internals: expose LineCount, GetPreferredOffsetX().
2025-09-08 11:54:34 +02:00
ocornut
11fff1ccf5
ImFont::RenderText() takes ImDrawTextFlags_CpuFineClip instead of bool cpu_fine_clip + forward ImDrawTextFlags to word-wrap code.
...
(for #3237 , #952 , #1062 , #7363 )
2025-09-08 11:54:33 +02:00
ocornut
56189cd814
Internals: added ImDrawTextFlags_StopOnNewLine support to ImFontCalcTextSizeEx(), ImDrawTextFlags_WrapKeepTrailingBlanks to ImTextCalcWordWrapNextLineStart().
...
(for #3237 , #952 , #1062 , #7363 )
2025-09-08 11:54:33 +02:00
ocornut
bc6478f651
Internals: added ImDrawTextFlags_WrapKeepTrailingBlanks required for text-edit style word-wrapping.
...
(for #3237 , #952 , #1062 , #7363 )
2025-09-08 11:54:33 +02:00
ocornut
34ab6c8a89
Internals: extracted ImFont::CalcTextSizeA() into ImFontCalcTextSizeEx() so we can make change to its signature.
...
(for #3237 , #952 , #1062 , #7363 )
2025-09-08 11:54:33 +02:00
ocornut
c63b5bd8fb
Internals: extracted ImFont::CalcWordWrapPosition() into ImFontCalcWordWrapPositionEx() so we can make change to its signature.
...
(for #3237 , #952 , #1062 , #7363 )
2025-09-08 11:54:33 +02:00
ocornut
8a35ce0e98
CalcWordWrapPosition() breaks on \n instead of relying on caller to do it + expose ImTextCalcWordWrapNextLineStart(). ( #3237 , #952 , #1062 , #7363 )
...
Should be functional no-op, fingers crossed. Breaking on \n allows caller to count lines reliably.
2025-09-08 11:54:32 +02:00
fdsa
09ebcf1779
Docs: fixed mismatched parentheses & other small changes. ( #8922 )
2025-09-08 11:30:14 +02:00
ocornut
740c566305
Merge branch 'master' into docking
2025-09-02 16:10:59 +02:00
ocornut
771fae623d
ImRect: added AsVec4() helper. Using ImRect in InputTextEx().
2025-08-27 21:43:25 +02:00
ocornut
4d216d4510
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdlgpu3.cpp
2025-08-27 18:57:56 +02:00