Commit Graph

  • 352695bc57 Merge branch 'master' into viewport omar 2018-07-24 16:50:49 +02:00
  • 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 +02:00
  • 3a522b2400 Internals: Renamed one of the arrow functions so their name don't collide. omar 2018-07-23 20:59:13 +02:00
  • ff83d0e369 Examples: Using fully qualified "Dear ImGui" name in window titles. omar 2018-07-23 17:31:13 +02:00
  • 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 +02:00
  • 4b8ce24e46 Internals: Extracted part of NewFrame() into a UpdateMouseWheel() function. omar 2018-07-22 18:57:28 +02:00
  • 4ebd442a24 Added asserts to catch illegal modifications of the font atlas between NewFrame() and EndFrame()/Render(). (#1958) omar 2018-07-22 18:53:27 +02:00
  • 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 +02:00
  • ec76009bc4 Readme: fixed typo + patron omar 2018-07-22 18:09:44 +02:00
  • af38a5c41a Ignore GCC warning (-Wclass-memaccess) in imgui.h (#1959) Elias Daler 2018-07-22 19:05:13 +03:00
  • fded746d03 Tweaked Contributing guidelines, Issue and PR templates omar 2018-07-22 17:32:31 +02:00
  • 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 +02:00
  • 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 +02:00
  • 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 +02:00
  • 23b67e6ff5 Merge branch 'master' into viewport omar 2018-07-17 19:52:14 +02:00
  • 93321d3280 Nav: Fixed CTRL+TAB windowing list from always showing the implicit Debug window. (#787) omar 2018-07-17 19:48:53 +02:00
  • 7e59eb026b Fix warning when IMGUI_DEFINE_MATH_OPERATORS is already defined by build system. (#1950) Rokas Kupstys 2018-07-17 18:17:56 +03:00
  • 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 +02:00
  • b8b74970d7 Internals: Viewport: Renamed g.MouseRefViewport to g.MouseViewport. (#1542) omar 2018-07-17 15:59:09 +02:00
  • 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 +02:00
  • 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 +02:00
  • 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 +02:00
  • ee98a069f0 Merge branch 'master' into viewport omar 2018-07-16 22:25:36 +02:00
  • d3be9185b3 Demo: Fixed spacing from b629f90 change. omar 2018-07-16 22:24:39 +02:00
  • 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 +02:00
  • abe7b190dc Examples: DX10, DX11: Fixed unreleased resources in Init and Shutdown functions. (#1944) omar 2018-07-13 11:25:54 +02:00
  • badde9a970 Demo: Spacing. omar 2018-07-12 11:58:50 +02:00
  • b30b82835a Merge branch 'master' into viewport omar 2018-07-12 11:48:49 +02:00
  • b629f90393 Demo: Re-ordered example app code to match their menu order and forward declaration order + added header to delimitate them. omar 2018-07-12 11:40:23 +02:00
  • d107146687 Viewport: Fixed CTRL+TAB windowing list displaying too many dimming layers (fix dd61c48 for viewport branch) omar 2018-07-12 11:19:17 +02:00
  • 5e73e969fb Comments, exposed a few things in imgui_internal.h for consistency, added ImQsort wrapper. omar 2018-07-12 11:08:24 +02:00
  • 88df66ec83 Merge branch 'master' into viewport omar 2018-07-12 10:03:18 +02:00
  • 23288547ec Revert part of c7016c2 incorrectly renaming ImGuiCol_NavWindowingHighlight to ImGuiCol_NavWindowListHighlight, that was wholly unnecessary (and not documented!). (also invalidate #1939) omar 2018-07-12 09:53:10 +02:00
  • 59fb3274a7 Examples: include for intptr_t on tdm-gcc + mingw32 (#1936) + mouse buttons comments omar 2018-07-11 12:23:46 +02:00
  • 9007dff5eb IsItemHovered(): Added ImGuiHoveredFlags_AllowWhenDisabled flag to query hovered status on disabled items. (#1940, #211) + shallow changelog tweaks omar 2018-07-10 19:16:57 +02:00
  • fff014dfed Examples: OpenGL3: Added shaders more versions of GLSL + made the example app default to GL 3.0 + GLSL 130 (instead of GL 3.2 + GLSL 150) unless on Mac. (#1938, #1900, #1513, #1466, etc.) omar 2018-07-10 18:29:57 +02:00
  • b829671df1 Fixed missing value in GetStyleColorName(). (#1939) broken with c7016c2 omar 2018-07-10 16:45:54 +02:00
  • de13261f1b OpenGL3: Added error output when shaders fail to compile / link. (#1938) omar 2018-07-10 16:09:34 +02:00
  • 4dfb9ef751 Internals: Extracted StartMouseMovingWindow so we can add code to turn an arbitrary widget into a window mover (will be useful to make the Collapse button a window mover past a mouse drag threshold) + added a couple of _None flags. omar 2018-07-10 11:05:14 +02:00
  • ce18371d1b Internals: Fixed CalcSizeContents() returning negative value on first run (inconsequential afaik, but fixing for sanity) omar 2018-07-06 19:24:54 +02:00
  • dc021f1c23 Internals: Fixed CalcSizeContents() returning negative value on first run (inconsequential afaik, but fixing for sanity) omar 2018-07-06 19:24:54 +02:00
  • 9dea27b273 Viewport: Made it possible for the moving window to detach and recreate its own Viewport (used by Docking) omar 2018-06-27 17:27:27 +02:00
  • 140ece0aeb Internals: HoveredWindowUnderMovingWindow special handling for drag and drop of window without altering the _NoInputs window flag, which worked but messed up the IsWindowHovered() user-facing flags. omar 2018-06-26 19:05:02 +02:00
  • 7abf72ec78 Viewport: Reapply/recover ownership of viewport which is convenient for docking but also can recover from faulty .ini files. (#1542) omar 2018-06-26 20:51:44 +02:00
  • 17f36038e0 Internals: Misc/shallow merge from Docking branch. omar 2018-07-09 21:06:46 +02:00
  • 574185426c Internals: Misc/shallow merge from Docking branch. omar 2018-07-09 21:06:46 +02:00
  • 7033b2043b Internals: Move IMGUI_CDECL declaration to imgui_internal.h so everyone can profit. omar 2018-07-03 18:28:46 +02:00
  • dd61c4802a Nav: Added a CTRL+TAB window list and changed the highlight system accordingly. (#787) omar 2018-07-09 19:16:48 +02:00
  • c7016c25e8 Nav: Added a CTRL+TAB window list and changed the highlight system accordingly. (#787) omar 2018-07-09 19:16:48 +02:00
  • 14cef31467 Merge branch 'master' into viewport omar 2018-07-09 16:24:01 +02:00
  • 0708f91617 Internals: Removed RootWindowForTabbing, won't be needed. Nav: Not starting NavWindowingTarget when a modal is active (was not noticeable). omar 2018-07-09 15:04:27 +02:00
  • 6201cad2b4 Examples: Comments, Demo: Log early out, TODO. (#1553) omar 2018-07-09 11:32:20 +02:00
  • 17efd7b3b0 Demo: Added basic Drag and Drop demo. (#143, #1931) omar 2018-07-08 19:55:57 +02:00
  • bd6097ac6f Drag and Drop: Calling BeginTooltip() between a BeginDragSource()/EndDragSource() or BeginDropTarget()/EndDropTarget() uses adjusted tooltip settings matching the one created when calling BeginDragSource() without the ImGuiDragDropFlags_SourceNoPreviewTooltip flag. (#143) + additional safety checks. omar 2018-07-08 20:04:49 +02:00
  • 64938178b7 Internals: Moved selectable flags to avoid collision with public flags + rewrote some tests so we can consistently grep for (held && hovered) omar 2018-07-08 18:23:12 +02:00
  • a33f0d1f7f Drag and Drop: Fixed ImGuiDragDropFlags_SourceNoDisableHover to affect hovering state prior to calling IsItemHovered() + fixed description. (#143) omar 2018-07-08 16:38:46 +02:00
  • 3a42eb6620 Fix missing ImmReleaseContext in default Win32 IME handler (#1932) vby 2018-07-08 21:24:12 +08:00
  • b0cdfe0ece Generalized d11d211e so regular popups (without the AlwaysAutoResize flag) also have a smaller minimum size, but reduced it to an arbitrary 4.0f instead of 1.0f to ease debugging of faulty situations. (#1909) omar 2018-07-08 13:27:16 +02:00
  • 6277781e83 Merge branch 'master' into viewport omar 2018-07-08 13:08:16 +02:00
  • c790723cfa Drag and Drop: Fixed an incorrect assert when dropping a source that is submitted after the target (bug introduced with 1.62 changes related to the addition of IsItemDeactivated()). (#1875, #143) omar 2018-07-08 13:03:39 +02:00
  • 89e2ddf07f Examples: Comments + shallow coding convention tweak to be consistent across examples and with imgui_impl_osx omar 2018-07-08 11:16:11 +02:00
  • 569e0f07f1 Examples: Removed old example_apple/ + tweak comments (#1873) omar 2018-07-08 10:57:16 +02:00
  • 839e4d34bd Merge branch 'warrenm_osx' Omar Cornut 2018-07-08 10:47:55 +02:00
  • c3f9220c15 Apple: Fixed example_osx_opengl2, renamed to example_apple_opengl2 + misc comments Omar Cornut 2018-07-08 10:47:31 +02:00
  • d11d211e5d Allow popup from ignoring the style.WindowMinSize values so short menus are not padded. (#1909) Wider generalization of b16603745c. omar 2018-07-06 18:28:12 +02:00
  • 93950b8c32 Internals: Removed unused ShadeVertsLinearAlphaGradientForLeftToRightText code. omar 2018-07-06 14:54:22 +02:00
  • 42bf149ac6 Removed per-window ImGuiWindowFlags_ResizeFromAnySide beta flag in favor io.OptResizeWindowsFromEdges=true to enable the feature globally. (#1495) The feature is not currently enabled by default because it is not satisfying enough. omar 2018-07-06 15:30:21 +02:00
  • d64157e803 Introduced a new Metal renderer implementation and a new example illustrating usage of Metal on macOS and iOS (partially addresses #1873) Warren Moore 2018-07-05 18:41:21 +09:00
  • 0146f4b456 Internals: BeginChildEx tweaks. omar 2018-07-05 09:17:16 +02:00
  • 7b2662d245 Examples: Comments, bits of documentation omar 2018-07-04 19:06:28 +02:00
  • deb7aa29cd OSX: Various tweaks to imgui_impl_osx courtesy of @warrenm + fix NewFrame position which has been moved recently master. (#1873) omar 2018-07-04 13:24:16 +02:00
  • 0d7e779b37 Merge branch 'master' into osx omar 2018-07-04 13:13:11 +02:00
  • 665bd1e140 Links and thanks. Comments on using BeginCombo/EndCombo + moved the Combo() implementations closer to each others to maximize user seeing how it is implemented from any of the secondary function body. omar 2018-07-04 10:07:50 +02:00
  • a765c83bad Ignore list: added emscripten output omar 2018-07-03 15:57:34 +02:00
  • 770cba0bd0 Merge branch 'master' into viewport omar 2018-07-02 20:13:16 +02:00
  • ddb09c6011 Examples: Ignore all *.user files (#1919) Konstantin Podsvirov 2018-07-02 20:43:33 +03:00
  • 645ab6633c Fixed a include build issue for Cygwin in non-POSIX (Win32) mode. (#1917, #1319, #276) omar 2018-07-01 12:25:37 +02:00
  • c4e34aaace Examples: Comments to clarify how the keyboard data is indexed. omar 2018-06-30 14:33:45 +02:00
  • b62cc5c150 Fix include Example_glfw_vulkan cmake (#1916) codecnotsupported 2018-06-30 10:53:36 +02:00
  • 6e67afc500 Tweaked software mouse cursor offset to match the offset of the corresponding Windows 10 cursors. (followup to #1914) omar 2018-06-29 16:32:52 +02:00
  • 62b3d7c51e Fixed software Hand cursor from not actually working. Fixed demo from crashing. Fixed typo and extraneous trailing space. Added Changelogs. (#1913, #1914) omar 2018-06-29 16:30:41 +02:00
  • ecd9a223e3 add hand cursor support (+11 squashed commit) Aiekick 2018-06-29 12:16:17 +02:00
  • 004fe8916a Internals: Settings: Simple optimization caching index into the settings buffer, to remove an unnecessary O(N*M) search during saving. (with N=active root windows during the session, M=stored settings which grows over time) omar 2018-06-28 18:41:30 +02:00
  • 242d7e0b0b ImVector: Added index_from_pointer() helper. omar 2018-06-28 18:37:38 +02:00
  • b16603745c Allow menu windows from ignoring the style.WindowMinSize values so short menus are not padded. (#1909) omar 2018-06-28 11:33:03 +02:00
  • 7adae3299e Double-click on resize grip doesn't need to test HoveredWindow (as button has the flattenchild flag anyway) + double-click on title bar verify that we don't have overlapping items to allow contents in title bar. + Comments omar 2018-06-23 12:00:12 +02:00
  • 42a919f303 Examples: Apple: Fixed paths of GLFW+GL2 example. (#1906) Update ignore list. Omar Cornut 2018-06-27 09:32:03 +02:00
  • c38fe6b0e1 Merge branch 'master' into viewport omar 2018-06-26 12:41:36 +02:00
  • 79153cf19f Internals: Various renaming. e.g. NewFrameUpdateHoveredWindowAndCaptureFlags() to UpdateHoveredWindowAndCaptureFlags() + exposed UpdateMovingWindow() in imgui_internal.h. omar 2018-06-23 20:08:19 +02:00
  • 14ceaaf460 ArrowButton: Fixed to honor PushButtonRepeat() setting (and internals' ImGuiItemFlags_ButtonRepeat). Setup current line text baseline so that ArrowButton() + SameLine() + Text() are aligned properly. omar 2018-06-26 12:37:10 +02:00
  • 9d67d18d86 Internals: Moved some of the SliderBehaviorT code into SliderBehavior to reduce the amount of instanciated code. omar 2018-06-25 14:01:21 +02:00
  • a1ec7723ef Examples: OpenGL3: Remove misleading or unnecessary "#version 150" strings. omar 2018-06-25 09:50:06 +02:00
  • c1d8dee6c5 Version 1.63 WIP omar 2018-06-25 09:40:09 +02:00
  • fb0106fad2 Demo: Fixed incorrect response to Begin() returning false in overlay demo (which cannot happen since we don't have a title bar, but that doesn't make it a good behaving demo!). omar 2018-06-25 09:32:55 +02:00
  • 20e89201cb Examples: Fixes. omar 2018-06-23 09:42:47 +02:00
  • d3ee3e7ab5 Fixed merge. omar 2018-06-23 09:39:05 +02:00
  • 00418d13e3 Demo: Fixed mismatched TreePush/TreePop in Property Editor, due to incorrect revert in 826d77185e (#1895) v1.62 omar 2018-06-22 17:45:03 +02:00
  • ce500f8727 Merge branch 'master' into viewport omar 2018-06-22 12:01:42 +02:00
  • d68633398b Examples: Vulkan: nverted the parameters to ImGui_ImplVulkan_RenderDrawData() to be consistent with other bindings. omar 2018-06-22 10:02:02 +02:00
  • 1b74e3be02 Version 1.62 omar 2018-06-22 09:41:25 +02:00