Commit Graph

6271 Commits (24be26e00ef23e894718bf2cfd32532852f03d72)
 

Author SHA1 Message Date
omar eab6333a0b SetNextWindowContentSize() adjust for client->window size, but the fate of borders isn't really clear for now (until now we always tried to make borders not affect layout, so if we want a 200x200 fully visible space with borders and zero window padding user need to include the borders) ()
omar 7ac1583411 Scrollbar: Minor simplication of the code using InnerRect data.
omar a9b01600ac Internals: window->InnerRect includes removal of borders so it'll be easier to use from other locations.
omar 20ba79aa56 Demo: Added "No close" option.
omar b75acc21b0 Fix for border under title bar when WindowBorderSize == 0 and FrameBorderSize > 0
omar 0872020c5c Comments
omar f72b002da8 Removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete). (, , )
Branimir Karadžić e23083a080 Fixed warning: logical ‘and’ of equal expressions
omar 0365c524a2 ColorPicker4: Fixed returning true when holding mouse button on the sat/value/alpha locations. ()
omar a8c7b1a2a2 ColorEdit4: Made IsItemActive() return true when picker popup is active. ()
omar 871a5cecc1 Merge branch 'master' into navigation
omar c9f0275e22 Combo: Removed ImGuiWindowFlags_ComboBox flag. Moved internal window flags.
omar 457011660e Mouse wheel scrolling doesn't change speed inside Combo box (uses to slow down from 5 to 3) but instead slow down on window that are smaller than the scroll speed.
omar a263dce2f2 Combo: Cleanup. Removed unrequired uses of the _ComboBox flag (the test in EndChild() is from commit no 1!). We could remove ImGuiWindowFlags_ComboBox soonish.
omar 9ce51ad9f6 Fix bad merge
omar a6f37287d8 Merge branch 'master' into navigation
# Conflicts:
#	imgui.cpp
omar 7ac5f11b29 Standardizing the casing/format of internal window names + Misc comments.
omar befc58771c Combo: Recycling windows by using a stack number instead of a unique id, wasitng less windows.
omar e998c7d3e3 Combo: Moved functions (untouched).
omar a5e9392140 Combo: Added flags to BeginCombo() new api, removed explicit height, default to 8 instead of 7 items, allow popup height constraints via SetNextWindowSizeConstraints(), width expand if contents doesn't fit, popup reposition policy if it doesn't fit.
omar d9d231dc6b Internals: Renamed CalcSizeFullWithConstraint() to CalcSizeAfterConstraint() which is more appropriate + added explicit parameter to CalcSizeAutoFit() so it can be used externally.
omar 74f42baf3e Fixed scrollbar issue, source size when explicit was read before applying custom size constraints (followup to cc2c023880 etc.)
omar 541dfd7901 Combo: Comments + fixed missing lower window padding.
omar 9872297a84 Internals: Renamed FindBestPopupWindowPos() to FindBestWindowPosForPopup()
omar a4863e8084 Demo: Picker with palette demo supports drag and drop. (, )
omar 7bf85db6c4 Drag and drop: Added COL3F payload for color without alpha overwrite. Exposed standard color payload types in imgui.h ()
omar b6b940c8ee Merge branch 'master' into navigation + removed extraneous g.NavDisableMouseHover test in IsItemHovered()
# Conflicts:
#	imgui.cpp
omar e118239f69 IsItemHovered() comments ()
omar 553b0fcf8f Merge branch 'master' into navigation
# Conflicts:
#	imgui.cpp
omar ca0bb000ad Begin: Factored out a bit of code to CalcSizeContents()
omar f658edc72a Begin: Remove unnecessary usage of window_is_new flag, as both fields are zero on window creation.
omar 45466a8cf9 Internals: BeginCombo() added dummy ImGuiComboFlags.
omar 97edd42fc0 Indent(), Unindent(): Allow passing negative values.
omar 7f2b9ea4c0 Begin: Minor refactor following fcf652f8ee7267055e331bf7a0133ed477816f27. Merging the if (Collapsed) block with the main one.
omar 8dcc1a8a20 Begin: Sizing fixes regarding uses SetNextWindowSize() on individual axises.
omar e045eddd77 Minor tweaks. Using ImGuiAxis defines.
omar 92f7bd3605 Fixed 64-bit warnings.
omar cc2c023880 Fixed scrollbar issue, followup to beda5fc5a0 and 2df8fa95df.
omar e6215b6ca0 Merge branch 'master' into navigation + merge fix
# Conflicts:
#	imgui.cpp
omar 3c9f9a455e Internals: Cleanup FindBestPopupWindowPos() to be more digestible, since we are bounds to rework the logic there. No functional changes intended. FIXED TYPO.
omar 8959c64b33 Internals: Cleanup FindBestPopupWindowPos() to be more digestible, since we are bounds to rework the logic there. No functional changes intended
omar abe5ad3c7a Demo: Added display for IsMouseDragging() function.
omar 94bf12f14b Demo: Display better mouse cursor info for debugging backends.
omar 20c7aab60c Exposed GetOverlayDrawList(). (~#545, ~#530)
omar 6deb865f78 Nav: Merge fix.
omar 2fc6a82665 Merge branch 'master' into navigation
# Conflicts:
#	imgui.cpp
#	imgui.h
omar 8f41508c52 Begin: Move the code that update the Appearing flag above the BeginDocked() branch.
omar 2fc9a2e6e7 Fixed nav branch merge issue.
omar beda5fc5a0 Fixed scrollbar enable/disable calculation when size is modified programmatically. This is the generalization of the fix in 2df8fa95df.
omar ecacaf7f2d Lower-right resize grip only appears when hovered. ()