David Mentler
f7fd75e9ec
ImStrv: Added ImStrv formatter for LLDB (e.g. Xcode)
2026-01-08 17:21:04 +01:00
ocornut
23a93afdff
ImStrv: made length() returns an int as it simplify the most common case (of passing %.*s to printf)
2026-01-08 17:21:04 +01:00
ocornut
1d18540bf4
ImStrv: allow constructing from two null pointers.
2026-01-08 17:21:04 +01:00
ocornut
2b510f541c
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-01-08 17:21:04 +01:00
ocornut
baba3fec6b
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-01-08 17:21:04 +01:00
ocornut
1500621224
ImStrv: add needed disambiguishing functions for const char* now being ambiguous. (5079)
...
amended for gcc/clang warnings
amended to facilitate merge with docking
2026-01-08 17:21:04 +01:00
ocornut
7ceaaff9e4
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-01-08 17:21:04 +01:00
璀境石
66947795f8
ImStrv: enhanced VS debugger .natvis support. build fixes. (5333, 5906)
2026-01-08 17:21:03 +01:00
ocornut
651b721ba9
ImStrv: standardized code doing format copy, optimized ImStrStr
2026-01-08 17:21:03 +01:00
ocornut
bd152fd872
ImStrv: Fixed various compile errors/warnings.
2026-01-08 17:21:03 +01:00
ocornut
932c281377
ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks.
2026-01-08 17:21:03 +01:00
ocornut
b50672a003
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-01-08 17:21:03 +01:00
ocornut
ef598afc79
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-01-08 17:20:03 +01:00
Rokas Kupstys
fd5f6016f8
ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
...
(last rebase amend 2024/12/11)
2026-01-08 17:19:36 +01:00
ocornut
fedf227ea4
Amend 7a02f4b.
2026-01-08 17:17:06 +01:00
ocornut
7a02f4b545
Nav, Shortcuts, Tooltips: tooltip reference position not affected by remote shortcut activation. ( #9138 , #456 )
...
NavCalcPreferredRefPos() has different path for popups vs tooltip.
Amend 197f8904fe
2026-01-08 17:14:38 +01:00
ocornut
ca9b7b4071
InputText, Nav: amend 1566c96. (incorrectly commited old chunk)
2026-01-08 17:11:23 +01:00
ocornut
1566c96ccd
InputText, Nav: fixed remote/shortcut InputText() not teleporting mouse cursor when nav cursor is active and io.ConfigNavMoveSetMousePos is enabled.
...
Motivated by this, also made SetFocusID() immediately set g.NavIdIsAlive, which is more correct and might be other (positive) subtle side effects.
2026-01-08 17:04:52 +01:00
ocornut
3389dfd9dd
IsItemHovered() doesn't filter out the signal when activated item is a shortcut remote activation. ( #9138 , #456 )
...
Amend a201af7354
2026-01-08 15:58:12 +01:00
ocornut
9ce41a92c3
Misc/shallow merges from docking branch to reduce small drift.
2026-01-08 14:31:25 +01:00
maf
43a90adc61
Docs: Fix spelling errors ( #9158 )
2026-01-08 09:17:44 +01:00
ocornut
7b3ad4a282
(Breaking) Popups: changed 'ImGuiPopupFlags popup_flags = 1' default value to be '= 0' for BeginPopupContextItem(), BeginPopupContextWindow(), BeginPopupContextVoid(), OpenPopupOnItemClick(). ( #9157 , #9146 )
2026-01-07 18:15:15 +01:00
JD31
4ce188def8
Backends: WebGPU: clarify build failure when attempting to build with Dawn for iOS. ( #9155 , #9156 )
2026-01-07 17:25:41 +01:00
ocornut
b467a0466c
Docs: amends comments about fonts.
2026-01-06 19:07:46 +01:00
ocornut
69a501df6e
Backends: OpenGL3: call ImGui_ImplOpenGL3_InitLoader() in ImGui_ImplOpenGL3_CreateDeviceObjects() / ImGui_ImplOpenGL3_DestroyDeviceObjects(). ( #9112 )
2026-01-05 16:46:56 +01:00
ocornut
1dc1964d5b
Backends: Vulkan: change ImGui_ImplVulkanH_Window::ClearEnable to fuller featured AttachmentDesc. ( #9152 )
2026-01-05 16:39:49 +01:00
ocornut
f106ccd5fa
Backends: Vulkan: clarify ImGui_ImplVulkanH_Window members.
2026-01-05 16:38:01 +01:00
Sammy Fatnassi
25158fe33b
Textures: prevent assert/crash of having a destroyed texture recreated without the pixels data available ( #9150 , #8811 )
...
Amend 8c22b8aef
2026-01-03 20:26:29 +01:00
ocornut
960921f03a
Happy new year!
2026-01-03 01:07:58 +01:00
ocornut
922a11f084
Docs: update links, refs.
2025-12-23 19:33:37 +01:00
ocornut
b7b8f52437
Examples: Android: update for consistency (untested).
2025-12-23 18:16:33 +01:00
ocornut
05581da183
AddFontDefault() now automatically selects an embedded font between AddFontDefaultVector() and AddFontDefaultBitmap).
2025-12-23 18:16:33 +01:00
ocornut
f006400f05
Fonts: added AddFontDefaultVector() with embedded ProggyVector data.
2025-12-23 18:16:33 +01:00
ocornut
cde6ad3967
Removed unused ImRect::Floor(). Clarified IM_TRUNC(), IM_ROUND(), ImRound64().
...
Better to remove since it uses IM_TRUNC which has unusual specs.
Note: 87a6443c5 always use positive value in ImRound64(). (#3609 , #8215 )
2025-12-23 18:16:33 +01:00
ocornut
73dd0e869d
(Breaking) Fonts: remove ImFontConfig::PixelSnapV. Post-rescale GlyphOffset is always rounded.
...
Amend 99f6b305c , 99bca397d8 .
2025-12-23 18:16:33 +01:00
ocornut
55ad3b4abd
Fonts: added ExtraSizeScale feature (undocumented).
2025-12-23 18:16:32 +01:00
ocornut
d1de937c31
Fonts: ImFontAtlasFontRebuildOutput() helper.
2025-12-23 18:16:32 +01:00
ocornut
d365417e8b
CI: reduce macOS runs since they are expensive.
2025-12-23 16:47:44 +01:00
ocornut
0ff810038d
Added GetItemFlags() in public API. ( #9127 )
2025-12-22 18:33:12 +01:00
ocornut
9055c9ed22
imgui_freetype: fixed overwriting ImFontConfig::PixelSnapH when hinting is enabled.
...
Fix/amend 99f6b305c1 .
2025-12-22 17:52:32 +01:00
ocornut
d87650dffb
Text: fixed unused variable warning on builds without asserts.
2025-12-21 18:22:48 +01:00
ocornut
a5dffbec38
Text: word-wrapping use a small lookup table. ( #8990 , #3237 , #8503 , #8139 , #8439 , #9094 , #3002 , #9066 , #8838 )
2025-12-21 18:04:01 +01:00
ocornut
22ffa3d6d3
Text: rewrite word-wrapping logic. ( #8990 , #3237 , #8503 , #8139 , #8439 , #9094 , #3002 , #9066 , #8838 )
2025-12-21 18:04:00 +01:00
ocornut
683f9160b9
Internals: ImBitArray: rename storage.
2025-12-18 23:38:34 +01:00
ocornut
4e7c05504a
Renamed IM_ARRAYSIZE() -> IM_COUNTOF(). Kept legacy name for now.
2025-12-17 14:30:01 +01:00
ocornut
99bca397d8
Docs: clarify PixelSnapH / PixelSnapV + comment on PushTextWrapPos().
2025-12-17 12:02:07 +01:00
ocornut
dc48a7c88e
Docs: amend fc89c61
2025-12-15 16:59:22 +01:00
ocornut
4dac00ca0c
Windows: fixed always updating internal buffer for ### window titles even when Ctrl+Tab window is hidden. Instead forcing an update on mismatching when appearing.
...
3997e8b555 was already doing that. (Relates to 8e67fe1 : code assume pointer used to be nulled when ctrl+tab window is disabled. not the case).
2025-12-11 23:24:43 +01:00
omar
fc89c61089
Hashing: handling of "###" operator to reset to seed within a string identifier doesn't include the "###" characters in the output hash anymore.
...
This has various simplifying properties.
Need a test engine update too.
+ Demo: removed misleading/unnecessary usage of ###.
2025-12-11 23:02:20 +01:00
ocornut
1e7d2adc29
Fixed Clang cast-align warning + Added missing Changelog entry in 1.92.4. ( #8893 )
2025-12-11 21:37:42 +01:00