12132 Commits

Author SHA1 Message Date
ocornut
c2dd2c14f4 ImStrv: marked with IM_NODEBUGSTEP.
Reduce cognitive/debug-stepping load.
2026-10-15 18:49:52 +02:00
ocornut
e4c9f665a5 ImStrv: detect and fixed misuses of CalcTextSize() old signature. (9321) 2026-10-15 18:49:52 +02:00
David Mentler
3be1f20b54 ImStrv: Added ImStrv formatter for LLDB (e.g. Xcode) 2026-10-15 18:49:52 +02:00
ocornut
6803e0bc4c ImStrv: made length() returns an int as it simplify the most common case (of passing %.*s to printf) 2026-10-15 18:49:52 +02:00
ocornut
9836f99172 ImStrv: allow constructing from two null pointers. 2026-10-15 18:49:51 +02:00
ocornut
9b3ef66481 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-10-15 18:49:51 +02:00
ocornut
549a972122 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-10-15 18:49:51 +02:00
ocornut
01ae903784 ImStrv: add needed disambiguishing functions for const char* now being ambiguous. (5079)
amended for gcc/clang warnings
amended to facilitate merge with docking
2026-10-15 18:49:51 +02:00
ocornut
7d26469d25 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-10-15 18:49:51 +02:00
璀境石
4a136292ec ImStrv: enhanced VS debugger .natvis support. build fixes. (5333, 5906) 2026-10-15 18:49:51 +02:00
ocornut
b7310858ab ImStrv: standardized code doing format copy, optimized ImStrStr 2026-10-15 18:49:51 +02:00
ocornut
9e5e8be006 ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks + fixed various compiles errors/warnings. 2026-10-15 18:49:51 +02:00
ocornut
ab5b20b91a 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-10-15 18:49:51 +02:00
ocornut
75f5368fab 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-10-15 18:49:50 +02:00
Rokas Kupstys
2e819e866f ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
(last rebase amend 2024/12/11)
2026-10-15 18:49:50 +02:00
ocornut
d88f238d1d Merge branch 'master' into docking
# Conflicts:
#	imgui.cpp
2026-10-15 18:47:51 +02:00
ocornut
c7d17f01cd ImVec2: added a check for cases where a custom IM_VEC2_CLASS_EXTRA macro adds an extra operator= to ImVec2 2026-10-15 17:56:20 +02:00
ocornut
f5d2b7dd01 CI: fixes for macOS. 2026-10-15 16:32:52 +02:00
ocornut
145a2fbab6 Docs: update binaries. 2026-10-15 16:24:58 +02:00
ocornut
4c9c888fc5 Build: warning fixes for VS2015 and <v141. 2026-10-15 15:39:58 +02:00
ocornut
1ff218165d (Breaking) Commented out legacy names/functions which were obsoleted in 1.91.1 (Sept 2024). 2026-10-15 14:56:24 +02:00
ocornut
93a14c8fda (Breaking) Commented out legacy names/functions which were obsoleted from 1.90.7 (May 2024) to 1.91.0 (Sept 2024). 2026-10-15 14:51:48 +02:00
ocornut
cbe3d5fb88 Version 1.93.1 WIP 2026-10-15 14:34:31 +02:00
Pascal Thomet
f996126249
Demo: correct demo markers wordings (#9586) 2026-10-15 14:28:13 +02:00
ocornut
6d32174508 Allow IM_NODEBUGSTEP to be defined by user. (#9584)
Amend e2e9533991
2026-10-15 14:03:51 +02:00
ocornut
b916186e66 Style: update StyleColorsDark() for 1.93: amend for DockingEmptyBg.
Amend a6fad9b and 9c50bd6.
v1.93.0-docking
2026-10-14 18:31:00 +02:00
ocornut
b94ba000e0 Merge branch 'master' into docking
# Conflicts:
#	examples/example_sdl3_metal4/main.mm
2026-10-14 18:30:46 +02:00
ocornut
c1aaac65e8 Version 1.93.0 v1.93.0 2026-10-14 17:55:08 +02:00
ocornut
a6fad9bbda Style: update StyleColorsDark() for 1.93: greyer WindowBg, dark FrameBg. 2026-10-14 16:45:24 +02:00
ocornut
a536894821 Examples: all examples now default to use a little bit of rounding (FrameRounding and GrabRounding). 2026-10-14 16:45:18 +02:00
ocornut
098c71133c Demo: Plot, Vertical Sliders, Colors: better scaling.
+ enforce some rounding in vertical slider demo.
2026-10-13 16:38:13 +02:00
ocornut
09cd4416e8 PlotHistogram: fixed passing inverted coordinates to AddRectFilled(). 2026-10-13 16:20:49 +02:00
Pascal Thomet
42a22377a4
Demo: Mixed Values: added IMGUI_DEMO_MARKER(). (#9582) 2026-10-12 23:07:30 +02:00
Mikko Mononen
6aa6626f29 DrawList: improved handling of very small circles.
See testbed case 354.
2026-10-12 15:31:16 +02:00
Yan Pujante
dc09bbee1e Examples: GLFW/SDL2/SDL3+WebGPU: better select surface format instead of using surface_capabilities.formats[0]. (#9576) 2026-10-12 13:11:45 +02:00
ocornut
906c6838ad Debug: fixed DebugNodeTexture()->FormatTextureRefForDebugDisplay() truncating displayed value to 32-bits. (#9578) 2026-10-12 12:56:19 +02:00
ocornut
778992face Backends: Metal, Metal4: fixed build for multi-viewports. Amend 5cf9cef. (#9574) 2026-10-07 20:36:32 +02:00
ocornut
5cf9cefbe3 Backends: Metal, Metal4: fixed build for multi-viewports. Amend f502f9c. (#9574) 2026-10-07 20:08:13 +02:00
ocornut
2859f6723c Docs: fixed various comments. 2026-10-07 19:50:23 +02:00
ocornut
0cb6f6501c Merge branch 'master' into docking
# Conflicts:
#	backends/imgui_impl_metal.mm
#	backends/imgui_impl_vulkan.cpp
#	imgui.cpp
2026-10-07 19:11:40 +02:00
ocornut
b2ade5f3ad DrawList: AddRectFilled: add support for ImDrawFlags_StrokeLegacy to handle inverted coordinates + non-AA path.
Fix cases 207 and 251 in testbed.
+ add braces near an IM_APPEND_TRI() to silence PVS-Studio reasonable warning "V640  The code's operational logic does not correspond with its formatting"
2026-10-07 19:07:18 +02:00
ocornut
75ac1ab2c3 DrawList: AddCircle: fixed issue not clearing path in unlikely case where Path.Size<3. 2026-10-07 18:53:55 +02:00
ocornut
cbf4f05419 DrawList: added io.ConfigDebugDrawListDefaultsToStrokeLegacy. (#9504) 2026-10-07 18:53:55 +02:00
Mikko Mononen
9e5e0bf9b2 DrawList: added explanation for IM_POLYLINE_CONVEX_POLY_MAX_BEVELS. 2026-10-07 18:53:55 +02:00
ocornut
d23a638613 Demo: Custom Rendering: added zig-zag concave shape, tweak color, tidy up section.
Demo: Custom Rendering: tweak animated rounding.
2026-10-07 18:53:55 +02:00
ocornut
f84d77c424 DrawList: changed _GetStrokePos() to a macro. 2026-10-07 18:53:55 +02:00
ocornut
cb66fcdaac DrawList: rename ImDrawFlags_MiterOnly->ImDrawFlags_JoinMiter, ImDrawFlags_SquareCap->ImDrawFlags_CapSquare. 2026-10-07 18:53:55 +02:00
ocornut
7bccc3bc1e DrawList: AddCircle, AddCircleFilled: fixed large circles being under-tessellated (when above ~140 with default CircleTessellationMaxError). 2026-10-07 18:53:55 +02:00
ocornut
475b793baa Docs: reworked Changelog, comments. 2026-10-07 18:53:55 +02:00
ocornut
0e756a649d (Breaking) DrawList: renamed ImDrawFlags_RoundCornersXXX to ImDrawFlags_RoundXXX. (#9504) 2026-10-07 18:53:55 +02:00