ocornut
f67b4b2225
ImStrv: detect and fixed misuses of CalcTextSize() old signature. (9321)
2026-07-03 17:10:11 +02:00
ocornut
77e1a0c97c
ImStrv: made length() returns an int as it simplify the most common case (of passing %.*s to printf)
2026-07-03 17:10:11 +02:00
ocornut
05ba2c3fda
ImStrv: allow constructing from two null pointers.
2026-07-03 17:10:10 +02:00
ocornut
c75472080f
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-03 17:10:10 +02:00
ocornut
b7a824fc1a
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-03 17:10:10 +02:00
ocornut
ed52301e8e
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-03 17:10:10 +02:00
ocornut
fc931b012e
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-03 17:10:10 +02:00
ocornut
0829ffe82b
ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks + fixed various compiles errors/warnings.
2026-07-03 17:10:09 +02:00
ocornut
5d63ffc596
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-03 17:10:09 +02:00
ocornut
5414b312c0
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-03 17:10:08 +02:00
Rokas Kupstys
f15ef9c27f
ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
...
(last rebase amend 2024/12/11)
2026-07-03 17:10:08 +02:00
ocornut
5c2160ac85
Settings, IO: move ConfigDebugIniSettings in same section.
2026-07-03 16:56:38 +02:00
ocornut
5fb77dfde1
Settings: added io.ConfigIniSettingsAutoDiscardMonths, trimming tool in in Metrics->Settings + internal CleanupIniSettings(). ( #9460 )
...
cc #437 #2564
2026-07-03 16:36:46 +02:00
ocornut
f7e8343ee9
Settings, IO: added io.ConfigIniSettingsSaveLastUsedDate, platform_io.Platform_SessionDate, IMGUI_DISABLE_TIME_FUNCTIONS(). ( #9460 )
...
cc #437
2026-07-03 16:36:45 +02:00
ocornut
279d04f7a3
Added GetItemClickedCountWithSingleClickDelay(), io.MouseSingleClickDelay. ( #8337 )
2026-07-01 18:53:29 +02:00
ocornut
76f5be2749
Settings: minor struct packing.
2026-06-25 22:59:51 +02:00
ocornut
60fbdbb8d8
Multi-Select: reworked ImGuiMultiSelectFlags_NoAutoSelect as it carried side-effects that were hardcoded/designed to use multi-selection on checkboxes. ( #9391 )
2026-06-25 14:13:13 +02:00
ocornut
ac6f9683b5
Style: added MenuItemRounding, SelectableRounding, ImGuiStyleVar_MenuItemRounding, ImGuiStyleVar_SelectableRounding. ( #7589 , #9375 , #9453 )
2026-06-25 11:43:50 +02:00
ocornut
b522576054
Tables: tracking topology changes by default. Match by ID then in sequential order for remaining. ( #9108 , #4046 )
...
Removed ImGuiTableFlags_TrackTopologyChanges.
2026-06-24 16:01:43 +02:00
ocornut
2f94e7dc13
Tables: add support for ImGuiTableFlags_TrackTopologyChanges ( #9108 , #4046 )
2026-06-24 15:50:17 +02:00
ocornut
d15966ff6c
Tables: fixed TableGcCompactSettings() not invalidating bound offset. A crash could in theory be triggered if clicking "Gc All" after saved tables have reduced column count.
...
Tested by "table_settings_5"
2026-06-18 19:48:53 +02:00
Brenton Bostick
7aaf10f15b
Docs: fixed typos ( #9449 )
2026-06-17 14:11:19 +02:00
ocornut
b46a37eac9
Tables: comments about misleading TableSetupColumn() user_id parameter, renamed to user_data.
...
ImGuiTableColumnSortSpecs::ColumnUserID should be changed to ColumnUserData.
2026-06-15 19:05:38 +02:00
ocornut
e5ff2d07d7
Tables: Context-menu: added "Reset" sub-menu and "Reset Visibility" option.
2026-06-11 19:15:55 +02:00
ocornut
f1dd18b75c
Docs: minor amends to ImTextureData comments.
2026-06-10 15:55:48 +02:00
ocornut
14278db024
Fonts: better document the fact that ImFontAtlas::Clear()/ClearFonts() functions are unlikely to be useful nowadays + fix tex->Updates[] ever-growing if ClearFonts() is called between frames.
2026-06-03 15:27:02 +02:00
ocornut
5a42cddcd2
Fixed a build issue when defined IMGUI_API + IMGUI_DISABLE_OBSOLETE_FUNCTIONS. ( #9424 )
...
Amend 6df50a0
2026-06-02 18:40:14 +02:00
ocornut
995e4a65ff
(Breaking) TreeNode: commented out legacy name ImGuiTreeNodeFlags_SpanTextWidth which was obsoleted in 1.90.7 (May 2024). Use ImGuiTreeNodeFlags_SpanLabelWidth instead.
2026-06-02 18:37:01 +02:00
ocornut
5aa0393a15
DrawList: don't mark ImDrawListFlags_TextNoPixelSnap as internal in comments. ( #3437 , #9417 , #2291 )
2026-06-01 17:23:11 +02:00
ocornut
cac16b0d16
DrawList: rename ImDrawListFlags_NoTextPixelSnap -> ImDrawListFlags_TextNoPixelSnap. ( #3437 , #9417 , #2291 )
...
Amend 1d33ea9
2026-05-29 18:39:17 +02:00
ocornut
1d33ea939f
DrawList: added ImDrawListFlags_NoTextPixelSnap to disable snapping of AddText() coordinates for a given scope. ( #3437 , #9417 , #2291 )
...
This may evolve into a per-call ImDrawFlags option as well.
+ clip_rect.Max.y early out may be applied before truncation.
2026-05-29 18:12:11 +02:00
ocornut
75f985998b
Using custom ceilf inline impl in ImGui::CalcTextSize().
...
Amend 7b0bf230 , 4622fa4b6 , 12b7977 . (#791 )
2026-05-29 15:59:44 +02:00
ocornut
783eba926f
Docs: retroactively amend 1.92.8 changelog about ImDrawFlags_Closed value.
...
Amend 6df50a0
2026-05-28 11:37:37 +02:00
ocornut
24a80f74a4
InputText, Style: added InputTextCursorSize to configure cursor/caret thickness. ( #7031 , #9409 )
2026-05-22 19:12:36 +02:00
ocornut
904b663184
Clarify support for "%s" shortcuts in functions taking format strings. ( #9404 , #3466 , #6846 )
2026-05-19 18:50:39 +02:00
ocornut
e41d691da1
Demo: Tree Nodes: extract 'Tree Nodes->Selectable Nodes' into its own thing.
...
+ comments (#9401 )
2026-05-18 14:31:58 +02:00
ocornut
c7767926ce
Version 1.92.9 WIP
2026-05-15 13:28:32 +02:00
ocornut
310c719a1f
Rework definition of ImDrawFlags_InvalidMask_ so it more strictly fits in an int32 for non C/C++ languages where it matters. ( #9396 , #9397 )
2026-05-15 10:48:24 +02:00
ocornut
b2546a5c93
Comments on not needing to use ImDrawFlags_RoundCornersAll.
2026-05-13 12:46:07 +02:00
ocornut
e0f5f9a14c
Amend AddRect(), AddPolyline() error detection to safely return an trigger error handling mechanism.
...
Amend 6df50a0667
2026-05-12 17:40:28 +02:00
ocornut
8936b58fe2
Version 1.92.8
...
Include minor bits: adjust activeid logging, tweak comments.
2026-05-12 16:30:30 +02:00
ocornut
73afb6b6e6
Fonts: clarify that ClearFonts() be useful over calling Clear().
2026-05-11 17:45:59 +02:00
ocornut
eb453f2be6
Checkbox, Style: added ImGuiCol_CheckboxSelectedBg. ( #9392 )
2026-05-11 14:30:34 +02:00
ocornut
0eae77f783
Inputs: SetItemKeyOwner(): return true if ownership has been requested, which can to be checked to accurately gate further input test.
...
(#456 , #2637 , #2620 , #2891 , #3370 , #3724 , #4828 , #5108 , #5242 , #5641 )
2026-05-07 21:15:27 +02:00
ocornut
a70b97ee48
Warning fixes.
2026-05-07 16:51:34 +02:00
ocornut
6df50a0667
(Breaking) DrawList: swapped the last two arguments of AddRect(), AddPolyline(), PathStroke(). thickness<>flags.
...
Added inline redirection functions when IMGUI_DISABLE_OBSOLETE_FUNCTIONS is off.
Marked the old functions are =delete when IMGUI_DISABLE_OBSOLETE_FUNCTIONS is on, to allow for better type-checking.
The aim is to be able to use/add flags to more ImDrawList functions, and making existing functions consistents was deemed very desirable.
2026-05-07 16:37:57 +02:00
Mikko Mononen
691b89baae
ImDrawList: added AddLineH(), AddLineV() helpers. ( #9360 )
...
This commit is aimed to be a lossless transform. Further layout fixes in subsequent commits.
2026-04-28 17:04:54 +02:00
Vlad
dee9b15bbe
Backends: Metal: add sampler states and DrawCallback_SetSamplerLinear / DrawCallback_SetSamplerNearest callbacks. ( #9381 , #9371 , #9378 )
2026-04-28 15:09:23 +02:00
ocornut
ab36fbaf48
Drag and Drop, Style: added ImGuiStyleVar_DragDropTargetRounding. ( #9056 )
...
+ readded rounding arg to RenderDragDropTargetRectEx().
2026-04-27 18:23:56 +02:00
ocornut
10c378cdfc
InputInt, InputFloat, InputScalar: reinstated and fixed ImGuiInputTextFlags_EnterReturnsTrue. ( #8665 , #9299 , #8065 , #3946 , #6284 , #9117 )
2026-04-24 15:15:19 +02:00