Commit Graph

6247 Commits (74b3b7cf58419cd41b132b90aac27b9473711afe)
 

Author SHA1 Message Date
omar 4faf99eff5 Added most basic form of Disabled flag to disable interactions (but visuals aren't altered), in imgui_internals.h, undocumented/unsupported (, )
omar fc25881207 Merge branch 'master' into navigation
omar efcd53a0c3 Removed direct dependency on sprintf() in imgui.cpp ()
(NB: imgui_demo stills uses it)
omar 1f3372b7f1 ImFormatString, ImFormatStringV(): clarifying specs so that passing a NULL buffer should return the desired length. ()
omar 8fd5620277 Renamed IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS to IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS for consistency. (ref , , )
omar 7d2cd0e6ff Added IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS support in imconfig.h ()
Patrick Doane 70cb427469 Add missing CloseClipboard call
omar bc447bc0a4 ImFontAtlas: Fixed memory leak if stbtt_InitFont() returned false. ()
omar d513546325 Merge branch 'master' into navigation
omar 5b062c4c29 Fixed typos
omar d2c65aa3e8 Examples: DirectX9/10/11: Tweak usage of SetCapture/ReleaseCapture. ()
ps: DirectX 12 example () may want to adopt that as well.
omar 0260fdd1c6 ColorButton: As a small convenience, provide a text baseline.
omar e9ff7162bc ColorButton: Fixed rendering color button with a checkerboard if the transparency comes from the global style.Alpha and not from the actual source color.
omar de72e9cc87 Internals: ImLerp() helper for ImVec4
omar f6ff373b22 Nav: #define IMGUI_HAS_NAV to ease sharing code across branches of imgui
omar 97bf2131e2 Fixed calling SetNextTreeNodeOpen() on a collapsed window leaking to next frame.
omar 20983773f1 Nav: MainMenuBar now releases focus when user gets out of the menu layer. WindowingTarget when applying focus to a window with only menus automatically sets the layer. ()
This is enough for basic mouse/gamepad usage, but 1- previous window gets an unfocused title bar color temporarily, 2- generaly for gamepad and especially keyboard we need much more to get this done right
omar 025d4f0c97 Merge branch 'master' into navigation
# Conflicts:
#	imgui.cpp
omar e7922b3fa0 Factorized some code (+ declared as static function without namespace, a pattern with the Nav branch has started to use)
omar 2ef2c104a1 Begin: Minor tweaks
omar be12f8c55d Nav: Fixed handling of ImGuiNavInput_KeyMenu so it doesn't set g.NavWindowingTarget at all, reducing size effects + handling menu layer toggle on Alt Release ()
omar 6f0aa766e1 Nav: Added internal ImGuiNavReadMode_Released test for key releases.
omar d769e2515a Merge branch 'master' into navigation
omar 50f5be9266 Examples: GLFW+GL2/GL3: Minor tweaks, comments.
omar d6a9956781 Examples: DirectX9/10/11: Added WM_SYSKEYDOWN / WM_SYSKEYUP handlers so e.g. VK_MENU can be read.
omar c14a66970b Examples: DirectX9/10/11: Renamed WndProc handler to use a generic Win32 name + returning 0 to all messages is more correct.
omar cb10da02f9 Merge branch 'Gargaj-patch-1'
omar a96f095deb Examples: DirectX10, DirectX11: Using SetCapture/ReleaseCapture to get correct behavior ()
ps: DirectX 12 example () may want to adopt that as well.
omar 3e0765ee22 Examples: DirectX9: Using SetCapture/ReleaseCapture to get correct behavior ()
omar e03198bb0f Fixed compilation for + coding style fixes.
omar c36e7fae93 Merge branch 'patch-1' of https://github.com/Gargaj/imgui into Gargaj-patch-1
omar 1bc1751670 MenuItem(): Tweaks to mimic exact spacing of BeginMenu() when inside a menu bar, which is a little misleading imho but may be useful. ()
omar b177f2432d MenuItem(): Tweak to not draw over all horizontal space when in horizontal layout mode. ()
omar b52e207758 Merge branch 'inolen-atlas_build_clear_font'
omar 7f880674e5 Font: Renamed ImFont::Clear() to ImFont::ClearOutputData() for consistency with what ImFontAtlas does. DisplayOffset is set by constructor but not reset by ClearOutputData. ()
omar fce41d0b55 Demo: Fixed Fonts "set as default button" not having collading id on collapsed nodes.
omar 08e411c310 Merge branch 'atlas_build_clear_font' of https://github.com/inolen/imgui into inolen-atlas_build_clear_font
omar 5fa81f2a26 Nav: Added ImGuiNavInput_KeyMenu aside from ImGuiNavInput_PadMenu as it is one differenciator between pad and keyboard that's very annoying with the keyboard.
Remove the move/resize behavior that appears than holding the button for a while. ()
omar 1c5b3fb1d2 Merge branch 'master' into navigation
omar f7259e60ee Comments
omar 23b9060468 Nav: Honoring ImGuiItemFlags_NoNav which is used by color picker ()
omar e4bb9102f9 Merge branch 'master' into navigation
omar 6ab737a4bb Popups: Fixed right-click to close popups not handling modal windows properly. (~#439)
omar aca23fd3f0 Popups: similarly to previous commit, we fix reopening a popup within a popup stack from truncating the whole stack. This is done by properly refocusing the lower level popup. (~#439)
omar 59a89774d7 Popups: fixed CloseInactivePopups() so that right-clicking to close one level of popups in a popups stack won't close the whole stack. This is done by properly refocusing the lower level popup. Fixes 87ae40843c (~#439)
omar 43df7eb5ea Added OpenPopupOnItemClick(); helper which mimic BeginPopupContextItem() but doesn't do the open.
Made the color popups uses this standard function so they handle reopening a context menu.
omar 0ea66dc260 Fixed bad merge from Master
omar 1172ff62e1 Merge branch 'master' into navigation
# Conflicts:
#	imgui.cpp
#	imgui.h
#	imgui_demo.cpp
#	imgui_internal.h
omar 3cc10d25a9 BeginPopupContextItem(), BeginPopupContextWindow(): Using newly introduced IsItemHovered() flags to allow reopening another context menu (over same or not same item) with right-click. () (+1 squashed commits)
omar 695ea45fca IsWindowHovered(): Changed default behavior to now return false is a widget from another window is active + Added support for ImGuiHoveredFlags_AllowWhenBlockedByActiveItem. (relate to drag'n drop idoms: )