a05d547ae8
Windows: separating WindowItemStatusFlags from ChildItemStatusFlag, because IsItemXXX _after_ BeginChild()>Begin() shouldn't return last status emitted by e.g. EndChild()
ocornut2025-01-27 14:39:26 +01:00
134fbe1245
Windows: Fixed IsItemXXXX() functions not working on append-version of EndChild(). (#8350)
ocornut2025-01-27 12:39:44 +01:00
5a28f188ff
Fixed parameter names to SetLastItemData() to align with current names.
ocornut2025-01-27 12:27:10 +01:00
96e3b147f0
Fixed build with IMGUI_ENABLE_FREETYPE (#8346)
ocornut2025-01-25 01:14:46 +01:00
afb6e9a879
Fonts: OversampleH auto-selection uses 36 as heuristic for now.
ocornut2025-01-24 20:03:04 +01:00
8a1613a382
Fonts: OversampleH/OversampleV value defaults to 0 for automatic selection.
ocornut2025-01-24 19:27:50 +01:00
4211fdc70b
ImFont: compact comments in header section.
ocornut2025-01-22 15:44:51 +01:00
9eafb7bbfb
ImFont: IndexLookup[] table hold 16-bit values even in ImWchar32 mode.
ocornut2025-01-24 16:54:59 +01:00
53244aaac7
Amend 9bc5b04 with a shadowed variable warning fix.
ocornut2025-01-24 15:00:21 +01:00
ed7551c1d4
Selectable: Fixed horizontal label alignment when combined with using ImGuiSelectableFlags_SpanAllColumns. (#8338)
ocornut2025-01-24 14:59:37 +01:00
9bc5b0406d
Windows, Style: Fixed small rendering issues with menu bar, resize grip and scrollbar when using thick border sizes. (#8267, #7887)
ocornut2025-01-24 14:39:07 +01:00
6906ac979e
ColorEdit, ColorPicker: (Breaking) redesigned how alpha is displayed in the preview square. (#8335, #1578, #346)
ocornut2025-01-22 12:12:07 +01:00
3e6bdc2242
Examples: SDL3+SDL_GPU: use SDL_GPU_PRESENTMODE_MAILBOX swapchain parameters.
ocornut2025-01-22 10:22:31 +01:00
bf13442c7c
Moved ImGuiColorEditFlags_AlphaPreview/ImGuiColorEditFlags_AlphaPreviewHalf flags. Demo: reorganized some of color edit/picker demo section.
ocornut2025-01-21 14:59:29 +01:00
2af26b75d1
ColorEdit, ColorPicker: Fixed alpha preview broken in 1.91.7. (#8336, #8241). [@PathogenDavid]
David Maasandocornut2025-01-21 14:25:39 +01:00
7ae7c90790
Tabs, Style: reworked selected overline rendering to better accommodate for rounded tabs. (#8334)
ocornut2025-01-21 13:55:44 +01:00
e8779a67b1
Font: direct AddText()/RenderText() calls don't need to call strlen() if below clipping region.
ocornut2025-01-20 17:55:09 +01:00
4c2e7bb035
Backends: SDL2,SDL3: removed assert preventing using ImGui_ImplSDL2_SetGamepadMode()/ImGui_ImplSDL3_SetGamepadMode() with ImGui_ImplSDL2_GamepadMode_Manual/ImGui_ImplSDL3_GamepadMode_Manual and an empty array. (#8329)
ocornut2025-01-20 15:24:46 +01:00
8b0af7fddc
Backends: SDL: update comments regarding API stability, regarding SDL_GPU and SDL_Renderer.
ocornut2025-01-20 14:30:40 +01:00
487d7f9a29
Font: Internals: make used page maps smaller. Since it's extremely rarely used and for iterations only. ~34->16 bytes with ImWchar32.
ocornut2025-01-16 22:30:43 +01:00
f2262eb81a
Windows: latch FontRefSize at time of Begin(), consistent with e.g. TitleBarHeight, and to avoid calling CalcFontSize() on non-current window.
ocornut2025-01-16 19:46:54 +01:00
b7c27c5333
Windows: legacy SetWindowFontScale() is properly inherited by nested child windows. (#2701, #8138, #1018)
ocornut2025-01-16 19:07:09 +01:00
4c64ba16c5
imgui_freetype: fixed issue where glyph advances would incorrectly be snapped to pixels.
ocornut2025-01-16 17:42:00 +01:00
8ebf22d3c1
Backends: Vulkan: use ImVector<> for simplicity.
ocornut2025-01-15 16:10:47 +01:00
6684984c49
Examples: DirectX12: Reduced number of frame in flight from 3 to 2 in provided example, to reduce latency.
ocornut2025-01-15 15:13:05 +01:00
0e21bde77b
Misc shallow merge to reduce diff in other branches.
ocornut2025-01-15 13:58:38 +01:00
8a9de84cd0
FontAtlas: reduced baked IM_DRAWLIST_TEX_LINES_WIDTH_MAX from 63 to 32. (#3245)
ocornut2025-01-15 13:47:52 +01:00
100075f2be
Backends: DirectX12: Texture upload use the command queue provided in ImGui_ImplDX12_InitInfo instead of creating its own.
ocornut2025-01-15 12:05:33 +01:00
32cea85331
Debug Tools: Item Picker: Always available in menu. Tweak Demo Debug Options. (#2673, #1651)
ocornut2025-01-13 15:51:39 +01:00
00f12b9a09
InputText: Fixed not calling CallbackEdit on revert/clear with Escape key. (#8273) + rework comments.
ocornut2025-01-13 15:22:45 +01:00
a604d4f717
Fixed IsItemDeactivated(), IsItemDeactivatedAfterEdit() to work when interrupted before/after the active id is submitted. (#5184, #5904, #6766, #8303, #8004)
ocornut2025-01-10 17:08:09 +01:00
a28ffa81c4
Docs: added more references to IsKeyDown(), InFlags. (#8317)
ocornut2025-01-13 13:26:15 +01:00
1d962820d8
Error Handling: Turned common EndTable() and other TableXXX functions fail cases into recoverable errors. (#1651, #8314)
ocornut2025-01-12 15:11:30 +01:00
0b8ff4b238
Backends, Examples: Vulkan: add IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE. use in descriptor pools sizes. (#6642)
ocornut2025-01-09 23:15:59 +01:00
c7983115e9
Fonts: Further tweaks for Ellipsis ("...") character width when automatically created from a single comma character: use AdvanceX as min.
ocornut2025-01-08 18:27:01 +01:00
90094a871a
Fonts: Fixed miscalculation of Ellipsis ("...") character width when automatically created from a single comma character.
ocornut2025-01-08 18:13:53 +01:00
1c67a3412e
BeginChild: also caller to manually set ImGuiNextWindowDataFlags_HasChildFlags / ChildFlags. (#8280)
ocornut2025-01-08 14:55:51 +01:00
2b8545684c
Refactor: moved Window Focus related functions to a dedicated section.
ocornut2025-01-08 14:22:37 +01:00
bbbdc70f26
Refactor: moved FindBlockingModal() in its section.
ocornut2025-01-08 12:43:56 +01:00
cec8ff1885
Backends: Vulkan: Fixed building with using VK_NO_PROTOTYPES. (#8180)
ocornut2025-01-06 18:41:17 +01:00
f04d3cbdaa
Backends: DirectX10: Expose selected render state in ImGui_ImplDX10_RenderState, which you can access in 'void* platform_io.Renderer_RenderState' during draw callbacks. (#6969, #5834, #7468, #3590)
ocornut2025-01-06 18:28:01 +01:00
e7e898ea17
Tables: Fixed TableAngledHeadersRow() creating an infinite horizontal scrolling region when the table is hosted in a viewport with negative coordinates.
ocornut2025-01-06 16:12:33 +01:00
d0021e1621
Backends: Metal: Fixed resource leak when using multiple contexts. (#7419)
ocornut2025-01-06 15:01:59 +01:00
2f1194a296
Demo: Added label edition to Property Editor demo + fix an ID issue. (#8266)
ocornut2025-01-06 14:35:57 +01:00
80aafbc81b
Data types: moved ImGuiDataType_String to public API as a convenience enum value only. (#8266)
ocornut2025-01-06 14:22:03 +01:00
c147a59bb0
Clarified alternative for ImGuiButtonFlags_Repeat being ImGuiItemFlags_ButtonRepeat. (#8293)
ocornut2025-01-06 13:58:02 +01:00
2d2c7d3f95
Backends: Allegro5: Avoid calling al_set_mouse_cursor() repeatedly since it appears to leak on on X11 (#8256).
Helodityandocornut2024-12-22 22:48:07 -05:00
18929bd6d6
Internals: merge ScaleWindowsInViewport() from docking branch.
ocornut2024-12-20 23:26:21 +01:00
2a600bddcb
ImGuiDebugLogFlags_EventFont should not be set by default (had no effect on master tho)
ocornut2024-12-20 23:11:37 +01:00
006721fbd6
Added ImFontAtlas section index in comments + minor tweaks to DX12 backends.
ocornut2024-12-11 18:15:28 +01:00
7219fa65c0
Revert "Fonts: Allowing PushFont()/PopFont() to be called outside the imgui frame scope. (#3621)"
ocornut2024-12-20 17:20:57 +01:00
61d4bf95dc
Fonts: Allowing PushFont()/PopFont() to be called outside the imgui frame scope. (#3621)
ocornut2024-12-20 17:17:40 +01:00
d30e102f3a
Scrollbar, TestEngine: for consistency, scrollbars are registered in _Menu layer.
ocornut2024-12-20 15:22:34 +01:00
91e8f2b0fe
Debug Tools: Debug Log: hovering 0xXXXXXXXX values in log is allowed even if a popup is blocking mouse access to the debug log window. (#5855)
ocornut2024-12-20 15:13:49 +01:00
eed9502795
Error Handling: Fixed bugs recovering from within a table that created a child window, and from nested child windows. (#1651)
ocornut2024-12-20 14:28:04 +01:00
fd93229770
Tables, MultiSelect: Fixed an issue where column width may be mismeasured when calling BeginMultiSelect() while inside a table. (#8250)
ocornut2024-12-19 18:14:22 +01:00
9b0e61aaaa
InputText: sanity checks to e.g. detect non zero-terminated buffers + removed a redundant strlen() call during activation.
ocornut2024-12-19 15:10:44 +01:00
32f11402f9
InputText: use TextSrc more consistently to facilitate accessing user buffer in text processing code. (#8242)
ocornut2024-12-18 16:47:02 +01:00
e900571ac2
InputText: Fixed issue when activating a ReadOnly field when the underlying value is being modified. (#8242)
ocornut2024-12-18 16:14:04 +01:00