0342a3c548
Menus: Implement BeginMenu() appending to existing menu when executed with same ID multiple times. (#1207)
Rokas Kupstysandocornut2020-02-28 15:50:44 +02:00
898e91f20d
Internals: Added TempInputText() to facilitate creation of custom widgets, renamed TempInputTextScalar() to TempInputScalar() etc. (#2718)
ocornut2020-02-25 16:26:30 +01:00
e547f898a9
Demo: Added color gradient in demo to identify srgb/linear issues better. Tweaks.
ocornut2020-02-24 12:44:19 +01:00
02a6c06080
Window: Fixed a bug with child window inheriting ItemFlags from their parent when the child window also manipulate the ItemFlags stack. (#3024) [@Stanbroek]
ocornut2020-02-18 14:25:50 +01:00
ea3fc76038
BeginMenu: Fixed a bug where SetNextWindowXXX data before a BeginMenu() would not be cleared when the menu is not open. (#3030)
Omar2020-02-18 12:49:02 +01:00
8836975dcf
Drag and Drop, Nav: Disabling navigation arrow keys when drag and drop is active. (#3025)
Omar2020-02-17 17:41:45 +01:00
b62f1ea8e9
Fix zealous PVS studio warnings. Minor tweaks.
Omar2020-02-17 16:07:46 +01:00
d37d25470a
Added IMGUI_DISABLE compile-time definition to make all headers and sources empty.
omar2020-02-09 17:06:58 +01:00
f694244dec
InputText: Fix using a combination of _CallbackResize + _EnterReturnsTrue + lack of persisting user storage. (#3009)
omar2020-02-04 15:19:49 +01:00
bdbb2b21f5
Fix 83efdcec from overflowing buffer + make it a single undo records + comments (#3008)
omar2020-02-03 16:37:54 +01:00
83efdcec8d
Canceling text input with [esc] key uses stb_textedit facilities to restore original value. This makes restoration undoable using hotkeys.
Rokas Kupstysandomar2020-02-03 10:29:08 +02:00
fc42528f13
When testing for the presence of the ImGuiWindowFlags_NoBringToFrontOnFocus flag we test both the focused/clicked window (which could be a child window) and the root window.
omar2020-01-31 18:28:25 +01:00
fc41839cab
Focus: Reworking FocusWindow() so in Docking branch we can fix CTRL+Tab being out of order on Docked windows because WindowsFocusOreder is poorly maintained.
omar2020-01-31 18:27:40 +01:00
fb257eef3e
Internals: Update ->RootWindow and other links before applying the SetNextWindowXXX stuff. This is so FocusWindow() can always assume that ->RootWindow != NULL.
omar2020-01-31 17:43:35 +01:00
d9bca0d853
Nav: Fixed a bug where the initial CTRL-Tab press while in a child window sometimes selected the current root window instead of always selecting the previous root window. (#787)
omar2020-01-31 14:17:43 +01:00
d19297e2fa
InputTextMultiline: Provide label to BeginChildEx so internal window name hold a little more context.
omar2020-01-31 14:10:43 +01:00
0a23582718
Examples: VS projects: Removed inconsistent/extraneous explicit linkage to imm32.
omar2020-01-29 20:11:42 +01:00
0e89041997
Internals: ButtonEx, ButtonBehavior can support multiple mouse buttons.
omar2020-01-29 16:35:30 +01:00
5f4dfad5b7
Merge misc/shallow changes from Docking to reduce drift.
omar2020-01-28 20:06:34 +01:00
6c1a73774d
Tooltip: Testing DragDropWithinSourceOrTarget in BeginTooltipEx() instead of just BeginTooltip() - feel this was an overlook. Added tooltip flags instead of using bool.
omar2020-01-27 19:02:54 +01:00
15c6abe4be
Internals: Standard math functions default redirection uses a define instead of an extraneous inline function call
omar2020-01-20 11:48:17 +01:00
8bcac7d95c
Backends: GLFW, SDL: report Windows key (io.KeySuper) as always released.
omar2020-01-17 15:18:33 +01:00
e499497ec5
Backends: Win32: Added support for io.KeySuper (Windows key) for consistency with other backends. (#2976)
omar2020-01-17 14:56:56 +01:00
2478dbfdb7
Disable warning C5054 introduced in VS 2019 16.2 (#2983)
omar2020-01-17 14:18:16 +01:00
aa34681652
Backends: GLFW: inhibit error callback when creating cursors because X11 setups may be missing them + comment (#2980)
omar2020-01-17 11:36:56 +01:00
9ad4c5da7e
Fix zealous warnings + Internals: Renamed members from XxxxID to XxxxxId to be more consistent with rest of the codebase (still some inconsistency left that are harder to fix)
omar2020-01-15 17:23:05 +01:00
2ebe08be40
Focus, Nav: Merged bits from RangeSelect features to enable early manipulation of focus scope for styling purpose.
omar2020-01-14 19:23:50 +01:00
4f7bf7e96a
Backends: Win32: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD and IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT. (#2716)
omar2020-01-14 14:58:32 +01:00
e2eb0b4bc4
Internals: Begin tries to setup WindowTemp/DC members in same order as their declaration. Readme: remove Coverity banner (PVS is better)
omar2020-01-13 15:36:24 +01:00
02c2d18aa3
Internals: Renaming and marking of legacy focus/tabbing system
omar2020-01-13 15:21:37 +01:00
52334ad8df
Internals: Minor ordering/comments of ImGuiWindowTempData.
omar2020-01-13 15:04:28 +01:00
f56962cb9a
ColorEdit: "Copy As" context-menu tool shows hex values with a '#' prefix instead of '0x' + both with/without alpha when available.
omar2020-01-13 14:09:42 +01:00
4b3c5ff5f1
Comments + minor moving
omar2020-01-11 15:35:39 +01:00
f03c00bc89
Added imgui_single_file.h, We use this to validate compiling all *.cpp in same compilation unit.
Rokas Kupstysandomar2020-01-10 19:36:26 +02:00
97a8dc6514
CI: Added PVS-Studio static analysis on the continuous-integration server.
Rokas Kupstysandomar2020-01-10 17:37:54 +02:00
4ee7aa72e9
ButtonBehavior: Default assignment of pressed behavior now also test for ImGuiButtonFlags_PressedOnDragDropHold which wasn't the case before.
omar2020-01-10 14:35:03 +01:00
dc66f83db8
Additional duplicated comments about usage of std::string and input text resize callback (#2006, #1443, #1008)
omar2019-12-25 17:46:35 +01:00
a610f1da52
Bezier Tweaks, fixed parameter order of 3831d50omar2019-12-17 16:24:50 +01:00
3831d50ab9
Add ImBezierClosestPoint() function which returns a point on bezier curve which is closed to a specified point.
Rokas Kupstysandomar2019-12-17 16:29:12 +02:00