Commit Graph

  • 5942c08143 Added IMGUI_VERSION_NUM for easy compile-time testing. (#2025) omar 2018-08-21 11:59:03 +0200
  • f23d29b481 Added links to Discourse forums. omar 2018-08-20 10:45:10 +0200
  • 4910629f6a Internals: Moved code out of SliderBehaviorT to reduce code bloat and also because caller may have use for the grab_bb for styling purposes. omar 2018-08-17 17:53:13 -0700
  • 73fa5c29f4
    Update README.md omar 2018-08-17 16:44:23 -0700
  • 9d7480774f Merge branch 'master' into viewport omar 2018-08-17 11:37:03 -0700
  • bb2de30e3e Internals: Added ImTextCountUtf8BytesFromChar() helper. omar 2018-07-16 23:31:27 +0200
  • ac39c4b2a8 SplitterBehavior: Fix for when the sizes are already under the minimum desired size. omar 2018-08-11 22:01:24 +0200
  • 341ebd961b Fixed assertion when transitioning from an active ID to another within a group, affecting ColorPicker (broken in 1.62). Made ActiveIdIsAlive track the actual ID to avoid incorrect polling in BeginGroup/EndGroup when the ID changes within the group. (#2023, #820, #956, #1875). omar 2018-08-16 13:33:16 -0700
  • 8972ebae73 Metrics: Added io.MetricsActiveAllocations, moving away from the cross-context global counters than we previously used. (#1565, #1599, #586) omar 2018-08-15 16:28:39 -0700
  • 5d630c930d Viewport: DestroyPlatformWindows() checks for the bool CreatedPlatformWindow flag correctly. Note that we set CreatedPlatformWindow=true for the main viewport to allow the back-end to store data in the public Viewport structure (for consistency). (#1542) omar 2018-08-15 16:07:07 -0700
  • 9852649e97 Viewport: Initial viewport DpiScale only queried on viewport creation. Because AddUpdateViewport() is called repeatedly on MovingWindow or with ImGuiConfigFlags_ViewportsNoMerge, the DpiScale update would break ImGuiConfigFlags_DpiEnableScaleViewports. (#1542) omar 2018-08-14 19:17:33 -0700
  • 4e33aeed82 Selectable: Added ImGuiSelectableFlags_Disabled flag in the public API. (#211) omar 2018-08-14 16:07:01 -0700
  • 1722a31155 Viewport: ImGuiWindowFlags_NoFocusOnAppearing affects viewport accordingly. (#1542) omar 2018-08-14 11:32:24 -0700
  • e5f2295398 Merge branch 'master' into viewport omar 2018-08-13 17:50:48 -0700
  • caaa746424 Nav: NavWindowingList doesn't save to .ini file. TODO entries. omar 2018-08-13 17:29:20 -0700
  • d4cd121ae1 TODO + added missing _None enum for some internals flags. omar 2018-08-09 21:03:17 +0200
  • fda9dc8e18 Internals: Extracted RenderMouseCursor() out of EndFrame(). Moved to imgui_draw.cpp along with RenderArrowPointingAt(). Comments. (#2013) omar 2018-08-09 18:07:49 +0200
  • 421dc19798 Examples: Cast to ImTextureID instead of void* when assigning to TexId. Applied to all examples. (#2015) omar 2018-08-09 17:49:48 +0200
  • 9c0805010f imgui_impl_dx12: Cast to ImTextureID instead of void* to enable redefinition of ImTextureID (#2015, #301) Ryan Crandall 2018-08-09 08:44:29 -0700
  • d5793102db imgui_impl_opengl3: Advertised as a ES2/ES3 renderer. Defaults to ES3 on Android. Default on "#version 300 es" on ES 3. (#2002, #1873) omar 2018-08-09 17:42:53 +0200
  • 34203d5008 imgui_impl_win32: Don't redefine WIN32_LEAN_AND_MEAN if already defined (#2014) Ryan Crandall 2018-08-09 08:32:31 -0700
  • e3eb4111cc Examples: Fix 'How to build' instructions for SDL2 examples (#2012) luk1337 2018-08-08 18:55:09 +0200
  • 35124cdd07 imgui_impl_opengl3.cpp Using GLES3 on IOS instead of gl3w. (#2002, #1873) Not modifying the main.cpp yet because we need to test GL ES 3 context creation on iOS (only imgui_impl_opengl3.cpp was tested). omar 2018-08-08 17:38:18 +0200
  • 0065fe16a2 Nav: Made CTRL+TAB skip menus + skip the current navigation window if is has the ImGuiWindow_NoNavFocus set. (#787) While it was previously possible, you won't be able to CTRL-TAB out and immediately back in a window with the ImGuiWindow_NoNavFocus flag. omar 2018-08-08 16:03:13 +0200
  • 9d8a0374d3 Use literals in place of LLONG_MIN, LLONG_MAX ULLONG_MAX if they are not available. Amend 498c0dcb4c. We prefer using the defines if available in limits.h because they somehow tend to work without warnings when enabling strict C++03 compilation. The 3 literals are fallbacks.. (#1926). omar 2018-08-06 13:07:19 +0200
  • 0905202f44 Internals: Minor renaming for consistency. omar 2018-08-05 18:13:24 +0200
  • 9e9c8a8991 Update to Contributing, and Issue/PR templates. omar 2018-08-05 18:13:15 +0200
  • bc6ac8b2ae Metrics: Changed io.MetricsActiveWindows to reflect the number of active windows (!= from visible windows), which is useful for lazy/idle render mechanisms as new windows are typically not visible for one frame. Metrics: Added io.MetricsRenderWindow to reflect the number of visible windows. omar 2018-08-03 18:12:36 +0200
  • 00e29832d4 Examples: OpenGL2: Disabling/restoring GL_LIGHTING and GL_COLOR_MATERIAL to increase compatibility with legacy OpenGL applications. (#1996) omar 2018-08-03 15:04:35 +0200
  • 498c0dcb4c Using limits.h LLONG_MIN etc. to increase old-compiler compatibility (as ll and ull prefixes were not standard). Not tested much on old compilers, relying on Clang/GCC warnings. omar 2018-08-03 11:40:58 +0200
  • fd2a90ee60
    Update CONTRIBUTING.md omar 2018-08-02 16:53:51 +0200
  • 8ef0ca9765 Merge branch 'master' into viewport omar 2018-08-01 12:27:56 +0200
  • d69b2a1c1d Changelog for #1989 omar 2018-08-01 12:23:59 +0200
  • 6011ddf1e5 imgui_impl_dx11: Using ID3D11Factory instead of ID3D11Factory1 (#1989) Matthias Moulin 2018-08-01 12:22:04 +0200
  • cc64bd9e3c Comments omar 2018-08-01 11:54:54 +0200
  • 87e2fea09d Renamed io.OptResizeWindowsFromEdges to ConfigResizeWindowsFromEdges, io.OptCursorBlink to io.ConfigCursorBlink, io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. (#1427, #1495, #822, #473, #650) Demo: Exposed flags in Demo. omar 2018-08-01 11:50:57 +0200
  • b1fc988c6b imgui_impl_glfw, imgui_impl_sdl: Workaround for Emscripten which doesn't seem to handle focus related calls. (#1941) omar 2018-08-01 11:34:17 +0200
  • b217251a63 Added Visual Studio 2017+ build cruft to Ignore List (.vs/ folder) omar 2018-07-31 18:48:24 +0200
  • 671e516377 Demo: Fix using ambiguous InputFloat() call which redirect to obsolete version. (#1990) omar 2018-07-31 18:38:15 +0200
  • 65b46f62ef Fixed PushID() from keeping alive the new ID Stack top value (if a previously active widget shared the ID it would be erroneously kept alive) (drag and drop demo could soft-lock the UI until pressing Escape!) omar 2018-07-31 17:26:42 +0200
  • 7e1678ff00 Drag and Drop: Elapse payload as soon as delivery is made. (#153) omar 2018-07-31 17:15:01 +0200
  • c031ea088a Viewport: Fixed an assert on loss of valid mouse position while dragging a tooltip (would happen often when using debugger breakpoint). Not totally sure about best solution, may not be important. omar 2018-07-31 13:38:24 +0200
  • faf2c34149 Drag and Drop: Added ImGuiDragDropFlags_SourceAutoExpirePayload flag to force payload to expire if the source stops being submitted. (#1725, #143). omar 2018-07-31 13:44:19 +0200
  • 79ae6d3bf6 Drag and Drop: Clear payload buffers more consistently in ClearDragAndDrop() + BeginDragDropTargetCustom() can't succeed with hidden contents. (#143) omar 2018-07-31 13:36:06 +0200
  • 9824bf1ba1 Merge branch 'master' into viewport omar 2018-07-31 12:12:56 +0200
  • e13e5982ff Drag and Drop: Payload stays available and under the mouse if the source stops being submitted, however the tooltip is replaced by "..." + moved FrameScopeActive = false at the bottom of EndFrame() for safety. (#1725) omar 2018-07-30 18:06:41 +0200
  • f88bf9cea3 InvisibleButton: Added an assert to catch common type of passing zero-sized dimensions. (#1983) omar 2018-07-30 18:48:10 +0200
  • 067edd09f9 imgui_impl_opengl3: Comments. (#1987) omar 2018-07-30 18:44:58 +0200
  • a7ac9e8346 Made assertion more clear when trying to call Begin() outside of the NewFrame()..EndFrame() scope. (#1987) omar 2018-07-30 18:20:25 +0200
  • d5400d9517 Fixes for pre-C++11 compilers. That said, I think we can consider upgrading requirement to an early VS-friendly subset of C++11. The thing I would like the most from C++11 are forward-declared enum (from VS 2012 onward). omar 2018-07-30 17:42:27 +0200
  • 4d5dcdb57a Internals: Changed signature of ShadeVerts functions to remove pointers. (#1286, #1700, #1986) omar 2018-07-30 17:24:04 +0200
  • f05aede098 Revert "Assert that fmt != NULL before calling vsnprintf (#1969)" omar 2018-07-30 16:50:47 +0200
  • 80db2383d8 Speculative va_copy() fix for old versions of GCC/Clang. (cannot repro) (#1085) omar 2018-07-30 16:00:47 +0200
  • 2a67aeaa3d Visual Studio: calling into _vsnprintf. (#1085) omar 2018-07-30 15:27:09 +0200
  • 81562b2b5a Examples: imgui_impl_opengl3.cpp Using #ifdef GL_SAMPLER_BINDING instead of if (glBindSampler) (#1985) Dado 2018-07-30 14:38:13 +0100
  • 15a93d6fe3 Internals: Fixed HoveredIdTimer so it is safe to call SetHoveredId() multiple times without altering the timer. omar 2018-07-30 14:36:08 +0200
  • 6d78045ff8 Demo: Added extra demo in the Basic Horizontal Layout section. (#1977) + PR guidelines omar 2018-07-30 14:30:26 +0200
  • b5b972d0ef ImFontAtlas::AddFontDefault: Made it possible to override glyph ranges. (#1965) Tommy Nguyen 2018-07-30 14:18:20 +0200
  • faa7dad537 Examples: imgui_impl_osx: Fix for incorrect DeltaTime calculation on mac OS. (#1978) Marcel Smit 2018-07-30 14:15:24 +0200
  • 544db70852 Examples: OpenGL3: Tweaks, added changelog. (#1941) omar 2018-07-30 14:00:53 +0200
  • fc737d2333 Examples; imgui_impl_opengl3.cpp to work with Emscripten (#1941) Omar Sherif Fathy 2018-07-30 13:52:18 +0200
  • f9e8b5c652 CollapseButton: Added hovering highlight + minor consistency tweaks. omar 2018-07-27 13:20:24 +0200
  • 6211f40f3d Internals: Drag and Drop: default drop preview use a narrower clipping rectangle (no effect here, but other branches uses a narrow clipping rectangle that was too small so this is a fix for it) + Comments omar 2018-07-27 12:29:33 +0200
  • 0095b7a0ea Merge branch 'master' into viewport omar 2018-07-26 23:55:23 +0200
  • 28c1a9857e Internals: Changed SplitterBehavior() signature to be consistent with other similar signatures. (#319). omar 2018-07-26 23:50:05 +0200
  • 63df9d6311 Internals: Extracted part of Begin into UpdateWindowParentAndRootLinks(). Useful to call to keep state updated immediately (namely useful for docking) + small tidying up of imgui_internal.h omar 2018-07-26 23:45:48 +0200
  • 84183f5bb6 Assert that fmt != NULL before calling vsnprintf (#1969) OswaldHurlem 2018-07-26 13:26:50 -0700
  • 6b4f6cd2c5 Merge branch 'master' into viewport omar 2018-07-26 19:25:55 +0200
  • dd0d5debef Internals: Child windows that are clipped or part of a collapsed parent are not marked as collapsed anymore, but just a separate hidden marker set. We distinguish hiding for size measurement vs hiding for other reasons. Cleaned a little the end of Begin. omar 2018-06-27 17:21:59 +0200
  • 0b045d8de5 Nav: Tweaked CTRL+TAB to hide visual noise on fast switch + fading out screen dimming and highlight to make the experience less harsh omar 2018-07-26 19:00:17 +0200
  • 1b646a4440 Nav: Tweaked CTRL+TAB to hide visual noise on fast switch + fading out screen dimming and highlight to make the experience less harsh omar 2018-07-26 19:00:17 +0200
  • 7adac4ab3e FAQ update omar 2018-07-26 12:55:40 +0200
  • 0c88fad6c2 Internals: SplitterBehavior() added hover_visibility_delay parameter which is helpful to reduce visual noise. (#319) omar 2018-07-25 16:06:30 +0200
  • f22024cb19 Internals: Exposed NavScoreItemGetQuadrant() as ImGetDirQuadrantFromDelta() in imgui_internal.h omar 2018-07-18 16:16:44 +0200
  • 049c515840 Added non-const ImVec2 [] operator for consistency (and because some docking code needs it.) omar 2018-07-18 13:03:21 +0200
  • 352695bc57 Merge branch 'master' into viewport omar 2018-07-24 16:50:49 +0200
  • 357534e588 Made it possible to move a window by dragging from the Collapse button (past the drag threshold). Extracted some code out to a CollapseButton() function. omar 2018-07-10 11:14:38 +0200
  • 3a522b2400 Internals: Renamed one of the arrow functions so their name don't collide. omar 2018-07-23 20:59:13 +0200
  • ff83d0e369 Examples: Using fully qualified "Dear ImGui" name in window titles. omar 2018-07-23 17:31:13 +0200
  • 528b50a89f Fixed horizontal mouse wheel not forwarding the request to the parent window if ImGuiWindowFlags_NoScrollWithMouse is set. (#1463, #1380, #1502) omar 2018-07-22 19:04:15 +0200
  • 4b8ce24e46 Internals: Extracted part of NewFrame() into a UpdateMouseWheel() function. omar 2018-07-22 18:57:28 +0200
  • 4ebd442a24 Added asserts to catch illegal modifications of the font atlas between NewFrame() and EndFrame()/Render(). (#1958) omar 2018-07-22 18:53:27 +0200
  • e07f5d4c78 Changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. omar 2018-07-22 18:46:41 +0200
  • ec76009bc4 Readme: fixed typo + patron omar 2018-07-22 18:09:44 +0200
  • af38a5c41a Ignore GCC warning (-Wclass-memaccess) in imgui.h (#1959) Elias Daler 2018-07-22 19:05:13 +0300
  • fded746d03 Tweaked Contributing guidelines, Issue and PR templates omar 2018-07-22 17:32:31 +0200
  • 74077491ce Viewport: Fixed a situation when the implicit Debug window can hold on a zombie viewport which platform window is not properly destroyed. (#1542) omar 2018-07-22 16:23:35 +0200
  • 048add5ef2 ImGuiTextFilter, TextRange: removed cruft from TextRange since it's not a publicly and generic helper at the moment + marked internal stuff + changed a reference to a pointer. (#1879) omar 2018-07-19 15:22:18 +0200
  • d016ef1825 Examples: SDL: Removed SDL_HAS_WARP_MOUSE_GLOBAL in the non-viewport branch. (#1954) (+1 squashed commits) omar 2018-07-19 12:51:20 +0200
  • 23b67e6ff5 Merge branch 'master' into viewport omar 2018-07-17 19:52:14 +0200
  • 93321d3280 Nav: Fixed CTRL+TAB windowing list from always showing the implicit Debug window. (#787) omar 2018-07-17 19:48:53 +0200
  • 7e59eb026b Fix warning when IMGUI_DEFINE_MATH_OPERATORS is already defined by build system. (#1950) Rokas Kupstys 2018-07-17 18:17:56 +0300
  • 7b4fbf4301 Viewport: Removed the need for the back-end to fill io.MousePosViewport, it seems unnecessary at this point. (#1542) omar 2018-07-17 16:37:10 +0200
  • b8b74970d7 Internals: Viewport: Renamed g.MouseRefViewport to g.MouseViewport. (#1542) omar 2018-07-17 15:59:09 +0200
  • defbf1c4b3 Viewport: when moving window we use the moving window viewport unless drag and dropping. This is to fix e.g. IsItemHovered() + Tooltip pattern that may be active while moving a window. (#1542) omar 2018-07-17 15:56:02 +0200
  • 16c6734bcb Viewport: Revert part of 7abf72e, the viewport ownership stealing is problematic. (#1542). Will rework in the context of docking. (+1 squashed commits) + Fixed unused prototype warning (left-over from a merge) omar 2018-07-16 23:39:14 +0200
  • 0c207b7bc9 Demo: Clarified the use of IsItemHovered()/IsItemActive() right after being in the "Active, Focused, Hovered & Focused Tests" section. This will be of more importance with the introduction of tabs. omar 2018-07-17 11:33:31 +0200
  • ee98a069f0 Merge branch 'master' into viewport omar 2018-07-16 22:25:36 +0200
  • d3be9185b3 Demo: Fixed spacing from b629f90 change. omar 2018-07-16 22:24:39 +0200
  • 73e13a0762 Examples: Tweaked the main.cpp example structure for all examples. (There are a few hidden agendas here: 1) I would like to avoid encouraging people from using the implicit "Debug" window, and promote using Begin/End. In spite of my best attempt, there are a few feature of the upcoming docking system that cannot work 100% properly for the implicit Debug window, so future proof let's not put that feature in the spotlight too much for new users. 2) Moved dumb hardcoded positions into a single spot that can be replaced with a viewport relative position and not affect other demo windows. 3) Calling ShowDemoWindow before anything else, also for the benefit of a specific docking demo which will have an ordering constraint which is not really problematic in a real app but shouldn't be put forward in the demo. omar 2018-07-16 22:17:34 +0200