Commit Graph

  • fd0b3734d3 Tables, Nav, Scrolling: fixed scrolling functions and focus tracking with frozen rows and columns. (#5143, #4868, #3692) ocornut 2022-12-06 20:42:32 +01:00
  • 16cee3d009 Internals: tidying up and standardizing outer decoration size storage. (toward #5143, #4868, #3692, #3518) ocornut 2022-12-02 19:20:03 +01:00
  • 820b1e651a Internals: reduced duplicate code in CalcNextScrollFromScrollTargetAndClamp() by looping through axiees. ocornut 2022-12-06 18:34:45 +01:00
  • 24b873a740 Internals: renaming inside ScrollToRectEx() + fixed misplaced changelog entry. ocornut 2022-12-06 17:25:54 +01:00
  • 5eda547e6f Merge branch 'master' into docking ocornut 2022-12-06 14:44:00 +01:00
  • ed54e14f1b Refactor: moved UpdateAliasKey(), GetMergedModsFromKeys(), UpdateKeyboardInputs(), UpdateMouseInputs() to INPUTS section. ocornut 2022-12-06 12:14:30 +01:00
  • f83da768b6 Refactor: moved LockWheelingWindow(), FindBestWheelingWindow(), UpdateMouseWheel() to INPUTS section ocornut 2022-12-06 12:12:10 +01:00
  • f9ab2a0e9f Refactor: moved UpdateKeyRoutingTable() to INPUTS section. renamed GetKeyVector2d() -> GetKeyMagnitude2d() ocornut 2022-12-06 12:09:14 +01:00
  • 38a0d7ceb5 Refactor: added INPUTS section index, moved IsMouseHoveringRect() to INPUTS section. ocornut 2022-12-06 12:02:36 +01:00
  • b5883c1cfb Refactor: moved bits into Initialization section. ocornut 2022-12-06 11:54:15 +01:00
  • 713e034d95 Backends: OpenGL3: Fix for zealous warning. (#5947) ocornut 2022-12-03 15:12:20 +01:00
  • 3ea0fad204 Merge branch 'master' into docking ocornut 2022-12-01 20:22:27 +01:00
  • 844e0ae688 Fixes/amend 9825f7f + amend Changelog (#4857, #5937) ocornut 2022-12-01 20:18:32 +01:00
  • 0e2a167bdb Fonts: added a 'void* UserData' field in ImFontAtlas, as a convenience for use by applications using multiple font atlases. ocornut 2022-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) ocornut 2022-12-01 18:40:36 +01:00
  • 66ad2ad539 Properly detect SSE instruction support in 32-bit MSVC build. (#5943) assiduous 2022-11-30 11:57:54 -08:00
  • a5e96ff99e Make ImGuiInputTextState not depend on the implicit GImGui context. (#5856) Marc Delorme 2022-11-01 21:56:10 +09:00
  • 45736443be Debug Tools: Metrics: added "Inputs" section, moved from Demo for consistency. ocornut 2022-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) ocornut 2022-11-30 17:46:57 +01:00
  • a5f3596e6c Backends: Allegro5: use al_draw_indexed_prim() or al_draw_prim() depending on version. (#5937) ocornut 2022-11-30 14:43:00 +01:00
  • 50aeeff96c Backends: Allegro5: Brough back al_draw_indexed_prim when available. (#5937) Espyo 2022-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) ocornut 2022-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) ocornut 2022-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) ocornut 2022-11-29 18:11:09 +01:00
  • 969af7c773 Internal: Disable debug logs macro if IMGUI_DISABLE_DEBUG_TOOLS is defined. (#5901) Teselka 2022-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) ocornut 2022-11-28 14:59:13 +01:00
  • 540909bddf Fixed version string for consistency (#5918) ocornut 2022-11-28 14:42:30 +01:00
  • 6af38b1a43 Fixed version string for consistency (#5918) ocornut 2022-11-28 14:42:30 +01:00
  • fad8afd62a Docking: amend to allow localizing docking specific user facing string. (#5895) ocornut 2022-11-24 21:29:41 +01:00
  • 595a428baa Merge branch 'master' into docking ocornut 2022-11-24 21:26:49 +01:00
  • a8df192df0 Version 1.89.1 v1.89.1 ocornut 2022-11-24 21:24:33 +01:00
  • 27c58c3946 Scrolling, Focus, Combo: fixed SetKeyboardFocusHere()/SetItemDefaultFocus()/ScrollToRectEx() during an appearing form not centering item. (#5902, #2812, #4242, #2900) ocornut 2022-11-24 17:40:51 +01:00
  • d2f9c5dfb7 Viewports: moving PlatformWindowCreated field to public structure. (#5882) ocornut 2022-11-24 16:39:45 +01:00
  • 233d7ad3f2 Backends: WebGPU: fixed validation error with default depth buffer settings. (#5869, #5914) kdchambers 2022-11-23 15:58:02 -05:00
  • 856c6314ec Drag and Drop: fixed GetDragDropPayload() returning a non-NULL value before payload is submitted. (#5910, #143) ocornut 2022-11-23 17:58:14 +01:00
  • ffe0abbfc2 Internals: added basic localization system (#5895) ocornut 2022-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) ocornut 2022-11-23 15:18:59 +01:00
  • 3a685749cb ColorEdit: fixed label overlapping when using style.ColorButtonPosition == ImGuiDir_Left. (#5912) ocornut 2022-11-23 14:40:58 +01:00
  • 16476f99fd Backends: GLFW: cancel out errors emitted by glfwGetKeyName() when a name is missing. (#5908) ocornut 2022-11-22 18:08:25 +01:00
  • 9964740a47 Viewport: Fixed collapsed windows setting ImGuiViewportFlags_NoRendererClear without making title bar color opaque. ocornut 2022-11-18 19:34:24 +01:00
  • 38cfe22b8b Merge branch 'master' into docking ocornut 2022-11-16 17:57:05 +01:00
  • 5bb2874940 Version 1.89.1 WIP ocornut 2022-11-16 17:55:27 +01:00
  • 7bee9a8f96 Inputs: fixed moving a window or drag and dropping from preventing input-owner-unaware code from accessing keys. (#5888, #4921, #456) ocornut 2022-11-16 17:53:35 +01:00
  • d60985df7f Inputs: fix moving a window or drag and dropping from capture mods. (#5888, #4921, #456) ocornut 2022-11-16 17:40:44 +01:00
  • 83cee9e091 InputText: replaced some uses of SetKeyOwner() + IsKeyPressed() with Shortcut() ocornut 2022-11-16 15:55:10 +01:00
  • 94e850fd6f Merge branch 'master' into docking ocornut 2022-11-15 15:40:54 +01:00
  • 81160fee56 Version 1.89 v1.89 ocornut 2022-11-15 14:23:44 +01:00
  • a582d92c31 Inputs: modulate wheel lock timer for small amount of wheeling. Slightly lower timer. (#3795) ocornut 2022-11-15 12:25:15 +01:00
  • 03d3343e21 Docs: Update FAQ.md explaining how to enable hidpi for Windows app. (#5880) macaba 2022-11-10 15:31:18 +00:00
  • 00b6370848 Backends: WebGPU: fixed rendering when a depth buffer is enabled. (#5869) Peter Nimmervoll 2022-11-07 21:35:05 +01:00
  • d7aca168ee Backends: SDL: Fixed drag'n drop crossing a viewport border losing mouse coordinates. (#5710, #5012) ocornut 2022-11-10 16:22:34 +01:00
  • 7380b9816e Scrolling: Exposed SetNextWindowScroll() in public API. (#1526) ocornut 2022-11-09 17:03:07 +01:00
  • cda26635cd Inputs: refacotr/extract CalcRoutingScore() out of SetShortcutRouting(), easier to follow with early returns. ocornut 2022-11-09 16:32:30 +01:00
  • a571933f8b Merge branch 'master' into docking ocornut 2022-11-09 15:59:26 +01:00
  • b8b0f9d02e Backends: OpenGL3: Reverted use of glBufferSubData(). (#4468, #4504, #3381, #2981, #4825, #4832, #5127) ocornut 2022-11-09 15:57:54 +01:00
  • f0ad810553 Inputs: tweak comments, typos. ocornut 2022-11-08 22:31:40 +01:00
  • 4d5da74c79 Merge branch 'master' into docking ocornut 2022-11-08 20:44:04 +01:00
  • 637ddfce09 Inputs, Nav: made it possible to remap CTRL+Tab (#4828, #3255, #5641) ocornut 2022-11-08 20:06:04 +01:00
  • 6c9c4879d9 Inputs: made Shortcut() routing id defaults to current FocusScope ID. (#456, #2637, #3724) ocornut 2022-10-26 14:53:45 +02:00
  • d576724bfd Inputs: made ImGuiInputFlags_RouteFocused the default for Shortcut(). (#456, #2637, #3724) ocornut 2022-11-03 19:21:25 +01:00
  • 4d6a9ef93f Inputs: added routing priorities. (#456, #2637, #3724) ocornut 2022-10-19 18:53:53 +02:00
  • 7ff2d3353c Inputs: added wip/experiment routing system: Shortcut(), RoutingFocused policy, SetShortcutRouting(). (#456, #2637, #3724) ocornut 2022-09-14 21:47:27 +02:00
  • c59ebb2d71 Inputs: added basic Shortcut() function - no routing yet. (#456) ocornut 2022-07-05 14:48:55 +02:00
  • 8c95c084cb Inputs: changed specs of SetKeyOwner() to alter OwnerCurr immediately. ocornut 2022-09-20 18:58:08 +02:00
  • 4448d975d1 Inputs: added wip/internal Input Owner system. (#456, #2637, #2620, #2891, #3370, #4828, #5108, #5242, #5641) ocornut 2022-05-17 15:36:25 +02:00
  • 5728f2e15f Fix build with IMGUI_DISABLE_DEBUG_TOOLS ocornut 2022-11-04 16:35:57 +01:00
  • 44d98bfd6d Fix build with IMGUI_DISABLE_DEBUG_TOOLS ocornut 2022-11-04 16:35:57 +01:00
  • 849c8052b7 Merge branch 'master' into docking ocornut 2022-11-04 16:26:15 +01:00
  • 529cba19b0 Debug Tools: Added DebugLocateItem()/DebugLocateItemOnHover() to visually locate items when hovering a 0xXXXXXXXX value. (#5855, #2673, #4631) ocornut 2022-10-24 22:53:43 +02:00
  • 7109f32f96 Internals: tidying up and stripping more of focus scope code. ocornut 2022-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. ocornut 2022-10-19 20:54:19 +02:00
  • 1eac0024c0 InputText: copy and select all shortcuts don't need repeat (tho it was harmless0 ocornut 2022-11-03 18:23:42 +01:00
  • 90e9465fa5 Window: Fixed position not being clamped while auto-resizing (#5843) ocornut 2022-11-02 12:36:41 +01:00
  • 6e9dfe1de1 Window: Auto-fit size takes account of work rectangle (menu bars eating from viewport). (#5843) ocornut 2022-11-02 12:36:22 +01:00
  • 86f2af2bc7 Backends: OSX: Fixed mouse coordinate before clicking on the host window. (#5842) Akira Maezawa 2022-11-02 01:52:20 +09:00
  • ced92d9c52 Inputs, Viewports: fix UpdateViewportsNewFrame() running before UpdateInputEvents(), leading to MouseViewport lagging by a frame on transitions. (#5837, #4921) cfillion 2022-10-29 20:19:47 -04:00
  • c2694ef75e Examples: Android: Using LoadIniSettingsFromMemory() / SaveIniSettingsToMemory() to save in appropriate location for Android. (#5836) Rewtio 2022-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 ocornut 2022-10-28 20:01:20 +02:00
  • a241dc7990 IO: Fixed AddFocusEvent(false) to also clear MouseDown[] state. (#4921) ocornut 2022-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. ocornut 2022-10-26 22:22:53 +02:00
  • 9db6b1a0d9 Backends: Win32: minor tidying up. (#5819) Teselka 2022-10-25 13:39:27 +03:00
  • baea25e657 Drag and Drop: extracted a RenderDragDropTargetRect() function (#1603) ocornut 2022-10-25 15:07:00 +02:00
  • 375ae5dce4 Merge branch 'master' into docking (incl glfw use of GLFW_VERSION_COMBINED) ocornut 2022-10-24 22:58:25 +02:00
  • 431fc6a7f6 Internals: using ItemAdd() consistently for internal items: windows & tables resize grips/borders, ScrollbarEx(). ocornut 2022-10-24 22:45:05 +02:00
  • 178aee4b1c Debug Tools: Debug Log: add and use ImGuiTextLineIndex. ocornut 2022-10-21 18:55:47 +02:00
  • 50c4234aca Docking: Further fixes for highlight of nested nodes. (#5702) ocornut 2022-10-24 20:25:27 +02:00
  • 5370b46c4e Docking: Made spacing between dock nodes not a dropping gap. ocornut 2022-10-24 19:37:29 +02:00
  • 578df14f27 CI: Remove left-over discord stuff. ocornut 2022-10-24 12:02:06 +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) ocornut 2022-10-21 18:03:46 +02:00
  • bc918404fe Internals: using ImToUpper() since std one does too many things. ocornut 2022-10-21 16:13:52 +02:00
  • 9a35bfea39 Internals: added temporary ImGuiItemStatusFlags_Visible (used internally - please do not use). ocornut 2022-10-19 16:52:23 +02:00
  • de1593d5c0 Backends: DX12: Fixed stale comments. (#5798) David 2022-10-20 01:25:00 -05:00
  • e3fa56ae05 BeginMenu(): Menus: Fixed a one-frame issue where SetNextWindowXXX data are not consumed by a BeginMenu(). ocornut 2022-10-19 12:07:56 +02:00
  • 5ac94ad898 Window: Fixed an issue where uncollapsed a window would show a scrollbar for a frame. ocornut 2022-10-18 16:29:35 +02:00
  • ab6e48b833 Backends: GLFW: Perform a dummy glfwGetError() read to cancel missing mouse cursors errors. (#5785) ocornut 2022-10-18 12:17:59 +02:00
  • f87e891f18 Merge branch 'master' into docking ocornut 2022-10-14 18:50:40 +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) ocornut 2022-10-14 18:43:04 +02:00
  • 81176737f8 Menus: Fixed using IsItemHovered()/IsItemClicked() on BeginMenu(). (#5775) ocornut 2022-10-14 17:39:04 +02:00
  • 3920b1c764 Removed commented out old flags from when Tables was a branch. ocornut 2022-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) ocornut 2022-10-13 15:15:42 +02:00