ocornut
65b6243083
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-03-13 17:09:45 +01:00
ocornut
b54d685311
ImStrv: add needed disambiguishing functions for const char* now being ambiguous. (5079)
...
amended for gcc/clang warnings
amended to facilitate merge with docking
2026-03-13 17:09:45 +01:00
ocornut
9ef854390b
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-03-13 17:09:45 +01:00
ocornut
cf0b502fd6
ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks + fixed various compiles errors/warnings.
2026-03-13 17:09:45 +01:00
ocornut
08454a5e5e
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-03-13 17:09:44 +01:00
ocornut
366e1a9e45
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-03-13 17:09:44 +01:00
Rokas Kupstys
9f6b804e58
ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
...
(last rebase amend 2024/12/11)
2026-03-13 17:09:44 +01:00
ocornut
49ee151ed6
Nav: pressing gamepad north button activates context menus.
...
+ update ShowUserGuide().
2026-03-13 15:07:46 +01:00
ocornut
b76ab6232d
Nav: changed Gamepad mapping for "Activate with Text Input" action from FaceUp press to FaceDown long press. ( #8803 , #787 )
2026-03-13 15:07:46 +01:00
ocornut
0db591935f
Changed default ImTextureID_Invalid value to -1 instead of 0 +added comments. ( #9293 , #8745 , #8465 , #7090 )
2026-03-12 14:44:15 +01:00
ocornut
5aa7d61139
InputText: reworked so that io.ConfigInputTextEnterKeepActive reactivate in order for e.g. IsItemDeactivatedAfterEdit() to work. Amends. ( #9001 , #9115 )
...
Rework. Fixes dangling InputTextReactivateId in case of field being hidden on activation.
2026-03-11 20:33:18 +01:00
Brenton Bostick
6f8bdb7bf7
Docs: fixed misc typos ( #9267 )
2026-03-09 14:51:06 +01:00
ocornut
ef022c5e0a
Separator: added and following style.SeparatorSize. ( #2657 , #9263 )
...
Reapply c5d83d8a from 1.70 which was reverted in 9534ef9b2 .
2026-02-26 17:21:57 +01:00
ocornut
650eca386e
Doc: update link to imgui_manual, add a new one near top of the demo + update binaries.
2026-02-25 20:34:35 +01:00
ocornut
68a91d3060
InputText: Shift+Enter in multi-line editor always adds a new line. ( #9239 )
2026-02-24 17:10:56 +01:00
ocornut
f6e0953b38
TreeNode: moved TreeNodeGetOpen() helper to public API. ( #3823 , #9251 , #7553 , #6754 , #5423 , #2958 , #2079 , #1947 , #1131 , #722 )
...
Amend 0653a0d
2026-02-23 22:36:29 +01:00
ocornut
14b4d8a625
Clipper: added UserIndex helper storage.
2026-02-23 22:36:29 +01:00
ocornut
dbee23e09c
Commented out legacy signatures for Combo()/ListBox() which were obsoleted in 1.90.
...
Amend b101cf4 .
2026-02-23 15:21:20 +01:00
ocornut
221bac8b06
Style: border sizes are now scaled and rounded by ScaleAllSizes(). Lift 1.0f limit in Style Editor.
2026-02-20 16:16:27 +01:00
ocornut
c234426f89
TreeNode: comments on ImGuiTreeNodeFlags_Leaf. ( #4833 )
2026-02-19 16:32:14 +01:00
ocornut
b8a1f74fd9
Version 1.92.7 WIP
...
+ minor demo tweaks.
2026-02-18 16:05:51 +01:00
ocornut
e118ea06e0
Version 1.92.6
2026-02-17 17:45:07 +01:00
Laurenz Altenmüller
fbe973a8d0
Cast this to (void*) in zero-clearing memset calls to fix -Wnontrivial-memcall ( #9247 , #8295 , #8129 , #8135 )
...
Clang 20+ warns on memset(this, ...) for non-trivially copyable types via -Wnontrivial-memcall.
Should separately investigate -Wnonontrivial-memaccess vs -Wnonontrivial-memcall.
2026-02-16 16:29:00 +01:00
ocornut
041cdddf35
Fonts: add new ProggyForever font!
...
Amend f006400
2026-02-12 20:06:33 +01:00
ocornut
a8bf659143
Fonts: AddFontDefaultBitmap() doesn't need to explicitely set OversampleH/OversampleV to 1 as this is automatic.
2026-02-12 19:35:41 +01:00
ocornut
291787bcac
Fonts: comment about swapping EllipsisChar value. ( #9228 )
2026-02-11 19:09:51 +01:00
Ryan Jensen
8ed10d538e
Docs: update comment on ImGuiConfigFlags_NavEnableKeyboard. ( #9218 )
...
Reworked comment of original PR + trim trailing blanks.
2026-02-10 21:12:35 +01:00
tanksdude
5fe48b6a0e
Docs: fixed some typos ( #9217 )
2026-02-10 16:40:52 +01:00
ocornut
d12b1a938e
Demo: improved Selectable() demos. ( #9193 )
2026-01-26 11:45:32 +01:00
ocornut
66bb8add73
Docs: better document Shortcut() related stuff. ( #9188 ) Better document io.ConfigDpiScaleFonts. ( #9179 )
2026-01-22 14:35:16 +01:00
ocornut
cb3b7ff4fb
InputText: added mGuiInputTextCallbackData::EventActive helpers. ( #9174 )
2026-01-21 18:46:38 +01:00
ocornut
d448045669
InputText: Added ImGuiInputTextCallbackData::ID field.
2026-01-21 18:34:28 +01:00
ocornut
f21307e5c9
InputText: ImGuiInputTextCallbackData::SelectAll() sets CursorPos. Added SetSelection() helper.
...
Context was for #9174 but not specific to it.
2026-01-21 18:25:38 +01:00
ocornut
d7598aa84f
Backends: SDL2, SDL3: changed GetClipboardText() handler to return NULL on error aka clipboard contents is not text. ( #9168 )
...
Consistent with other backends.
2026-01-15 16:08:18 +01:00
ocornut
7143d711bf
Images, Style: added style.ImageRounding, ImGuiStyleVar_ImageRounding to configure rounding of Image() widgets. ( #2942 , #845 )
...
Moving border drawing above AddImage() call, should not make a difference for square images.
2026-01-14 15:55:03 +01:00
ocornut
f5384544cb
(Breaking) Commented out legacy names obsoleted in 1.90 (Sept 2023): BeginChildFrame(), EndChildFrame(), ShowStackToolWindow(), IM_OFFSETOF(), IM_FLOOR().
2026-01-08 17:33:09 +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
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
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
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
0ff810038d
Added GetItemFlags() in public API. ( #9127 )
2025-12-22 18:33:12 +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
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
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
0d2dd30ee9
Tabs: minor tweaks to facilitate mods altering spacing.
2025-12-11 17:17:57 +01:00
ocornut
9971251574
Fonts: amend/comment on FontDataOwnedByAtlas=false fix being a breaking change. ( #9086 , #8465 )
2025-12-10 21:42:07 +01:00