70a43f3088
Fixed build with IMGUI_ENABLE_TEST_ENGINE.
ocornut2025-09-17 18:12:32 +02:00
9cf9d2be83
Debug Tools: ID Stack Tool: fixed a crash when using PushOverrideID(0) during a query. (#8937, #4631)
ocornut2025-09-17 18:06:03 +02:00
7e473d38d3
Debug Tools: ID Stack Tool: internal renaming (should be no-op).
ocornut2025-09-17 17:52:50 +02:00
6d834d325e
Debug Tools: ID Stack Tool: fixed misleading/unnecessary run of UpdateDebugToolStackQueries() on first frame. (#4631)
ocornut2025-09-17 17:36:47 +02:00
f6890ed007
Nav, Inputs: fixed a crash that could occur when opening a popup following the processing of a global shortcut while no windows were focused.
ocornut2025-09-17 16:34:33 +02:00
e044d99710
Examples: standardized all examples to have a base window size of 1280x800.
ocornut2025-09-15 16:33:56 +02:00
22a6a83c54
Backends: SDL3: use SDL_GetWindowDisplayScale() on Mac to output DisplayFrameBufferScale. The function is more reliable during resolution changes e.g. going fullscreen. (#8703, #4414)
ocornut2025-09-15 15:16:42 +02:00
8a94422246
InputText: optimize inactive path by avoiding an early ImStrlen().
ocornut2025-09-11 21:18:52 +02:00
ae832ce532
InputText: moved blocks so same text rendering code is now used for active and inactive states.
ocornut2025-09-11 20:19:17 +02:00
1e52e7b90c
InputText: Added a line index. Refactored cursor and selection rendering, now simpler, easier to reason about, and faster. (#3237, #952, #1062, #7363)
ocornut2025-09-11 19:05:26 +02:00
f36c65661c
InputText: fixed pressing End (without Shift) in a multi-line selection from mistakenly moving cursor based on selection start.
ocornut2025-09-11 18:44:50 +02:00
271f476d08
CI: disable pvs-studio 28 days warning.
ocornut2025-09-11 15:12:33 +02:00
e2f314d613
InputText: fixed misassignment to unused Scroll.y variable when using ImGuiInputTextFlags_NoHorizontalScroll.
ocornut2025-09-11 15:05:53 +02:00
55f590c1d1
Selectable: ImGuiSelectableFlags_SelectOnNav doesn't select when holding Ctrl, to be consistent with multi-select.
ocornut2025-09-10 22:29:42 +02:00
5e5658e68f
Debug Tools: fixed assertion failure when opening a combo box while using io.ConfigDebugBeginReturnValueOnce/ConfigDebugBeginReturnValueLoop. (#8931)
Harry Manderandocornut2025-09-10 16:38:10 +12:00
2f1d1c8b2f
Focus, InputText: fixed an issue where SetKeyboardFocusHere() did not work on InputTextMultiline() with ImGuiInputTextFlags_AllowTabInput. (#8928)
ocornut2025-09-10 18:31:34 +02:00
045645e5f1
Demo: tweaked ShowFontSelector() and ShowStyleSelector() to update selection while navigating and to not close popup automatically.
ocornut2025-09-09 17:50:40 +02:00
8e4955bb23
Selectable: moved ImGuiSelectableFlags_SelectOnNav to public API.
ocornut2025-09-09 17:37:20 +02:00
e66afbbbe0
Selectable: ImGuiSelectableFlags_SelectOnNav doesn't close popups.
ocornut2025-09-09 17:18:26 +02:00
2841c5135d
Backends: OpenGL3: add GL_NEAREST and samplers functions in loader.
ocornut2025-09-08 16:56:37 +02:00
bf52f4a83c
Backends: OpenGL3: added HasBindSampler storage for readability and consistency.
ocornut2025-09-08 17:03:23 +02:00
14e076c5bb
Backends: Internal renaming of samplers.
ocornut2025-09-08 15:56:42 +02:00
ea8a5a9e17
DrawList: made AddCallback() assert when passing a null callback.
ocornut2025-09-08 15:20:18 +02:00
230418a75d
InputText: Word-Wrap: attempt to track cursor while resizing frame/parent. (#3237, #952, #1062, #7363)
ocornut2025-09-02 15:37:27 +02:00
16415aa39f
InputText: Word-Wrap: added custom implementation for Home/End that is word-wrap friendly. (#3237, #952, #1062, #7363)
ocornut2025-08-29 18:18:18 +02:00
985723ed94
InputText: Word-Wrap: mouse clicks on word-wrapping points set cursor side correctly. (#3237, #952, #1062, #7363)
ocornut2025-08-28 19:37:52 +02:00
56189cd814
Internals: added ImDrawTextFlags_StopOnNewLine support to ImFontCalcTextSizeEx(), ImDrawTextFlags_WrapKeepTrailingBlanks to ImTextCalcWordWrapNextLineStart().
ocornut2025-08-27 21:55:40 +02:00
34ab6c8a89
Internals: extracted ImFont::CalcTextSizeA() into ImFontCalcTextSizeEx() so we can make change to its signature.
ocornut2025-08-27 21:43:07 +02:00
c63b5bd8fb
Internals: extracted ImFont::CalcWordWrapPosition() into ImFontCalcWordWrapPositionEx() so we can make change to its signature.
ocornut2025-08-18 16:11:46 +02:00
8a35ce0e98
CalcWordWrapPosition() breaks on \n instead of relying on caller to do it + expose ImTextCalcWordWrapNextLineStart(). (#3237, #952, #1062, #7363)
ocornut2025-08-18 14:27:15 +02:00
f77f68a5ed
CI: Windows: update to 1.4.326 + pull Vulkan from KhronosGroup's Vulkan-Headers and Vulkan-Loader. (#8925, #8778)
yaz0randocornut2025-09-07 20:27:00 -07:00
ee03cef14f
Backends: Vulkan: revert using a struct for ImGui_ImplVulkan_CreatePipeline() for now. (#8110, #8111, #8053)
ocornut2025-09-04 14:37:14 +02:00
7d33524042
InputText: fixed an issue where using Escape with ImGuiInputTextFlags_EscapeClearsAll. (#8915, #8273)
ocornut2025-09-04 13:15:18 +02:00
605a751571
InputText, InputInt, InputFloat: fixed an issue where using Escape to revert would not write back the reverted value. (#8915, #8273)
ocornut2025-09-04 13:13:58 +02:00
b7cb3d93a4
Comments about using MSVC SAL for printf annotation. (#8871)
ocornut2025-09-03 19:39:55 +02:00
20160ff1d5
Fonts: fixed merging a font and specifying a font target in DstFont that's not the last added font (regression in 1.92). (#8912)
ocornut2025-09-03 19:36:02 +02:00
3766d40394
Nav: fixed Ctrl+Tab window appearing as empty when the sole active and focused window has the ImGuiWindowFlags_NoNavFocus flag. (#8914)
ocornut2025-09-03 17:50:10 +02:00
8dc457fda2
Internals: added indent, shallow tweaks + unused context pointer to InputTextCalcTextLenAndLineCount() to reduce noise in wip patch.
ocornut2025-08-18 16:43:44 +02:00
0ef9610e70
InputText, stb_textedit: Revert special handling when pressing Down/PageDown on last line of a buffer without a trailing carriage return.
ocornut2025-08-29 17:55:45 +02:00
5c92699f5f
stb_textedit: trim trailing blanks for simplicity.
ocornut2025-08-28 18:43:41 +02:00
771fae623d
ImRect: added AsVec4() helper. Using ImRect in InputTextEx().
ocornut2025-08-27 20:06:18 +02:00
87c1ab7988
Windows: changed how g.CurrentItemFlags is modified before windows' CloseButton() submission to be less misleading. (#8903)
ocornut2025-08-26 18:48:08 +02:00
229d56e37a
Debug Tools: ID Stack Tool: when ### is used, uncontributing prefix before the ### is now skipped. (#8904, #4631)
ocornut2025-08-26 16:30:13 +02:00
7d230594de
Fixed ImHashSkipUncontributingPrefix() not looping in case of multiple ### elements.
ocornut2025-08-26 16:25:33 +02:00
75a4a48d1f
Internals: extracted ImHashSkipUncontributingPrefix() out of CreateNewWindowSettings() and added note about it.
ocornut2025-08-26 16:19:08 +02:00
9e864012ae
Debug Tools: ID Stack Tool: added option to hex-encode non-ASCII characters in output path. (#8904, #4631)
ocornut2025-08-26 15:58:59 +02:00
783f1e62cc
Debug Tools: ID Stack Tool: fixed using fixed-size buffers preventing long identifiers from being displayed in the tool. (#8905, #4631)
ocornut2025-08-26 15:36:56 +02:00
e728b96600
Fixed Bullet() fixed tesselation amount which looked out of place in very large sizes.
ocornut2025-08-20 20:22:31 +02:00
fe03035112
Docs: advertise ProggyVector font as an alternative.
ocornut2025-08-20 19:58:19 +02:00