5596 Commits (36ffdd69d304659388ad3d3be487a467de65eaf6)

Author SHA1 Message Date
omar 067605052d Fix IsItemHovered() returning true for non-title bar hidden items that are clipped due to window collapsing logic. Fix 27fd1b913b. (#823) ago%!(EXTRA string=8 years)
omar 6f7b1bf2e1 Internals: Renamed ImGuiWindow::Accessed to WriteAccessed. ago%!(EXTRA string=8 years)
omar 58345b11e1 Style: Removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. (#707) ago%!(EXTRA string=8 years)
omar 29e0078b66 Internals: Window minor internal renaming + added WindowRounding latch. ago%!(EXTRA string=8 years)
omar bd4bc929ce Style: renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. ago%!(EXTRA string=8 years)
omar da2be7bbdc Style: ScaleAllSizes() helper rounds down every values so they are aligned on integers. ago%!(EXTRA string=8 years)
omar 834fa52c8e Columns: Added ImGuiColumnsFlags_GrowParentContentsSize to internal API to restore old content sizes behavior. (#1444, #125) ago%!(EXTRA string=8 years)
omar 29d962069d Internals: Updating condition/allow flags with a function. ago%!(EXTRA string=8 years)
omar 4ad414c8d4 Internals: Window: Store whether the windows has a close button (we need that info for window/tabs dropping preview calculation) ago%!(EXTRA string=8 years)
omar 7c4be0a000 Internals: Added BringWindowToFront(), BringWindowToBack() helpers. ago%!(EXTRA string=8 years)
omar e9a7e73bba Windows with MenuBar have a larger minimum height to avoid artefacts (I fixed most of the vertical/horizontal artefacts, but the ones in rounded corners were too hard to fix). ago%!(EXTRA string=8 years)
omar f36037b384 Menu: Fixed minor rendering issues on the right size with rounded window when resizing a window small. ago%!(EXTRA string=8 years)
omar 9b82d9fbef Scrollbar: Minor graphical fix for when scrollbar don't have enough visible space to display the full grab. ago%!(EXTRA string=8 years)
omar f5bdf443c9 Minor comments, tweaks ago%!(EXTRA string=8 years)
omar 5ea6e80da1 Make it possible to use SetNextWindowPos() on a child window. Useful internally. ago%!(EXTRA string=8 years)
omar 27fd1b913b Made it guaranteed by API that after calling Begin() the last Item represent the title bar. (#823) ago%!(EXTRA string=8 years)
omar 64e79035d5 Scrollbar flicker fix for menus/popups (fixes 4d00dd8326 and 2df8fa95df). Hopefully right this time. ago%!(EXTRA string=8 years)
omar 6001d9c7a4 Columns: Clipping columns borders on Y axis on CPU because some GPU drivers appears to be unhappy with triangle spanning large regions (not sure why tbh). (#125) ago%!(EXTRA string=8 years)
omar ffad688fc8 Drag and Drop: Added payload->IsPreview() to user can render their custom preview while handling overlapping drop targets. (#143) ago%!(EXTRA string=8 years)
omar 852ece3a0e Fixed build (3e06450d27 not meant for master branch, but ok) ago%!(EXTRA string=8 years)
omar 3e06450d27 Internals: Added ArrowButton() helper. ago%!(EXTRA string=8 years)
omar 7908cce25f Drag and Drop: Added internal BeginDragDropTargetCustom() convenient to avoid submitting dummy ItemAdd. (#143) ago%!(EXTRA string=8 years)
omar 4d00dd8326 Fixed scrollbar flickering on/off when uncollapsing a window (fixes 2df8fa95df) ago%!(EXTRA string=8 years)
omar 30bf40195b io.OptNoCursorBlink -> io.OptCursorBlink (#1427) ago%!(EXTRA string=8 years)
omar 669498ff26 Added io.OptNoCursorBlink option to disable cursor blinking. (#1427). Renamed io.OSXBehaviors to io.OptMacOSXBehaviors. Should affect users as the compile-time default is usually enough. (#473, #650) ago%!(EXTRA string=8 years)
Branimir Karadžić 9daac64ff8 Clean g.WindowsById storage on shutdown. ago%!(EXTRA string=8 years)
omar ba09de3a39 Begin: Fixed appending into a child window with a second Begin() from a different window stack querying the wrong window for the window->Collapsed test. ago%!(EXTRA string=8 years)
omar 8451855a30 ButtonBehavior: Fixed ImGuiButtonFlags_AllowOverlapMode to avoid temporarily activating widgets on click before they have been correctly double-hovered. (#319, #600) ago%!(EXTRA string=8 years)
omar 4b94738c7e Drag and Drop: Drop target rectangle goes out of clipping range (#143) ago%!(EXTRA string=8 years)
omar b1653cd361 Drag and Drop: Allow NULL payload (since type only can be useful). (#143) ago%!(EXTRA string=8 years)
omar 2df8fa95df Fixed vertical scrollbar flickering/appearing, typically when manually resizing and using a pattern of filling available height (e.g. full sized BeginChild). THIS IS A GREAT FIX, this glitch was nasty and annoying (and yet somehow nobody reported it?). Hopefully haven't broken anything else... ago%!(EXTRA string=8 years)
omar a4cc3d4637 Minor tweaks/comments. Note that the reordering the one subtraction caused subtle havoc before the patch in 9ac8820ee2. ago%!(EXTRA string=8 years)
omar 9ac8820ee2 Fixed non-pixel aligned bounding box of window resize grip, / which triumphally led to any re-arrangement of operations inside the resize grip code outputting non-exact size_target values which led to unstable window position because clamping code uses size in a subtraction, etc etc. Lovely how a whole system can be made to act weird with a single bad input. ago%!(EXTRA string=8 years)
omar b6504b8eee Drag and drop: Handle overlapping drag target priorities given their surface, which appears to make most sense for drag and drop operations. ago%!(EXTRA string=8 years)
omar 2ab27be3de Child window with MenuBar use regular WindowPadding.y so layout look consistent in child or in a regular window. ago%!(EXTRA string=8 years)
omar 41862b8c0e ButtonBehavior: Fixed ImGuiButtonFlags_NoHoldingActiveID from incorrectly setting ActiveIdClickOffset, which probably have no known effect, but it is more correct this way. (#1418) ago%!(EXTRA string=8 years)
omar 1870738880 LowerBound() minor tweaks ago%!(EXTRA string=8 years)
omar 571b08f315 Internal: FindWindowByName() faster and doesn't touch every windows ago%!(EXTRA string=8 years)
omar 2c7ba21417 Fixed auto-resize allocating too much space for scrollbar when SizeContents is bigger than maximum window size (fixes c0547d358d) (#1417) ago%!(EXTRA string=8 years)
omar f0b4097c54 Begin: Simplified code and fixed a bug where appending into a window a second time (from a remote window) would incorrectly overwrite RootWindow with the current window in the stack. Our docking code uses this pattern. ago%!(EXTRA string=8 years)
omar de1e7dc088 Drag and Drop: Moved internal fields out of public sight. (#143) ago%!(EXTRA string=8 years)
omar 8b725c94cb Drag and Drop: Rework internal to allow overlapping targets (#143) ago%!(EXTRA string=8 years)
omar 16a5da9521 RenderTriangle() minor tweak to align Left/Right and Up/Down arrow extents visually ago%!(EXTRA string=8 years)
omar 553bdeedf7 Drag and Drop: Made it legal to not call SetDragDropPayload() between BeginDragDropSource() and EndDragDropSource(). (#143) ago%!(EXTRA string=8 years)
omar 982ce50b37 IsWindowHovered() returns true when moving window (#1382, #1404) ago%!(EXTRA string=8 years)
omar ff4d4ca651 IsWindowHovered(): Added ImGuiHoveredFlags_FlattenChilds flag. Made IsRootWindowOrAnyChildHovered() obsolete in favor of IsWindowHovered( ImGuiHoveredFlags_FlattenChilds) (#1382, #1404) ago%!(EXTRA string=8 years)
omar 803ac3a5c6 IsWindowHovered() Fix behavior when an item is active to use the same logic as IsItemHovered() (#1382, #1404) ago%!(EXTRA string=8 years)
omar 66f42324ad Drag and Drop: Added ImGuiDragDropFlags_SourceNoHoldToOpenOthers flag. ago%!(EXTRA string=8 years)
omar 6ab20ff9bf Minor tweaks to the user guide. ago%!(EXTRA string=8 years)
omar 7f06d385a1 Added assertions and comments for incorrect use/understanding of IsWindowFocused() etc. functions ago%!(EXTRA string=8 years)