David Mentler
a39f24e02d
ImStrv: Added ImStrv formatter for LLDB (e.g. Xcode)
2026-01-23 16:20:04 +01:00
ocornut
74aed859ec
ImStrv: made length() returns an int as it simplify the most common case (of passing %.*s to printf)
2026-01-23 16:20:04 +01:00
ocornut
d94a403b17
ImStrv: allow constructing from two null pointers.
2026-01-23 16:20:04 +01:00
ocornut
2a3fa8123c
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-23 16:20:04 +01:00
ocornut
cde6b48b04
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-23 16:20:04 +01:00
ocornut
e5766c17cf
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-23 16:20:04 +01:00
ocornut
8b3f891601
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-23 16:20:04 +01:00
璀境石
9fb3516c25
ImStrv: enhanced VS debugger .natvis support. build fixes. (5333, 5906)
2026-01-23 16:20:04 +01:00
ocornut
14c4b5e27c
ImStrv: standardized code doing format copy, optimized ImStrStr
2026-01-23 16:20:04 +01:00
ocornut
7092769988
ImStrv: Fixed various compile errors/warnings.
2026-01-23 16:20:04 +01:00
ocornut
6400b89a13
ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks.
2026-01-23 16:20:03 +01:00
ocornut
50c3710cb3
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-23 16:19:07 +01:00
ocornut
35606fae7e
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-23 16:19:07 +01:00
Rokas Kupstys
74c8590b6a
ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
...
(last rebase amend 2024/12/11)
2026-01-23 16:18:16 +01:00
ocornut
d1cf58e590
Nav: fixed WrapX/LoopX handling in menu layer. ( #9178 )
...
Amend 3050f653cb
2026-01-23 16:00:28 +01:00
RegimantasSimkus
e1217227b2
Tooltips, Disabled: fixed EndDisabledOverrideReenable() assertion when nesting a tooltip in a disabled block. ( #9180 , #7640 )
...
Amend f953ebf9ca
2026-01-23 15:29:27 +01:00
ocornut
7250fbde2e
Fixed warning compiling stb_truetype with MSVC, C++20 with /w15262 ( #9189 )
2026-01-23 14:29:20 +01:00
ocornut
a117055b6b
Internals: move field for locality.
2026-01-22 20:13:35 +01:00
ocornut
b015acc464
Viewports: added GetWindowViewport() in imgui_internal.h to increase consistency with code using this public API in docking branch. ( #9140 )
2026-01-22 17:50:25 +01:00
ocornut
3050f653cb
Menus, Nav: made navigation into menu-bar auto wrap on X axis. ( #9178 )
2026-01-22 17:33:35 +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
3aba95060e
Fonts: adding new fonts after removing all fonts mid-frame properly updates current state.
2026-01-21 19:53:55 +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
42b7704b70
InputText: add ImGuiInputTextState::SetSelection() helper + make TextSrc valid outside scope for non-read only fields. ( #9174 )
2026-01-21 18:19:03 +01:00
Pádraic Slattery
3803203d47
CI: update outdated GitHub Actions versions ( #9186 )
2026-01-21 17:34:30 +01:00
ocornut
8c0b410371
Docs: tweaks.
2026-01-20 18:25:18 +01:00
ocornut
8b86c939c7
Backends: DirectX10, DirectX11, SDLGPU3: added nearest sampler in ImGui_ImplDX10_RenderState/ImGui_ImplDX11_RenderState/ImGui_ImplSDLGPU3_RenderState struct.
...
(#6969 , #5834 , #7468 , #3590 , #9173 , #8926 , #7230 , #5118 , #3590 , #2973 , #6969 )
2026-01-19 13:02:25 +01:00
thedmd
b933599f00
Backends: DirectX12: added helpers to switch to Linear sampler (yet not made public, but intended to be forward declared). ( #9173 )
2026-01-19 12:32:45 +01:00
ocornut
12223cc3e9
Error handling: rework macros, add IM_ASSERT_USER_ERROR_RET(), IM_ASSERT_USER_ERROR_RETV() to simplify code.
2026-01-19 12:16:10 +01:00
ocornut
ea122de913
Error handling: Improve error handling and recovery for TableSetupColumn().
2026-01-19 11:49:11 +01:00
ocornut
14dfd5bf6b
Examples: DX12: update to VS2019 so it supports WIndows SDK 10.0 simplified versioning.
2026-01-19 11:42:08 +01:00
E
5dde06b327
Docs: fixed 'Tearaway' link in credits section ( #9176 )
2026-01-18 23:45:38 +01:00
ocornut
21d3299e58
Backends: fixed reappearing uses to NULL to favor nullptr.
2026-01-15 16:09:01 +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
9a6eb0ab25
Backends: Vulkan: ImGui_ImplVulkanH_DestroyWindow() oes not call vkDestroySurfaceKHR(): because surface is created by caller. ( #9163 )
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
2026-01-14 19:37:05 +01:00
ocornut
a1dfaf4869
ImageButton() doesn't use a clamped style.FrameRounding value but instead adjust inner image rounding when FramePadding > FrameRounding. ( #2942 , #845 )
2026-01-14 15:55:07 +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
0d08927dae
Error handling: Improve error handling and recovery for EndMenu()/EndCombo(). ( #1651 , #9165 , #8499 )
2026-01-14 14:59:39 +01:00
ocornut
791ad9b82d
InvisibleButton: allow calling with size (0,0) to fit to available content size. ( #9166 , #7623 )
2026-01-13 16:15:48 +01:00
ocornut
f64c7c37ef
Fonts: fixed a crash when trying to use AddFont() with MergeMode=true on a font that has already been rendered. ( #9162 )
2026-01-12 18:17:38 +01:00
ocornut
d1c5a66557
Backends: WebGPU: rework unsupported path into an assert. ( #9155 , #9156 )
2026-01-12 12:11:10 +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
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