Commit Graph

  • 6b1e094cfb Fixed _ChildWindows from leaking docking hierarchy. Added ImGuiFocusedFlags_DockHierarchy and ImGuiHoveredFlags_DockHierarchy. ocornut 2021-09-08 16:49:35 +02:00
  • cfb837203c Internals: refactored IsWindowHovered()/IsWindowFocused() to make their logic more similar + change underlying value of ImGuiHoveredFlags_AllowWhenBlockedByPopup + comment out docking only flags. ocornut 2021-09-08 15:05:27 +02:00
  • 321b84f01f Internals: refactored IsWindowHovered()/IsWindowFocused() to make their logic more similar + change underlying value of ImGuiHoveredFlags_AllowWhenBlockedByPopup + comment out docking only flags. ocornut 2021-09-08 15:05:27 +02:00
  • 40caab4748 Fixed bad merge of Changelog in docking branch ocornut 2021-09-07 18:21:47 +02:00
  • fa9fc05ac6 Merge branch 'master' into docking ocornut 2021-09-07 18:20:12 +02:00
  • d9b427cce0 Nav: clarified/renamed NavInputId as NavAcivateInputId, added flags shared by both. ocornut 2021-09-06 19:15:20 +02:00
  • 755bf985d2 Backends: OpenGL3: Made our custom GL loader a bit more tolerant of use of another loader in same compilation unit. (#4445, #4514) ocornut 2021-09-07 14:48:26 +02:00
  • 607ad8c949 Drag and Drop: Fixed using BeginDragDropSource() within a Begin()/BeginChild() that returned false. (#4515) + BeginDragDropTarget() ocornut 2021-09-06 20:42:40 +02:00
  • bd6c9e99fc InputText: Allow cancelling/validating input with gamepad nav events. ocornut 2021-09-06 18:45:50 +02:00
  • 0a154b30ad Nav, ButtonBehavior: reworked old code which ended up 1) calling SetActiveId repeately and 2) misleadingly set g.NavActivateId (amend af38749e) ocornut 2021-09-03 17:27:17 +02:00
  • ade4c15eea Nav: Tidying up, renaming + update AnyRequest flag in NavMoveRequestSubmit(). ocornut 2021-09-02 18:41:00 +02:00
  • 528104a89b Menus: adjust closing logic to accomodate for varying font size and dpi + remove seemingly redundant use of g.NavActivateId where pressed was enough. ocornut 2021-09-03 16:34:38 +02:00
  • 5ee40c8d34 Nav: always disable highlight if nav is disabled, fix for IMGUI_DEBUG_NAV_SCORING, minor renaming. ocornut 2021-09-01 17:36:17 +02:00
  • dff15acdb5 Nav: Fixed toggling menu layer with Alt exiting menu layer with Esc not moving mouse when NavEnableSetMousePos config flag is set. ocornut 2021-09-01 15:51:21 +02:00
  • 3d9d3b49ae Internals: folded ImGuiItemAddFlags into ImGuiItemFlags. ImGuiItemAddFlags_Focusable > ImGuiItemFlags_Inputable. One step in the big nav/tab/focus rework. ocornut 2021-09-01 14:41:24 +02:00
  • 73a5e82e04 Nav: removed parameters from NavScoreItem(), NavProcessItem(), NavApplyItemToResult(): made little sense / misleading because pulling from other current state anyway. ocornut 2021-09-01 12:39:12 +02:00
  • a735a8c084 Nav: storing NavRect in LastItemData. Fix race condition where framed items (Rect != NavRect) calling SetFocusID() would store the wrong NavRectRel until next frame ocornut 2021-09-01 12:07:17 +02:00
  • ee351d3548 Nav: move code into NavMoveRequestSubmit(). NavApplyItemToResult() takes absolute rect., comments ocornut 2021-08-31 18:50:56 +02:00
  • 7b913db1ce Nav: split NavMoveRequest into NavMoveSubmitted + NavMoveScoringItems to allow operation to defer a move request and provide result immediately + fix regular scoring needlesly running during init + some renaming. ocornut 2021-08-31 17:44:58 +02:00
  • 53589092b2 Docking: warning fix for when IM_ASSERT() is empty ocornut 2021-08-30 20:53:22 +02:00
  • eb6c16d3dd PlotHistogram: Fixed zero-line position when manually specifying min<0 and max>0. (#4349) Filippo Crocchini 2021-07-22 00:29:42 +02:00
  • 03ce17f0a5 Backends: Allegro: Fixed clipping rectangles (#4498) broken by 2b0bd40b (#4464) Jackamilio 2021-08-30 21:36:01 +02:00
  • dedb381c51 Merge branch 'master' into docking ocornut 2021-08-30 20:01:16 +02:00
  • 7c4ffe490d Menus: added internal's BeginMenuEx() matching MenuItemEx() with icon parameter. (amend f8fae022) ocornut 2021-08-30 19:54:42 +02:00
  • 4aea1c5adb IO: added io.WantCaptureMouseAllowPopupClose (#4480) + comments ocornut 2021-08-30 14:55:26 +02:00
  • 66102880a3 Updated links to Discussions ocornut 2021-08-30 17:06:51 +02:00
  • 333807b483 Windows: fixed background order of overlapping childs submitted sequentially. (#4493) ocornut 2021-08-30 13:08:41 +02:00
  • 11103f8253 Examples: SDL+OpenGL3: fixed build on ES2 target. (#4492) ocornut 2021-08-27 21:32:36 +02:00
  • 0eb45a0577 Docking: fix 58f5092 (#4310) ocornut 2021-08-27 21:29:27 +02:00
  • bb6a60b1ff Nav: extracted sections of NavUpdate() into a NavUpdateCreateMoveRequest() function. Only clearing results when a request is activated. ocornut 2021-08-27 20:57:21 +02:00
  • ccfb20095e Nav: small refactor of forwarding, clarified that MoveDir only set when RequestActive, removed one indent level in NavUpdatePageUpPageDown(). ocornut 2021-08-27 20:48:01 +02:00
  • 4351febe9f Nav: moved enums/struct declarations in imgui_internal.h ocornut 2021-08-27 18:01:01 +02:00
  • 20a1edef89 Nav: made EndMenuBar() use NavMoveRequestForward() for consistency. Moved forward clearing to NavMoveRequestApplyResult(). Improved/fixed comments. ocornut 2021-08-27 16:21:28 +02:00
  • b08ed61907 CI: Build with empty IM_ASSERT() macro. Rokas Kupstys 2021-08-27 16:06:59 +03:00
  • 84890a3074 Nav: simplify wrap requests code (may soon be useable for tabbing) ocornut 2021-08-27 12:31:11 +02:00
  • 4c31c98d22 Nav: extracted code out of NavUpdate() into NavUpdateCancelRequest() ocornut 2021-08-27 12:26:42 +02:00
  • 80ed4eba87 Backends: Vulkan: non-dispatchable handles should compare to VK_NULL_HANDLE, not NULL (#4475) Cort 2021-08-24 12:53:54 -07:00
  • 58f5092c53 Docking: fixed settings load issue when mouse wheeling. (#4310) ocornut 2021-08-24 20:33:00 +02:00
  • 780c1ee265 TextUnformatted: Accept null ranges including (NULL,NULL) without asserting. (#3615) ocornut 2021-08-24 19:30:02 +02:00
  • 2b0bd40b99 Backends: Metal: Fixed a crash when clipping rect larger than framebuffer is submitted. (#4464) Rokas Kupstys 2021-08-24 18:03:52 +03:00
  • f8bad7e1e3 Backends: OpenGL3: Add TargetConditionals.h (#4473) + standardize include Siarhei Fiedartsou 2021-08-24 16:26:55 +03:00
  • 4a7c21d330 Fonts: Fixed ImFontAtlas::ClearInputData() marking atlas as not built. (#4455, #3487) ocornut 2021-08-24 15:28:39 +02:00
  • e652527313 Backends: WebGPU: Update impl_wgpu for an emscripten change Corentin Wallez 2021-08-24 13:48:04 +01:00
  • 51d841dcf3 Fix warnings and remove IM_RETURN (#4470) ocornut 2021-08-24 14:30:46 +02:00
  • 4c22b3e5d9 Backends: OpenGL3: Fix gl3wProcs colliding with gl3w. (#4445) Rokas Kupstys 2021-08-24 14:19:33 +03:00
  • 0608887fb5 InputTextMultiline: Fixed label size not being included into window contents rect unless the whole widget is clipped. ocornut 2021-08-23 17:07:46 +02:00
  • 68f428b449 imgui_freetype: Fixed crash when FT_Render_Glyph() returns NULL (which apparently happens with Freetype 2.11). (#4394, #4145 ?) ocornut 2021-08-23 16:42:58 +02:00
  • 6afe9bbb45 Projects: added GLFW Vulkan to default solution. ocornut 2021-08-23 16:35:44 +02:00
  • e23bee353c Removed GetWindowContentRegionWidth() function ocornut 2021-08-23 16:15:11 +02:00
  • 0649f750b4 Version 1.85 WIP ocornut 2021-08-23 15:31:06 +02:00
  • e3e1fbcf02 Backends: OpenGL3: OpenGL: Fixed ES 3.0 shader ("#version 300 es") to use normal precision floats. (#4463) v1.84.2 Nicolas Noble 2021-08-23 15:03:22 +02:00
  • d79ca9b0b6 Fixed nested BeginDisabled()/EndDisabled() calls. (#211, #4452, #4453, #4462) [Legulysse] ocornut 2021-08-23 14:57:23 +02:00
  • e6ffc04291 Moved ImDrawIdx declaration higher up in imgui.h (to ease work for dear_bindings) ocornut 2021-08-23 11:40:08 +02:00
  • 6bd447c885 Backends: GLFW: Fixed unused variable warning for empty assert macro. (#4459) ocornut 2021-08-22 18:46:49 +02:00
  • 47fb332fb2 Fix BeginDisabled(false), again, (#211, #4452, #4453) Version 1.84.1 ocornut 2021-08-20 23:59:46 +02:00
  • 32d4f6c5d9 Fix BeginDisabled(false), again, (#211, #4452, #4453) Version 1.84.1 ocornut 2021-08-20 23:59:46 +02:00
  • b0361375ee Fix BeginDisabled(false), again, (#211, #4452, #4453) Version 1.84b v1.84b v1.84.1 ocornut 2021-08-20 23:50:55 +02:00
  • 2e01952b35 Fix BeginDisabled(false), (#211, #4452) ocornut 2021-08-20 20:30:51 +02:00
  • f969e68c10 Fix BeginDisabled(false), (#211, #4452) ocornut 2021-08-20 20:30:51 +02:00
  • 5a7d18a441 Merge branch 'master' into docking ocornut 2021-08-20 18:14:58 +02:00
  • d2ffbd9b86 Version 1.84 v1.84 ocornut 2021-08-20 17:30:49 +02:00
  • fc062e6028 Backends: OpenGL3: Update loader to include APIs used by test framework. Rokas Kupstys 2021-08-20 17:24:56 +03:00
  • df2319a854 Small optimizations to BeginDisabled() to allow frequent calls (#211) ocornut 2021-08-20 16:56:13 +02:00
  • c543d93af1 Expose BeginDisabled()/EndDisabled() in public API. Add to demo. (#211) ocornut 2021-07-19 19:21:18 +02:00
  • 9c3359ef39 IO: modify io.AddFocusEvent() to tolerate in/out for multi-viewports. Amend 2f40be6. (#3532) ocornut 2021-08-19 17:35:27 +02:00
  • 0b06c4b2b0 Merge branch 'master' into docking (will need further for io.AddFocusEvent) ocornut 2021-08-19 17:25:12 +02:00
  • cb00972b87 ImDrawList: Fix AddCircle{Filled} with 12 segment case (#4419, #4421) thedmd 2021-08-11 13:21:27 +02:00
  • e3988a84db Backends: OpenGL3: Embed our own minimal GL loader (amends). (#4445) ocornut 2021-08-19 15:27:22 +02:00
  • 459de65477 Backends: OpenGL3: Embed our own minimal GL loader based on gl3w and use it in SDL/GLFW examples. (#4445) Rokas Kupstys 2021-08-19 12:42:15 +03:00
  • 7bbf8f2ab0 Drag and Drop: fix using AcceptDragDropPayload() with ImGuiDragDropFlags_AcceptNoPreviewTooltip. ocornut 2021-08-18 12:53:33 +02:00
  • f24abbc47d Fix various warnings (#4442) ocornut 2021-08-18 12:00:15 +02:00
  • 161b74e871 Fix tabbing in/out of an InputTextMultiline(), broken by 6b8a059. ocornut 2021-08-17 20:46:39 +02:00
  • cd39460925 IO: set io.KeyModsPrev in EndFrame() to tolerate backend writing to io.KeyMods without breaking. (#4439) ocornut 2021-08-17 20:33:27 +02:00
  • 2f40be638f IO, Backends: add io.AddFocusEvent(). Clear pressed keys after loosing input focus (#3532) thedmd 2021-08-02 20:17:26 +02:00
  • 86afe966d3 Metrics: Fixed a crash when inspecting the individual draw command of a foreground drawlist. Rokas Kupstys 2021-08-17 15:28:43 +03:00
  • 7e9e1ff1c2 InputText: Fix named filtering flags disabling newline or tabs in multiline inputs (#4409, #4410) Oliver 'kfsone' Smith 2021-08-07 19:25:26 -07:00
  • b380d3abe3 Backends: OpenGL3: Clarify use of GL_POLYGON_MODE. ocornut 2021-08-17 13:48:34 +02:00
  • 5f2df2d2cb Fixed grammar mistake in FAQ (#4431) JJCUBER 2021-08-17 07:47:17 -04:00
  • ff428f1d2f Nav: Fix not clearing NavWindowingToggleLayer properly (old code left it to true, relied on Alt release only). Removed unnecessary KeyMenu_ from NavInput. (#4439, #787) ocornut 2021-08-17 12:46:26 +02:00
  • 8fa502ca42 Nav: Alt doesn't toggle menu layer if other modifiers are held. (#4439) ocornut 2021-08-17 12:23:54 +02:00
  • c7529c8ea8 Reword file list as *.cpp *.h (#4413) omar 2021-08-10 14:34:34 +02:00
  • f99fe72c42 Backends: Win32: Fixed keyboard modifiers being reported when host window doesn't have focus. (#2622) ocornut 2021-08-02 17:22:33 +02:00
  • 80b5fb51ed Backends: Win32, SDL, GLFW: only honor io.WantSetMousePos when focused + fix GLFW uninstalling handler + tweaks to reduce branch drift with docking. (#787, #2445, #2696, #3751, #4377) ocornut 2021-08-02 15:48:20 +02:00
  • 2ad912bb85 Backends: Win32, SDL, GLFW: only honor io.WantSetMousePos when focused + fix GLFW uninstalling handler + tweaks to reduce branch drift with docking. (#787, #2445, #2696, #3751, #4377) ocornut 2021-08-02 15:48:20 +02:00
  • f9b5168fb3 Merge branch 'master' into docking ocornut 2021-08-02 15:04:45 +02:00
  • db686ad522 Backends: Win32: Mouse position is correctly reported when the host platform window is hovered but not focused. (#2445, #2696, #3751, #4377) ocornut 2021-07-29 19:38:33 +02:00
  • 044fd0cd2d Backends: GLFW: Mouse position is correctly reported when the host platform window is hovered but not focused. (#3751, #4377, #2445) ocornut 2021-07-29 18:59:45 +02:00
  • 1cdd110eb4 Backends: SDL2: Mouse position is correctly reported when the host platform window is hovered but not focused. (#2445, #3751, #4377) ocornut 2021-07-29 18:21:08 +02:00
  • c720075c67 Update FAQ to clarify conflict with window (#4158, #4008, #2562) omar 2021-07-28 16:46:59 +02:00
  • 3d4d1b8553 Allow imgui_internal.h to be included before imgui.h ocornut 2021-07-26 21:01:32 +02:00
  • e362c5af48 Internals: ColorEdit: renamed some internal masks to match our common coding style. ocornut 2021-07-26 20:44:59 +02:00
  • 923bd2fd21 Examples: DirectX12: Fixed Alt+Enter fullscreen in DirectX12 example. (#4346, #4348) David Maas 2021-07-21 16:01:52 -05:00
  • b846969fe1 Removed unnecessary line in Begin() + commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 + readded commented obsoleted function. ocornut 2021-07-26 11:48:47 +02:00
  • 3e4c89051d Popups: Fix OpenPopup() being called after BeginPopup() resulting in a failure to open a popup when focus is NULL. (#4308) Rokas Kupstys 2021-07-15 17:23:44 +03:00
  • 9c77734447 Correct version 1.83 release date (#4355) sitic 2021-07-23 17:07:11 -07:00
  • 7bfc379a23 Merge branch 'master' into docking ocornut 2021-07-19 21:58:06 +02:00
  • c881667c00 Fix - amend 1ad1530 (range-select branch need the NextItemData in NavProcessItem) ocornut 2021-07-19 21:45:44 +02:00
  • 90bf996e1a Internals: widgets always read back from g.LastItemData.InFlags (so we can now modify per-item disable state more easily). (#211) ocornut 2021-07-19 21:17:34 +02:00
  • 6b8a059fc9 Internals: moved LastItem data to a shared structure (instead of one per window) ocornut 2021-07-19 21:08:22 +02:00
  • 1ad153056a Internals: ItemAdd: set LastItemXXX fields before navigation calls + comments about io.IniFilename (#4294) ocornut 2021-07-19 19:10:14 +02:00