Commit Graph

6053 Commits (416e9bb38d14b52f624ee6f878da670a612bbaa8)
 

Author SHA1 Message Date
omar 9b82d9fbef Scrollbar: Minor graphical fix for when scrollbar don't have enough visible space to display the full grab.
omar f5bdf443c9 Minor comments, tweaks
omar 5ea6e80da1 Make it possible to use SetNextWindowPos() on a child window. Useful internally.
omar 5027311e7f Drag and drop: Standardizing payload types as defines. ()
omar 44b761b308 Merge branch 'master' into drag_and_drop
omar 27fd1b913b Made it guaranteed by API that after calling Begin() the last Item represent the title bar. ()
omar ae060b1d67 Merge branch 'master' into drag_and_drop
omar 64031852de Merge branch 'master' into navigation
omar 64e79035d5 Scrollbar flicker fix for menus/popups (fixes 4d00dd8326 and 2df8fa95df). Hopefully right this time.
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). ()
Demo: Columns: Adding a billion of extra lines and using clipper.
omar 0858c3d7cb Demo: Custom Rendering: Fixed clipping rectangle extruding out of parent window.
omar ffad688fc8 Drag and Drop: Added payload->IsPreview() to user can render their custom preview while handling overlapping drop targets. ()
omar 852ece3a0e Fixed build (3e06450d27 not meant for master branch, but ok)
omar 2275cb8b83 Merge branch 'master' into navigation
# Conflicts:
#	imgui.cpp
omar 3e06450d27 Internals: Added ArrowButton() helper.
omar 7908cce25f Drag and Drop: Added internal BeginDragDropTargetCustom() convenient to avoid submitting dummy ItemAdd. ()
omar 4d00dd8326 Fixed scrollbar flickering on/off when uncollapsing a window (fixes 2df8fa95df)
omar 30bf40195b io.OptNoCursorBlink -> io.OptCursorBlink ()
omar 669498ff26 Added io.OptNoCursorBlink option to disable cursor blinking. (). Renamed io.OSXBehaviors to io.OptMacOSXBehaviors. Should affect users as the compile-time default is usually enough. (, )
omar a1c736fa6a
Update README.md
omar 631bd8a9f8
Added bindings
omar 161670418b Update documentation for extra fonts
Branimir Karadžić 9daac64ff8 Clean g.WindowsById storage on shutdown.
omar 06075f20ba Merge branch 'master' into navigation
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.
omar 8451855a30 ButtonBehavior: Fixed ImGuiButtonFlags_AllowOverlapMode to avoid temporarily activating widgets on click before they have been correctly double-hovered. (, )
omar 4b94738c7e Drag and Drop: Drop target rectangle goes out of clipping range ()
omar b1653cd361 Drag and Drop: Allow NULL payload (since type only can be useful). ()
omar a297cbafdb Merge branch 'master' into navigation
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...
omar a4cc3d4637 Minor tweaks/comments. Note that the reordering the one subtraction caused subtle havoc before the patch in 9ac8820ee2.
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.
omar b6504b8eee Drag and drop: Handle overlapping drag target priorities given their surface, which appears to make most sense for drag and drop operations.
omar 2ab27be3de Child window with MenuBar use regular WindowPadding.y so layout look consistent in child or in a regular window.
omar 41862b8c0e ButtonBehavior: Fixed ImGuiButtonFlags_NoHoldingActiveID from incorrectly setting ActiveIdClickOffset, which probably have no known effect, but it is more correct this way. ()
omar aae52522c3 Internals: Remove requirement to define IMGUI_DEFINE_PLACEMENT_NEW ()
omar 1870738880 LowerBound() minor tweaks
omar 571b08f315 Internal: FindWindowByName() faster and doesn't touch every windows
omar 8e6adc78af Examples: Constrained Resize: Added more test cases (for )
omar 2c7ba21417 Fixed auto-resize allocating too much space for scrollbar when SizeContents is bigger than maximum window size (fixes c0547d358d) ()
omar 0d4c320f88 Merge branch 'master' into navigation
# Conflicts:
#	imgui.cpp
#	imgui.h
#	imgui_draw.cpp
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.
omar de1e7dc088 Drag and Drop: Moved internal fields out of public sight. ()
omar 8b725c94cb Drag and Drop: Rework internal to allow overlapping targets ()
omar 16a5da9521 RenderTriangle() minor tweak to align Left/Right and Up/Down arrow extents visually
omar 553bdeedf7 Drag and Drop: Made it legal to not call SetDragDropPayload() between BeginDragDropSource() and EndDragDropSource(). ()
omar 3461a2f296 Merge branch 'master' into drag_and_drop
omar 982ce50b37 IsWindowHovered() returns true when moving window (, )
omar ff4d4ca651 IsWindowHovered(): Added ImGuiHoveredFlags_FlattenChilds flag. Made IsRootWindowOrAnyChildHovered() obsolete in favor of IsWindowHovered( ImGuiHoveredFlags_FlattenChilds) (, )
omar 803ac3a5c6 IsWindowHovered() Fix behavior when an item is active to use the same logic as IsItemHovered() (, )