Commit Graph

  • 84183f5bb6 Assert that fmt != NULL before calling vsnprintf (#1969) OswaldHurlemandomar 2018-07-26 13:26:50 -07:00
  • 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 +02:00
  • 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 +02:00
  • 7adac4ab3e FAQ update omar 2018-07-26 12:55:40 +02:00
  • 0c88fad6c2 Internals: SplitterBehavior() added hover_visibility_delay parameter which is helpful to reduce visual noise. (#319) omar 2018-07-25 16:06:30 +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 Dalerandomar 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
  • 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
  • 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 Kupstysandomar 2018-07-17 18:17:56 +03: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
  • 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
  • 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
  • 5e73e969fb Comments, exposed a few things in imgui_internal.h for consistency, added ImQsort wrapper. omar 2018-07-12 11:08:24 +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
  • 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
  • 17f36038e0 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
  • c7016c25e8 Nav: Added a CTRL+TAB window list and changed the highlight system accordingly. (#787) omar 2018-07-09 19:16:48 +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) vbyandomar 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
  • 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
  • ddb09c6011 Examples: Ignore all *.user files (#1919) Konstantin Podsvirovandomar 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) codecnotsupportedandomar 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) Aiekickandomar 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
  • 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
  • 00418d13e3 Demo: Fixed mismatched TreePush/TreePop in Property Editor, due to incorrect revert in 826d77185e (#1895) omar 2018-06-22 17:45:03 +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
  • f9a5ff7a19 Examples: DirectX12: Moved the ID3D12GraphicsCommandList* parameter from ImGui_ImplDX12_NewFrame() to ImGui_ImplDX12_RenderDrawData() which makes a lots more sense. (#301) omar 2018-06-21 12:13:04 +02:00
  • cac4c3f9b8 Examples: The functions in imgui_impl_xxx.cpp are prefixed with IMGUI_IMPL_API (which defaults to IMGUI_API) to facilitate some uses. (#1888) + Comments in imgui.h omar 2018-06-21 12:04:00 +02:00
  • 528b0b4af6 Examples: SDL+OpenGL2: Fixed Makefile. (#1886) omar 2018-06-20 11:17:33 +02:00
  • c44a4bed84 Examples: Fixed bindings to use ImGuiMouseCursor_COUNT instead of old name ImGuiMouseCursor_Count_ so they can compile with IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#1887) omar 2018-06-20 11:06:29 +02:00
  • 2ce121b7d0 Readme, Links, Bindings omar 2018-06-16 10:43:05 +02:00
  • 40845852b9 Fixed warnings + readme omar 2018-06-16 10:23:11 +02:00
  • a402edb66c Examples: OSX: Added clipboard support. Fixed ignore list for xcode cruft. Comments about broken keys. (#1873) Omar Cornut 2018-06-15 22:49:03 +02:00
  • b5d385824d Added assert in TreePop() to ease catching ID stack underflow earlier. omar 2018-06-14 15:02:43 +02:00
  • 826d77185e Revert 640c0566: TreeNode: Fixed nodes with ImGuiTreeNodeFlags_Leaf flag always returning true which was meaningless -> more flexible to keep allowing it by default so it setup an ID scope. omar 2018-06-14 15:10:46 +02:00
  • ce0b36ba10 Added _None values to various enum flags, useful for readability and some coding style likes it. (Unfortunately we can't refer to them as default value in imgui.h functions because they need to be declared below). omar 2018-06-13 23:20:09 +02:00
  • 2a6fbb2197 Speculative fix for Win32 clipboard handler if SetClipboardText() fails + Minor fix for static analyzer + using :: prefix when calling in Win32 functions. omar 2018-06-13 22:22:52 +02:00
  • 185b4dde87 Examples: Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag. Added clipboard support. Unindexing buffers ourselves as Allegro indexed drawing primitives are buggy in the DirectX9 back-end. omar 2018-06-13 19:22:22 +02:00
  • 335f6fde7e Comments + missing changelog bits in 1.52 for SetNextWindowPos, SetNextWindowPosCenter. (obsolete #771) omar 2018-06-13 13:36:48 +02:00
  • d57fc7fb97 Added IsItemDeactivatedAfterChange() if the last item was active previously, isn't anymore, and during its active state modified a value. Note that you may still get false positive. (#820, #956, #1875) omar 2018-06-13 00:10:33 +02:00
  • be4b8b5615 Internals: Added GetItemID(), GetFocusID() for consistency. Made GetActiveID() inline. Comments, fixed typos, demo tweaks. omar 2018-06-12 20:18:51 +02:00
  • 3569d74f98 Demo: Moved test of the Hovered/Active/Focused functions to the Widgets section. omar 2018-06-12 18:51:23 +02:00
  • cd455a4600 Added IsItemDeactivated() to query if the last item was active previously but isn't anymore. Useful for Undo/Redo patterns. (#820, #956, #1875) omar 2018-06-12 18:44:33 +02:00
  • c725710c6d Comments omar 2018-06-12 17:24:46 +02:00