0e2a167bdb
Fonts: added a 'void* UserData' field in ImFontAtlas, as a convenience for use by applications using multiple font atlases.
ocornut2022-12-01 20:08:43 +01:00
9825f7fa87
Fixed cases where CTRL+Tab or Modal can occasionally lead to the creation of ImDrawCmd with zero triangles. (#4857, #5937)
ocornut2022-12-01 18:40:36 +01:00
66ad2ad539
Properly detect SSE instruction support in 32-bit MSVC build. (#5943)
assiduousandocornut2022-11-30 11:57:54 -08:00
45736443be
Debug Tools: Metrics: added "Inputs" section, moved from Demo for consistency.
ocornut2022-11-30 20:08:57 +01:00
87caf27ac4
Inputs, Scrolling: better selection of scrolling window when hovering nested windows and backend/OS is emitting dual-axis wheeling inputs. (#3795, #4559)
ocornut2022-11-30 17:46:57 +01:00
a5f3596e6c
Backends: Allegro5: use al_draw_indexed_prim() or al_draw_prim() depending on version. (#5937)
ocornut2022-11-30 14:43:00 +01:00
50aeeff96c
Backends: Allegro5: Brough back al_draw_indexed_prim when available. (#5937)
Espyoandocornut2022-11-29 20:56:10 +00:00
bf4c2e00c0
Docs: retroactively update 1.89 changelog/docs to clarify that strong typing ImGuiKey was technically a breaking change for users of legacy indices. (#4921)
ocornut2022-11-29 21:36:59 +01:00
cc3a2200a9
Internals: invert logic of mods key<>bool translation to facilitate other experiments and put emphasis on new API. (#5923, #4921)
ocornut2022-11-29 18:57:38 +01:00
1a497c2499
Inputs, IO: reworked ImGuiMod_Shortcut to redirect to Ctrl/Super at runtime instead of compile-time. (#5923, #456)
ocornut2022-11-29 18:11:09 +01:00
969af7c773
Internal: Disable debug logs macro if IMGUI_DISABLE_DEBUG_TOOLS is defined. (#5901)
Teselkaandocornut2022-11-20 23:45:55 +02:00
bd96f6eac4
Text: Fixed layouting of wrapped-text block when the last source line is above the clipping region. Regression added in 1.89. (#5720, #5919)
ocornut2022-11-28 14:59:13 +01:00
6af38b1a43
Fixed version string for consistency (#5918)
ocornut2022-11-28 14:42:30 +01:00
27c58c3946
Scrolling, Focus, Combo: fixed SetKeyboardFocusHere()/SetItemDefaultFocus()/ScrollToRectEx() during an appearing form not centering item. (#5902, #2812, #4242, #2900)
ocornut2022-11-24 17:40:51 +01:00
856c6314ec
Drag and Drop: fixed GetDragDropPayload() returning a non-NULL value before payload is submitted. (#5910, #143)
ocornut2022-11-23 17:58:14 +01:00
ffe0abbfc2
Internals: added basic localization system (#5895)
ocornut2022-11-23 16:05:16 +01:00
c3d9f8ee7e
Layout: fixed End()/EndChild() incorrectly asserting if users manipulates cursor position inside a collapsed/culled window and IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. (#5548, #5911)
ocornut2022-11-23 15:18:59 +01:00
3a685749cb
ColorEdit: fixed label overlapping when using style.ColorButtonPosition == ImGuiDir_Left. (#5912)
ocornut2022-11-23 14:40:58 +01:00
16476f99fd
Backends: GLFW: cancel out errors emitted by glfwGetKeyName() when a name is missing. (#5908)
ocornut2022-11-22 18:08:25 +01:00
7bee9a8f96
Inputs: fixed moving a window or drag and dropping from preventing input-owner-unaware code from accessing keys. (#5888, #4921, #456)
ocornut2022-11-16 17:53:35 +01:00
d60985df7f
Inputs: fix moving a window or drag and dropping from capture mods. (#5888, #4921, #456)
ocornut2022-11-16 17:40:44 +01:00
83cee9e091
InputText: replaced some uses of SetKeyOwner() + IsKeyPressed() with Shortcut()
ocornut2022-11-16 15:55:10 +01:00
7380b9816e
Scrolling: Exposed SetNextWindowScroll() in public API. (#1526)
ocornut2022-11-09 17:03:07 +01:00
cda26635cd
Inputs: refacotr/extract CalcRoutingScore() out of SetShortcutRouting(), easier to follow with early returns.
ocornut2022-11-09 16:32:30 +01:00
44d98bfd6d
Fix build with IMGUI_DISABLE_DEBUG_TOOLS
ocornut2022-11-04 16:35:57 +01:00
529cba19b0
Debug Tools: Added DebugLocateItem()/DebugLocateItemOnHover() to visually locate items when hovering a 0xXXXXXXXX value. (#5855, #2673, #4631)
ocornut2022-10-24 22:53:43 +02:00
7109f32f96
Internals: tidying up and stripping more of focus scope code.
ocornut2022-11-03 16:25:15 +01:00
9f66a3a9ed
Internals: rework FocusScope system, current scope doesn't need to be in window + child doesn't inherit.
ocornut2022-10-19 20:54:19 +02:00
1eac0024c0
InputText: copy and select all shortcuts don't need repeat (tho it was harmless0
ocornut2022-11-03 18:23:42 +01:00
90e9465fa5
Window: Fixed position not being clamped while auto-resizing (#5843)
ocornut2022-11-02 12:36:41 +01:00
6e9dfe1de1
Window: Auto-fit size takes account of work rectangle (menu bars eating from viewport). (#5843)
ocornut2022-11-02 12:36:22 +01:00
86f2af2bc7
Backends: OSX: Fixed mouse coordinate before clicking on the host window. (#5842)
Akira Maezawaandocornut2022-11-02 01:52:20 +09:00
c2694ef75e
Examples: Android: Using LoadIniSettingsFromMemory() / SaveIniSettingsToMemory() to save in appropriate location for Android. (#5836)
Rewtioandocornut2022-10-30 05:09:13 +07:00
22bcfca700
IO: Clear AppFocusLost in EndFrame() in order to allow backend or application code to poll and react to it
ocornut2022-10-28 20:01:20 +02:00
a241dc7990
IO: Fixed AddFocusEvent(false) to also clear MouseDown[] state. (#4921)
ocornut2022-10-27 20:17:19 +02:00
a61bbdc239
Commented out redirecting OpenPopupContextItem() which was briefly the name of OpenPopupOnItemClick() from 1.77 to 1.79.
ocornut2022-10-26 22:22:53 +02:00
f6bd7c8e53
Debug Tools: Item Picker: remove IMGUI_DEBUG_TOOL_ITEM_PICKER_EX since it doesn't work on non-ItemHoverable() items anyway. (#2673)
ocornut2022-10-21 18:03:46 +02:00
bc918404fe
Internals: using ImToUpper() since std one does too many things.
ocornut2022-10-21 16:13:52 +02:00
9a35bfea39
Internals: added temporary ImGuiItemStatusFlags_Visible (used internally - please do not use).
ocornut2022-10-19 16:52:23 +02:00
e3fa56ae05
BeginMenu(): Menus: Fixed a one-frame issue where SetNextWindowXXX data are not consumed by a BeginMenu().
ocornut2022-10-19 12:07:56 +02:00
5ac94ad898
Window: Fixed an issue where uncollapsed a window would show a scrollbar for a frame.
ocornut2022-10-18 16:29:35 +02:00
ab6e48b833
Backends: GLFW: Perform a dummy glfwGetError() read to cancel missing mouse cursors errors. (#5785)
ocornut2022-10-18 12:17:59 +02:00
08752b372e
Menus, Popups: Experimental fix for issue where clicking on an open BeginMenu() item called from a window which is neither a popup neither a menu used to incorrectly close and reopen the menu. (#5775)
ocornut2022-10-14 18:43:04 +02:00
81176737f8
Menus: Fixed using IsItemHovered()/IsItemClicked() on BeginMenu(). (#5775)
ocornut2022-10-14 17:39:04 +02:00
3920b1c764
Removed commented out old flags from when Tables was a branch.
ocornut2022-10-12 23:35:53 +02:00
b15347cb7d
Tables: activating an ID (e.g. clicking button inside) column doesn't prevent columns output flags from having ImGuiTableColumnFlags_IsHovered set. (#2957)
ocornut2022-10-13 15:15:42 +02:00
3e8d198133
Removed runtime patching of obsolete/invalid "%f"/"%.0f" types of format strings for DragInt()/SliderInt().
ocornut2022-10-12 23:07:15 +02:00
85a368b58d
Fixed ImGuiWindowFlags_UnsavedDocument clipping label in docked windows with no close button. (#5745)
ocornut2022-10-04 18:00:42 +02:00
c7d3d22ae1
Scrolling: Mitigated issue where multi-axis mouse-wheel inputs (usually from touch pad events) are incorrectly locking scrolling in a parent window. (#4559, #3795, #2604)
ocornut2022-10-04 15:39:55 +02:00
80a870a3e5
Scrolling: Tweak mouse-wheel locked window timer so it is shorter but also gets reset whenever scrolling again (#2604) + small refactor
ocornut2022-09-28 12:08:40 +02:00
282b2b5afb
Backends: Vulkan: Fix building with VK_NO_PROTOTYPES. (#914, #5738).
ocornut2022-10-04 12:30:45 +02:00
a588f00f7b
Backends: Vulkan: Added experimental ImGui_ImplVulkan_RemoveTexture() for api symetry. (#914, #5738).
ocornut2022-10-04 12:02:48 +02:00
5884219867
imgui_freetype: Assert if bitmap size exceed chunk size to avoid buffer overflow. (#5731)
cfillionandocornut2022-09-28 23:37:39 -04:00
f2a522d70d
ImDrawList: Not using alloca() anymore, lift single polygon size limits. (#5704, #1811)
ocornut2022-09-30 15:43:27 +02:00
cc5058e5d7
IO: Filter duplicate input events during the AddXXX() calls. (#5599, #4921)
ocornut2022-09-29 21:59:32 +02:00
fac8295d6e
IO: remove ImGuiInputEvent::IgnoredAsSame (revert part of 839c3100), will filter earlier in next commit. (#5599)
ocornut2022-09-29 21:31:36 +02:00
9e7f460c09
Fixed GetKeyName() for ImGuiMod_XXX values, made invalid MousePos display in log nicer. (#4921, #456)
ocornut2022-09-29 20:42:45 +02:00
0749453355
Menus, Nav: Fixed not being able to close a menu with Left arrow when parent is not a popup. (#5730)
ocornut2022-09-29 19:51:54 +02:00
bd2355a047
Menus, Nav: Fixed using left/right navigation when appending to an existing menu (multiple BeginMenu() call with same names). (#1207)
ocornut2022-09-29 19:25:26 +02:00
3532ed1621
Menus, Nav: Fixed keyboard/gamepad navigation occasionally erroneously landing on menu-item in parent when the parent is not a popup. (#5730)
ocornut2022-09-29 18:07:35 +02:00