ocornut
60a1582005
ImStrv: made length() returns an int as it simplify the most common case (of passing %.*s to printf)
2026-07-25 13:49:34 +02:00
ocornut
5a7c5caae5
ImStrv: allow constructing from two null pointers.
2026-07-25 13:49:34 +02:00
ocornut
fd9f1a38b2
ImStrv: Combo(), ListBox(): seems better to not introduce the ImStrv [] versions?
...
As 1) user is unlikely to store that on their end. 2) nowadays with lambdas isn't an easy user-side conversion.
Then we limit explosion of an already messy API.
2026-07-25 13:49:34 +02:00
ocornut
a1be204bd5
ImStrv: convert Combo()/ListBox() to use ImStrv in their getters.
...
Didn't convert Combo() "const char* items_separated_by_zeros" as this doesn't translate well when used via a ImStrv constructor, may actually aim to obsolete.
Fixed for shadowing local variable warning on 2025/06/25.
2026-07-25 13:49:33 +02:00
ocornut
617cd154c5
ImStrv: add needed disambiguishing functions for const char* now being ambiguous. (5079)
...
amended for gcc/clang warnings
amended to facilitate merge with docking
2026-07-25 13:49:33 +02:00
ocornut
4192038e42
ImStrv: backtracked for now on supporting ImStrv for format strings.
...
It's widely incomplete and slow, requires a printf function taking non-zero-terminated format string to work.
Might do it eventually but it's much less a problem than labels. Format string are more frequently inlined in code and tend to be small, so existing solutions at call site can work better for now.
2026-07-25 13:49:33 +02:00
璀境石
f5edee41bd
ImStrv: enhanced VS debugger .natvis support. build fixes. (5333, 5906)
2026-07-25 13:49:33 +02:00
ocornut
f7e18d39f2
ImStrv: standardized code doing format copy, optimized ImStrStr
2026-07-25 13:49:33 +02:00
ocornut
b2c097ab06
ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks + fixed various compiles errors/warnings.
2026-07-25 13:49:32 +02:00
ocornut
e34325f241
ImStrv: changed ImStrv xxx=NULL args to an explicit xxx=ImStrv()
...
This is mostly for the benefit of cimgui parser, ideally we would do without.
2026-07-25 13:49:18 +02:00
ocornut
df92015712
ImStrv: Step 2 - change ImStrv typedef to struct, perform all other logic conversion.
...
Squashed commits (initially a commit from rokups + many rework by ocornut. keeping them separate commits made rebasing unnecessarily tricking so merged from 2024/02)
ImStrv: many fixes (see details), added imconfig class extension example, added natvis description.
ImStrv: rework toward ensuring End is always set to constant can be compile time calculated
ImStrv: using length(), fix ambiguous empty() function, fix altered behaviors, removed unused operators.
ImStrv: various tweaks and fixes. removed ImGuiTextRange from ImGuiTextFilter, fix test engine hooks, removed constructor only used twice.
2026-07-25 13:49:03 +02:00
Rokas Kupstys
12710f12c3
ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
...
(last rebase amend 2024/12/11)
2026-07-25 13:48:48 +02:00
ocornut
01380c5797
Version 1.92.9
v1.92.9
2026-07-25 13:28:06 +02:00
ocornut
e722165561
Docs: rework FAQ index, added multi-threading and string-view details.
2026-07-25 12:41:02 +02:00
ocornut
d94d0f3649
Examples: SDL+WebGPU: removed stray glfw from cmakefiles. ( #9387 , #9428 )
2026-07-23 18:56:53 +02:00
ocornut
f31f98f4cd
ImDrawData: fixed late initialized field. (Amend 6f41d13)
...
Would effectively be initialized on use but best to clear on constructor.
2026-07-23 17:56:02 +02:00
ocornut
f594633b54
Popups: added bool return value to OpenPopup(), OpenPopupOnItemClick() functions. ( #9429 )
...
Following on 795cf6fcb5 .
2026-07-23 17:49:39 +02:00
ocornut
b335bf4328
Added ImTextureData::QueueUserData for staged-rendering texture queues e.g. imgui_threaded_rendering.h. ( #8597 , #9136 )
2026-07-22 15:14:45 +02:00
ocornut
6f41d13c7a
DrawData: added FrameCount field to facilitate debugging multi-threading issues. ( #8597 , #9136 )
2026-07-20 17:00:32 +02:00
ocornut
548389359c
(Breaking) ImDrawData: marked draw_data->CmdListsCount as obsolete. Use draw_data->CmdLists.Size.
...
# Conflicts:
# docs/CHANGELOG.txt
# imgui.cpp
2026-07-20 16:58:45 +02:00
omar
295385ff96
Update FAQ.md
2026-07-20 15:23:35 +02:00
omar
c9c458c40a
Update FAQ.md
2026-07-20 15:20:27 +02:00
ocornut
e4f7c5c722
Disabling ImGuiItemFlags_LiveEditOnInputScalar by default! ( #9476 , #701 )
2026-07-20 14:26:57 +02:00
ocornut
d00a87565b
Fixed build when using IMGUI_DEBUG_HIGHLIGHT_ALL_ID_CONFLICTS + IMGUI_DISABLE_OBSOLETE_FUNCTIONS. ( #9482 )
...
Amend 6df50a0667
2026-07-20 14:11:21 +02:00
rbrtc
7038887c32
Docs: fixed link in FAQ index. ( #9480 )
2026-07-17 13:51:28 +02:00
Brenton Bostick
61a093635c
Backends: OpenGL3: fixed updating textures. ( #9478 , #9477 , #9473 , #8802 )
...
Fixed 0ff4a8a .
2026-07-17 13:49:02 +02:00
ocornut
26b8292635
Split ImGuiItemFlags_LiveEdit into ImGuiItemFlags_LiveEditText, ImGuiItemFlags_LiveEditScalar. Added Demo contents. ( #9476 , #701 )
...
cc #3936 , #3946 , #5904 , #6284 , #8149 , #8065 , #8665 , #9117 , #9299 , #700 , #1351 , #1875 , #2060 , #2215 , #2380 , #2550 , #3083 , #3338 , #3556 , #4373 , #4714 , #4885 , #5184,#5777, #6707 , #6766 , #8004 , #8303 , #8915 , #9308
2026-07-16 15:46:47 +02:00
ocornut
c958f16059
EndGroup: fixed reporting combined Edit when it happens at the same time as tabbing to next ActiveId. ( #9476 , #701 )
2026-07-16 15:46:43 +02:00
ocornut
4853f5c96b
Internals: rename NextItemData.ItemFlags -> ItemFlagsSet
2026-07-16 15:46:40 +02:00
ocornut
18d63b12be
Added ImGuiItemFlags_LiveEdit flag, and much-awaited support for disabling it. ( #9476 , #701 )
...
cc #3936 , #3946 , #5904 , #6284 , #8149 , #8065 , #8665 , #9117 , #9299 , #700 , #1351 , #1875 , #2060 , #2215 , #2380 , #2550 , #3083 , #3338 , #3556 , #4373 , #4714 , #4885 , #5184,#5777, #6707 , #6766 , #8004 , #8303 , #8915 , #9308
2026-07-16 15:39:53 +02:00
ocornut
2392a52660
InputText: tag InputTextDeactivatedState with an elapsing frame. Avoid unnecessary InputTextDeactivateHook() call on manual deactivation. InputTextDeactivateHook() only takes a record when Edited + callback marks edited. ( #9476 , #701 )
...
for _NoLiveEdit it's easier than we don't use IsItemDeactivatedAfterEdit() in InputText()'s `if (g.InputTextDeactivatedState.ID == id)` block.
2026-07-16 15:39:52 +02:00
ocornut
baeea39c1a
Settings: fixed issues caliing ClearWindowSettings() followed by LoadIniSettingsFromMemory().
...
While not done with core, this would be useful to load .ini over a clean slate.
2026-07-15 19:22:44 +02:00
ocornut
0ff4a8a900
Backends: OpenGL2/3: Backup and restore GL_UNPACK state in UpdateTexture(). Amends. ( #9473 , #8802 )
...
Fix setting GL_UNPACK_ROW_LENGTH twice.
2026-07-15 18:20:05 +02:00
Turtle Dove
e3927dc004
Backends: OpenGL2/3: Backup and restore GL_UNPACK state in UpdateTexture() ( #9473 , #8802 )
2026-07-15 18:16:57 +02:00
Turtle Dove
35a7e8e864
Backends: SDL2: restore SDL_StartTextInput()/SDL_StopTextInput() calls on Android ( #7636 , #9474 )
2026-07-15 17:59:25 +02:00
Turtle Dove
909082890a
Backends: Android: clear mouse position on touch release. ( #6627 , #9474 )
2026-07-15 17:36:39 +02:00
Turtle Dove
0302703a7d
CI: Android: Gradle 9.4.1 via setup-gradle action for AGP 9.2.0 ( #8878 ) ( #9467 )
2026-07-15 14:36:59 +02:00
ShiroKSH
0720d59bb7
Tables: validate ini settings column count. ( #9472 )
...
+ Amend with comment by ocornut.
2026-07-15 14:16:31 +02:00
ocornut
addbfa5021
Settings: fixed ConfigIniSettingsAutoDiscardMonths not calling Cleanup ( #9460 , #9471 )
2026-07-15 13:57:48 +02:00
ocornut
bad1ee71f8
Backends: SDL_Renderer3: fixed changing scale mode not actually working on all platforms. ( #7616 , #9470 , #9378 )
2026-07-15 13:44:03 +02:00
ShiroKSH
003ee19d9e
Backends: SDL_Renderer3: fixed default sampler not being Linear. ( #7616 , #9470 , #9378 )
2026-07-15 13:44:01 +02:00
ocornut
b62bfd6b06
InputText: reworked io.ConfigInputTextEnterKeepActive mode so that pressing Ctrl+Enter or Shift+Enter still allows to deactivate.
...
cc #9239
2026-07-10 21:36:43 +02:00
ocornut
da137cbbb0
(Breaking) Drag and Drop: commented out legacy name ImGuiDragDropFlags_SourceAutoExpirePayload. Use ImGuiDragDropFlags_PayloadAutoExpire.
2026-07-08 18:40:29 +02:00
ocornut
9bb131fb2f
CI: enable Metal4 examples. ( #9466 , #9451 )
...
(Untested)
2026-07-08 18:28:37 +02:00
Jonathan Hoffstadt
62399b5bfe
Examples: Apple + Metal4: add example ( #9466 , #9451 )
...
+ Amend edit to EXAMPLES.md, comment build.xml
2026-07-08 18:04:30 +02:00
ocornut
68fce9f3bd
Settings: added DiscardAll option to CleanupIniSettings() / ImGuiSettingsCleanupArgs. ( #9460 )
...
+ Demo: tweak for scaling.
2026-07-08 15:03:19 +02:00
ocornut
f903a7e8e2
Settings: fixed Windows not honoring DiscardWhenMissingDate. ( #9460 )
2026-07-07 22:52:47 +02:00
ocornut
112d6d9eab
Settings: added a type name filter to CleanupIniSettings() / ImGuiSettingsCleanupArgs. Amends. ( #9460 )
...
Request hash because storing const char* strings in struct is not entirely zen. Amend 2c49da4 .
2026-07-07 22:30:15 +02:00
ocornut
2c49da44be
Settings: added a type name filter to CleanupIniSettings() / ImGuiSettingsCleanupArgs. ( #9460 )
2026-07-07 22:18:01 +02:00
ocornut
85593d0869
Tables, Settings: make TableSettingsCreate() recycle existing unbound entry (might happen after a GC or anything clearing table->SettingsOffset. ( #9460 , #9108 )
2026-07-07 22:06:43 +02:00