5213 Commits (6cc967a124f59296e52c827299812a7e37a97b4c)

Author SHA1 Message Date
omar 5078fa208b Added SetNextItemWidth() helper to avoid using PushItemWidth/PopItemWidth() for single items. ago%!(EXTRA string=6 years)
omar 0e46d65b03 Misc: Fixed PushItemWidth(-width) (for right-side alignment) laying out certain items (button, listbox, etc.) with negative sizes if the 'width' argument was smaller than the available width at the time of item submission, ago%!(EXTRA string=6 years)
omar a1cf7d636d Internals: Rework CalcItemWidth / CalcItemSize but make their similarities and their differences more obvious. (#2449) ago%!(EXTRA string=6 years)
omar f355a40367 Added commentary about ContentRegion functions. Added internal GetContentRegionMaxScreen() to facilitate internal code at the moment. ago%!(EXTRA string=6 years)
omar 9d4a893a77 Internals: Moved CalcItemSize next to CalcItemWidth, added comments to clarify their respective intent. Should have no side effect. ago%!(EXTRA string=6 years)
omar 1aeee9d40f Internals: Columns: Tweaks, renaming. Metrics: Show rectangles for child windows. ago%!(EXTRA string=6 years)
omar 1d3ebef364 Columns: Fixed boundary of clipping being off by 1 pixel within the left column. ago%!(EXTRA string=6 years)
omar 1f25cdd6b4 Clarified asserts comments + todo entries. (#2500) ago%!(EXTRA string=6 years)
omar 7baf45cffa Metrics: Added "Show windows rectangles" tool to visualize the different rectangles. ago%!(EXTRA string=6 years)
omar 742b5f4c68 Merged a bunch of small changes from Docking branch to reduce the difference between branches. ago%!(EXTRA string=6 years)
omar 311469e9d6 Internals: Columns: Some renaming, extracted code into GetColumnsID(). ago%!(EXTRA string=6 years)
omar f70eacee8e Docking: Internal: Added helper for automation to process docking at the mouse level. ago%!(EXTRA string=6 years)
omar 433a7556c7 Docking: Fixed another issue where the resulting node of a split would sometimes recall the pos/size of previous host window. Spent a whole day adding framework for testing more of docking so hopefully we'll heading toward the magical world of less regressions. (#2109) ago%!(EXTRA string=6 years)
omar e805ca29d8 Internals: Moved resize grips and borders to nav layer 1 so that testing system doesn't attempt to scroll to get them inside the InnerRect. ago%!(EXTRA string=6 years)
omar 800fb26606 Docking: Renamed target_node > node in some functions to facilitate debugger watch use across functions. ago%!(EXTRA string=6 years)
omar 224f087a5f Docking: Rename typo Autority -> Authority + Rename DockContextNewFrameUpdateDocking -> DockContextUpdateDocking. ago%!(EXTRA string=6 years)
omar fb2626c21b Tests: Added hook/tweaks for imgui-test engine. + Fixed warnings. ago%!(EXTRA string=6 years)
omar 092426bed2 Docking: Hold Shift to force disable docking. (#2109) ago%!(EXTRA string=6 years)
omar c6f1b7b92a Tests: Added hook/tweaks for imgui-test engine. + Fixed warnings. ago%!(EXTRA string=6 years)
omar 07a70dc972 Internals: Merge minor things from range_select branch. Added ImGuiButtonFlags_NoHoveredOnNav. Added IsItemToggledSelected() - unused here. Renaming. ago%!(EXTRA string=6 years)
omar f3110a57cd Docking: Fixed an issue where newly created dock node override hosted window pos/size (#2109, #2386) ago%!(EXTRA string=6 years)
omar 302af7b2c9 FAQ tweaks. Add missing entries in imgui.cpp (which until now where only in the README). ago%!(EXTRA string=6 years)
omar c8fd4afd75 Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert to using the ImGui::MemAlloc()/MemFree() calls directly. ago%!(EXTRA string=6 years)
omar bd351e9ac5 Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert to using the ImGui::MemAlloc()/MemFree() calls directly. ago%!(EXTRA string=6 years)
omar d61caf5714 Vulkan, Viewports: ImGui_ImplVulkan_RenderDrawData and renderer back-end automatically manage ImGui_ImplVulkanH_WindowRenderBuffers for each viewports so user doesn't have to do it. (#2461, #2348, #2378, #2097) ago%!(EXTRA string=6 years)
omar 9ba64f9fe3 Viewport: Fixed PushClipRectFullScreen() missing out on negative coordinates. Among other things, the outer highlight during CTRL+Tab wouldn't appear in negative coordinates monitors. (~#2176, #1542) ago%!(EXTRA string=6 years)
omar fc52364652 Tabs to Spaces, comments. ago%!(EXTRA string=6 years)
omar 4a57507f75 InputText: Work-around for buggy standard libraries where isprint('\t') returns true. (#2467, #1336) ago%!(EXTRA string=6 years)
omar 9bf6509c6e Docking: Fixed focus restore lagging by a frame when a tab stops being submitted. (#2109) Building on a little build of technical debt there, should transition toward a more general docking-agnostic system (#2304) ago%!(EXTRA string=6 years)
omar 5af385ea78 Viewport: Renamed member + added note about a Docking issue with restoring focus. ago%!(EXTRA string=6 years)
omar 47219dd5c6 Docking: Remove code in BeginDocked() to set HiddenFramesCannotSkipItems based on upcoming tab bar selection, solely based on focus (might break something subtle?). Follow-up to c355ed1267. (#2453, #2109) ago%!(EXTRA string=6 years)
omar b6ae8a0dca Docking: Disable SkipItems when directly/programmatically focused (possible generalization of code currently in BeginDocked which relies on tab bar interaction, will remove that code in next commit). (#2453, #2109) ago%!(EXTRA string=6 years)
omar 9a0e71a6ec Internals: Renamed the ImGuiWindow HiddenFrameXXX fields to decorrelate them from resizing behavior, as those values are set by other logic. ago%!(EXTRA string=6 years)
omar 5a665e423c Docking: Added ImGuiDockNodeFlags_NoTabBar (not exposed publicly). (#2423, #2109) ago%!(EXTRA string=6 years)
omar fc95da8aa3 Docking: Internals: Moved CentralNode and HiddenTabBar state into LocalFlags for consistency. (#2423, #2109) ago%!(EXTRA string=6 years)
omar fd5859ed04 Docking: Separating SharedFlags vs LocalFlags in dock node so settings can be applied to individual nodes. Made _NoResize logic on single node applies as expected. (#2423, #2109) ago%!(EXTRA string=6 years)
omar 75e3793f4d Docking: Fix DockBuilderAddNode() not storing flags when creating floating node. ago%!(EXTRA string=6 years)
omar 8d4b5fef1d Renamed ImGuiDockNodeFlags_Dockspace to ImGuiDockNodeFlags_DockSpace for consistency. DockBuilderCopyDockspace() to DockBuilderCopyDockSpace(). Made casing consistent elsewhere. (#2109) ago%!(EXTRA string=6 years)
omar 04a9ce3a18 Docking: Renamed ImGuiDockNodeFlags_PassthruDockspace to ImGuiDockNodeFlags_PassthruCentralNode. + Comments, shallow tweaks. (#2109) ago%!(EXTRA string=6 years)
omar 87883abd86 Docking: Tweak and silencing PVS studio static analyzer (back to zero warnings among our selected ones). ago%!(EXTRA string=6 years)
Tom Watson f20725eada Docking: Fixed an issue where windows docked into a node that's part of their dockspace wouldn't recover their order correctly after init. (#2109) ago%!(EXTRA string=6 years)
omar 26646f2450 Docking: Wrapping tab bar creation/destroy to make it easier to debug them. ago%!(EXTRA string=6 years)
omar f208fd7ebb Docking: Fixed crash with ImGuiDockNodeFlags_AutoHideTabBar flag. (#2423, #2109) ago%!(EXTRA string=6 years)
omar cf1b02e54e Rearrange code in UpdateMouseWheel(). (#2424, #1463) + Fix old io.FontAllowUserScaling feature (probably should be made obsolete, but until then best fixed) ago%!(EXTRA string=6 years)
Luca Rood 1963cc59be Implement horizontal scrolling with Shift+Scroll ago%!(EXTRA string=6 years)
omar d9f6ba3035 IsWindowHovered() made change which should have no effect in master but fix result of IsWindowHovered(ImGuiHoveredFlags_ChildWindows) over multiple viewport in docking branch. (#2432) ago%!(EXTRA string=6 years)
omar 7a5196601e Docking: BeginDocked() doesn't need to rely on tab bar data (will allow removing tab bar). ago%!(EXTRA string=6 years)
omar c7619d4a6a Docking: Preserve existing docked nodes when setting the ImGuiDockNodeFlags_NoDockingInCentralNode flag. (#2423, #2109) ago%!(EXTRA string=6 years)
omar 221bf93a55 Comments, todo list, remove trailing spaces. ago%!(EXTRA string=6 years)
omar 7ba774a440 Viewports: Fixed being unable to refocus windows when ConfigViewportsNoTaskBarIcon + ConfigViewportsNoDecoration are enabled. (#2420, #1542) [@PathogenDavid] + comments. ago%!(EXTRA string=6 years)