590 Commits (25f25d546d360a7653772fc712ee20c19f8048d5)

Author SHA1 Message Date
omar 25f25d546d Viewport: Fixed manual mouse resize to handle mouse viewport change, which will allow resizing a window while it changes viewport. Releasing manual resize may merge a window. Added ConvertViewportPosToViewportPos() helper. Renamed NewFrameUpdateMovingWindowDropViewport() to UpdateTryMergeWindowIntoHostViewport() and removed the now-unnecessary half of the function. + renaming (#1542) ago%!(EXTRA string=7 years)
omar 50e453a3e2 Viewport: Comments, tweaks, renaming. Removed unnecessary stuff. Fixed zealous Clang warning. (#1542) ago%!(EXTRA string=7 years)
omar 0d16492eb7 Viewport: Moved ImGuiWindowFlags_FullViewport to an internal ViewportOwned flag. Renamed AddViewport to AddUpdateViewport. (#Viewport: Shuffled code in Begin to reset size of reappearing popups prior to selecting viewport, to avoid mistakenly using an old size. Moved code out of UpdateSelectWindowViewport() to the section of Begin where positions is being locked down, to avoid code in-between duplicating this. (#1542)) ago%!(EXTRA string=7 years)
omar 38e357ef10 Viewport: Virtual mouse position are patched immediately when viewports are moved in the virtual space, avoiding interaction glitchs on a resizing frame. (#1542) ago%!(EXTRA string=7 years)
omar 8be6f40ae1 Viewport: per-viewport overlay draw list created on demand. With this pattern it'll be easier to consider adding more (e.g. background draw list). (#545) ago%!(EXTRA string=7 years)
omar bfc0efaae9 Internals: Window: Aggregating ImDrawList into the ImGuiWindow structure. ago%!(EXTRA string=7 years)
omar 83bd3595a4 Viewport: Merged ImGuiPlatformData into ImGuiPlatformIO. Comments. (#1542) ago%!(EXTRA string=7 years)
omar 52cac135c9 Internals: Renamed GetFrontMostModalRootWindow() to GetFrontMostPopupModal() and exposed in imgui_internal.h (#1738) ago%!(EXTRA string=7 years)
omar 6f1f5cbc20 Version 1.61 WIP ago%!(EXTRA string=7 years)
omar 3a29ddbcfa Version 1.60 ago%!(EXTRA string=7 years)
omar 6d0c720451 Internals: Removed unused internal variant of ArrowButton(). ago%!(EXTRA string=7 years)
omar 82b7a39f31 Fixed a few zealous warnings. ago%!(EXTRA string=7 years)
omar e88fb10d7c NewFrame: Extract some code into a NewFrameUpdateHoveredWindowAndCaptureFlags() which can be of use with touch-based inputs systems. ago%!(EXTRA string=7 years)
omar ac2027c415 NewFrame: Extract some code into a NewFrameUpdateMouseInputs function. Moved settings saving higher up in the function so it is next to its peers. ago%!(EXTRA string=7 years)
omar 72899318e6 Viewport, Platform, Examples: Added support for transparent window via PlatformIO Platform_SetWindowAlpha (#1542) + fixes for GLFW 3.3 ago%!(EXTRA string=7 years)
omar 78610a54d2 Fixed Clang zealous cast-call warning (on par with GCC) which decided to warn against explicit C-style casts now. ago%!(EXTRA string=7 years)
omar ac8931b2e9 Viewport: Moved OverlayDrawList to be a per-viewport instead of being global + fix overlay clipping glitch during viewport creation frame + support for software mouse cursor stradding over multiple viewport. The overlay draw list move is rather important as draw lists are not shared among viewports anymore and we can do a swap of their data without copying it. (#1542) ago%!(EXTRA string=7 years)
omar b69dc45f6e Internals: Removed ImGuiDataType_Float2. ago%!(EXTRA string=7 years)
omar c19b27813d Added InputDouble() function. We use a format string instead of a decimal_precision parameter to also for "%e" and variants. (#1011) May transition the other InputXXX function to use format strings as well. ago%!(EXTRA string=7 years)
omar 170f44e6f0 IO: Renamed io.WantMoveMouse to io.WantSetMousePos (was added in 1.52, _not_ used by core and only honored by some binding ahead of merging the Nav branch) + internal renaming (#787) ago%!(EXTRA string=7 years)
omar ccc9a22db3 Viewport: Changelog + Internals: Renamed viewport mouse fields for consistency (going to add more). (#1542) ago%!(EXTRA string=7 years)
omar 33ad8b2f0c Nav: Track nav input source more generally (gamepad vs keyboard) (#787) + update todos and demo tweaks ago%!(EXTRA string=7 years)
omar 46b61427e1 Viewport, Platform: Refactored platform interface. Removed need to use imgui_internal.h in backends. Split viewport into public facing ImGuiViewport and internal structure. Exposing enough data to provide custom tweaked renderers. Renamed handlers, fixed lots of inconsistencies. (#1542, #1042) ago%!(EXTRA string=7 years)
omar 1ab236d9df Viewport, Platform: Internal renaming to use more consistent (OsDesktopPos > PlatformPos). (#1542) ago%!(EXTRA string=7 years)
omar 8364d1ca6c Viewport: Removed back-end renderer code that implied we need to clear with WindowBg color. Added NoRendererClear flag. (#1542, #1042) ago%!(EXTRA string=7 years)
omar 6e58a95a01 Viewport, Platform, Examples: Changes to resizing flow + restored support for Platform events affecting the ImGui windows (so Decorated windows are functional). (#1542, #1042) .. ago%!(EXTRA string=7 years)
omar 207ad45983 Metrics: Displaying all draw lists of a window (if it uses layer 0 and has already been appended to earlier in the frame). ago%!(EXTRA string=7 years)
omar 0e3a6ef4f7 Moved IM_NEW, IM_DELETE helpers to imgui.h for convenient use by back-ends and user code. ago%!(EXTRA string=7 years)
omar b9ac127b0b Internals: Columns renaming fields ago%!(EXTRA string=7 years)
omar 5e63711084 Viewport, DPI: Some early work on per-viewport DPI support. At the moment the easiest way is to replace fonts during the ChangedViewport callback, but down the line we should aim at handling some of it at ImFont level. (#1542, #1676) ago%!(EXTRA string=7 years)
omar a4629b0b36 Viewport, DPI: Select viewport before locking style sizes and before handling double-click-on-title-bar to collapse. (#1542, #1676) ago%!(EXTRA string=7 years)
omar 43f375b2f2 Viewport,Platform: Added GetWindowDpiScale() platform interface, changes of scale are reflected by positioning and resizing windows in their given viewport. (#1542) ago%!(EXTRA string=7 years)
omar 4d46383100 Viewport: Coupling non-main viewport to one window. Viewport name derived from the window. Added ImGuiConfigFlags_PlatformNoTaskBar, off by default (aka re-established task-bars by default for now). (#1542) ago%!(EXTRA string=7 years)
omar a1f3949d71 Drag and Drop: Increased payload data type to 32 characters. (#143) ago%!(EXTRA string=7 years)
omar 9ea16e344a Viewport: Disable extra viewports from hosting other windows. (#1542) ago%!(EXTRA string=7 years)
omar 8e3274e137 Viewport: Tracking current viewport we are appending to + added callback in PlatformInterface for DPI purpose (WIP). (#1542) ago%!(EXTRA string=7 years)
omar bf7481eba0 Columns: Extent stop at the right-most clipped pixel. The right-most column might appear a little wider but it's usable space matches the others. (#125). +9 Internal: Store InnerClipRect. ago%!(EXTRA string=7 years)
omar e026c8d3b7 Viewport: Give a chance to platform and renderer to actually destroy their data. Otherwise the regular ImplXXX_Shutdown + following by DestroyContext() order fails to fullifl this. (#1542) ago%!(EXTRA string=7 years)
omar 69e700f869 Renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT for consistency with other enums. Added ago%!(EXTRA string=7 years)
omar 8a4093f38b Added ArrowButton(). Exposed ImGuiDir. ago%!(EXTRA string=7 years)
omar 11f13ab24f Internal: renamed RenderTriangle() to RenderArrow(). ago%!(EXTRA string=7 years)
omar c994796e26 Internal: Moved IM_NEWLINE helper to imgui_internal.h ago%!(EXTRA string=7 years)
omar d98a5d54aa Renamed ImGuiNavFlags io.NavFlags to ImGuiConfigFlags io.ConfigFlags. (#787) ago%!(EXTRA string=7 years)
omar 8074d56bdd Renamed ImGuiNavFlags io.NavFlags to ImGuiConfigFlags io.ConfigFlags. (#787) ago%!(EXTRA string=7 years)
omar 2c9f45bbe7 Renamed ImGuiNavFlags io.NavFlags to ImGuiConfigFlags io.ConfigFlags. (#787) ago%!(EXTRA string=7 years)
omar 735267d27c Viewport: Initial viewport branch+ platform api commit (squashed from previous commits, still very WIP) (#1542) ago%!(EXTRA string=7 years)
omar 0e62b7d68a Clearing next window data at the end of Begin() more reliably. Misc comments. ago%!(EXTRA string=7 years)
omar a761779b12 Internals: Settings: Added ReadCloseFn to allow handlers to sanitize data on a per-entry basis. ago%!(EXTRA string=7 years)
omar c7835dd189 ImRect: Removed misleading IsFinite() function used by some Nav code. ago%!(EXTRA string=7 years)
omar 27667fc035 TreeNode: Renamed Beta ImGuiTreeNodeFlags_NavCloseFromChild to ImGuiTreeNodeFlags_NavLeftJumpsBackHere. (#1079) ago%!(EXTRA string=7 years)