86afe966d3
Metrics: Fixed a crash when inspecting the individual draw command of a foreground drawlist.
Rokas Kupstysandocornut2021-08-17 15:28:43 +03:00
ff428f1d2f
Nav: Fix not clearing NavWindowingToggleLayer properly (old code left it to true, relied on Alt release only). Removed unnecessary KeyMenu_ from NavInput. (#4439, #787)
ocornut2021-08-17 12:46:26 +02:00
8fa502ca42
Nav: Alt doesn't toggle menu layer if other modifiers are held. (#4439)
ocornut2021-08-17 12:23:54 +02:00
f99fe72c42
Backends: Win32: Fixed keyboard modifiers being reported when host window doesn't have focus. (#2622)
ocornut2021-08-02 17:22:33 +02:00
2ad912bb85
Backends: Win32, SDL, GLFW: only honor io.WantSetMousePos when focused + fix GLFW uninstalling handler + tweaks to reduce branch drift with docking. (#787, #2445, #2696, #3751, #4377)
ocornut2021-08-02 15:48:20 +02:00
db686ad522
Backends: Win32: Mouse position is correctly reported when the host platform window is hovered but not focused. (#2445, #2696, #3751, #4377)
ocornut2021-07-29 19:38:33 +02:00
044fd0cd2d
Backends: GLFW: Mouse position is correctly reported when the host platform window is hovered but not focused. (#3751, #4377, #2445)
ocornut2021-07-29 18:59:45 +02:00
1cdd110eb4
Backends: SDL2: Mouse position is correctly reported when the host platform window is hovered but not focused. (#2445, #3751, #4377)
ocornut2021-07-29 18:21:08 +02:00
b846969fe1
Removed unnecessary line in Begin() + commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 + readded commented obsoleted function.
ocornut2021-07-26 11:48:47 +02:00
3e4c89051d
Popups: Fix OpenPopup() being called after BeginPopup() resulting in a failure to open a popup when focus is NULL. (#4308)
Rokas Kupstysandocornut2021-07-15 17:23:44 +03:00
c881667c00
Fix - amend 1ad1530 (range-select branch need the NextItemData in NavProcessItem)
ocornut2021-07-19 21:45:44 +02:00
90bf996e1a
Internals: widgets always read back from g.LastItemData.InFlags (so we can now modify per-item disable state more easily). (#211)
ocornut2021-07-19 21:17:34 +02:00
6b8a059fc9
Internals: moved LastItem data to a shared structure (instead of one per window)
ocornut2021-07-19 21:08:22 +02:00
1ad153056a
Internals: ItemAdd: set LastItemXXX fields before navigation calls + comments about io.IniFilename (#4294)
ocornut2021-07-19 19:10:14 +02:00
17ec4f1f6f
TestEngine, MenuItem: call IMGUI_TEST_ENGINE_ITEM_INFO() at the right stack level. (amend f8fae02)
ocornut2021-07-12 16:42:53 +02:00
fb4bbeb033
Disabled: fixed IsItemHovered() if popped disabled state after item, or when using Selectable_Disabled. (#211)
ocornut2021-07-09 19:54:23 +02:00
246ad6c03c
Disabled: items more consistently release active id if the active item got disabled. (#211) (amend 2952525)
ocornut2021-07-12 15:36:54 +02:00
638e1a721b
Disabled: fixed IsItemHovered() returning true on disabled item when navigated to. (#211)
ocornut2021-07-12 15:00:35 +02:00
5dd1e38b7a
Disabled: disabled items set HoveredId, allowing e.g. HoveredIdTimer to function. (#211, #3419) + Menus: fix hovering a disabled menu or menu item not closing other menus.
Rokas Kupstysandocornut2021-07-09 19:45:30 +02:00
cac869b333
Disabled: don't prevent Selectable() from being selected. (#211) + BeginMenu()/MenuItemEx() uses PushDisabled() the standard way.
ocornut2021-07-09 19:29:54 +02:00
29525255f3
Disabled items more consistently release active id if the active item got disabled. (#211)
ocornut2021-07-09 19:15:47 +02:00
ba1c8464ef
Internals: Removed ImGuiButtonFlags_Disabled (which had inconsistent behavior) in favor of ImGuiItemFlags_Disabled. Selectable()'s ImGuiSelectableFlags_Disabled now uses the later. (#211)
ocornut2021-07-09 19:04:41 +02:00
f6682404e1
InputInt/InputFloat: When used with Steps values and _ReadOnly flag, the step button look disabled. (#211)
ocornut2021-07-09 19:02:48 +02:00
97638bf977
BeginMenu: remove unnecessary call to ItemHoverable() which is already done by the Selectable() call.
ocornut2021-07-09 17:18:23 +02:00
4a100f7f11
Nav: Disabled items are not candidate for default focus. (#211, #787) + simplify handling of ImGuiButtonFlags_PressedOnDragDropHold path.
ocornut2021-07-09 16:31:40 +02:00
cc40ae2101
PushDisabled(): added bool + clarify support for stacked disabled (#211)
ocornut2021-07-08 19:21:59 +02:00
f8fae02270
Menus: rework to allow for an icon column (not yet exposed, but usable via internals) + fix menus being affected by style.SelectableTextAlign (#126)
ocornut2021-07-08 14:44:32 +02:00
30d164eb26
Backends: Win32: IME functions are disabled by default for non-Visual Studio compilers (MinGW etc.) (#2590, #738, #4185, #4301)
ocornut2021-07-08 14:23:31 +02:00
696d3e056e
Internals: Menus: Naming offset field + fix spacing/offset computation to handle more offsets.
ocornut2021-07-07 20:45:15 +02:00
3512f2c2c2
Internals: Menus: minor tidying up + renaming in ImGuiMenuColumns + removing extraneous offset field which is always zero + using smaller types.
ocornut2021-07-07 19:03:10 +02:00
baa4caf9e3
Backends: GLFW: Installing and exposed ImGui_ImplGlfw_MonitorCallback() for forward compatibility with docking branch.
ocornut2021-07-07 14:12:48 +02:00
d9b606672a
InputText: Fix handling of paste failure (buffer full) which in some cases could corrupt the undo stack. (#4038)
ocornut2021-07-05 17:48:19 +02:00
327a5d8253
Fix warning + apply trailing whitespaces in stb_ libs (as applied on nothings/stb on 2020/02/02, facilitating further diffs)
ocornut2021-07-05 16:46:12 +02:00
4ddb6b46c3
Drag and Drop: drop target highlight doesn't try to bypass host clipping rectangle. (#4281, #3272)
ocornut2021-06-30 16:11:52 +02:00
cf2daf353e
Backends: Cleanup, removed unnecessary create/destroy wrappers. Fix allegro5 backend + use same code as other backend.
ocornut2021-06-30 15:22:15 +02:00
23a15834fa
Fonts: Fix calling ClearTexData() (clearing CPU side font data) triggering an assert in NewFrame(). (#3487) + Backends: added additional assert to facilitate detecting user understand they haven't initialized a backend.
ocornut2021-06-29 17:53:41 +02:00
88f4c1321a
Examples: Bring code of example_apple_metal and example_apple_opengl2 closer to each other. (#1873, #3543)
rokupsandocornut2020-11-12 13:47:31 +02:00
0aeb978e61
Comments + adding spacing in headers because VS IDE parser display blocks so badly. Add helper in internal's ImGuiInputTextState. (#4275)
ocornut2021-06-28 11:16:43 +02:00
95db098477
ImFontAtlas: move implicit AddFontDefault call to Build() function + remove unnecessary asserts in backend.
ocornut2021-06-24 17:34:23 +02:00
9440974f66
Fonts: Add U+FFFD ("replacement character") to default asian glyphs ranges. Remove SetFallbackChar() (amend 0ffd99d31). (#4269)
ocornut2021-06-25 15:47:42 +02:00
38165f420f
Fonts: Prefer using U+FFFD character for fallback instead of '?'. Use U+FF0E dot character to construct an ellipsis if U+002E '.' is not available. (#4269)
ocornut2021-06-25 15:44:14 +02:00
8ced41570e
Backends: DX9: explicitely disable texture state stages after >= 1. (#4268) imgui only uses texture stage state for stage 0 But any state set in stages >= 1 will affect rendering Set stage 1 COLOROP to DISABLED, to deactivate stages >= 1
Anthonyandocornut2021-06-25 22:06:38 +12:00
30224fdde0
Examples: example_apple_opengl2: Fix keys remaining stuck in pressed state when using shortcuts with CMD. (#4253)
rokupsandocornut2021-06-25 11:43:30 +03:00
e534c56485
Fonts: Functions with a 'float size_pixels' parameter can accept zero if it is set in ImFontSize::SizePixels.
ocornut2021-06-24 15:57:41 +02:00
1965f38e9e
ImGuiWindowFlags_UnsavedDocument/ImGuiTabItmeFlags_UnsavedDocument display a dot instead of a '*'.
ocornut2021-06-24 14:30:32 +02:00
0b8a247074
Backends: OSX: Added a fix for shortcuts using CTRL key instead of CMD key. (#4253)
Rokas Kupstysandocornut2021-06-23 15:15:22 +03:00
f0c4d609a6
Default window focus scope not 0. Added ImGuiSelectableFlags_SelectOnNav with comments and caveats. (#1861, #4242,)
ocornut2021-06-21 17:37:37 +02:00
a15c42d5bd
Nav: moved RenderNavHighlight() calls of TreeNode and Selectable out of if (hovered || selected) tests. Should make no difference as NavId currently returns hovered. (#1861, #4242)
ocornut2021-06-21 16:58:38 +02:00
98a6292165
Backends: DX12: Fix texture casting crash on 32-bit systems (introduced on 2021/05/19 and v1.83) + added comments about building on 32-bit systems. (#4225)
ocornut2021-06-14 17:43:20 +02:00
61f4aec868
Added PushDisabled(), PopDisabled() currently only exposed in imgui_internal.h (#211)
ocornut2021-06-09 15:28:59 +02:00
b66529fe3e
Backends: Win32: Rework to handle certains Windows 8.1/10 features without a manifest. (#4200, #4191)
ocornut2021-06-08 18:35:35 +02:00
020d1ced1d
Examples: SDL2: Accomodate for vcpkg install having headers in SDL2/SDL.h vs SDL.h + vcpkg related comments.
ocornut2021-06-08 15:20:47 +02:00
7fc144edde
Examples: update all VS project files to VS2015. Update DX12 project Windows SDK to latest.
ocornut2021-06-08 13:06:21 +02:00
6ee398ac2b
Tables: Added ImGuiTableColumnFlags_Disabled acting a master disable over (hidden from user/context menu). (#3935, #3740)
ocornut2021-06-07 13:03:13 +02:00
b918751ff4
Tables: Clarified that TableSetColumnEnabled() requires the table to use the ImGuiTableFlags_Hideable flag. (#3935)
ocornut2021-06-07 13:20:25 +02:00
689e387180
Tables: offset and shuffle flags (breaks ABI compatibility as often)
ocornut2021-06-07 12:52:36 +02:00
642426c15b
Tables: Fix columns order on TableSetupScrollFreeze() if previous data got frozen columns out of their section.
ocornut2021-06-07 10:36:43 +02:00
2887a6e07d
Tables: made TableUpdateBorders() use IsVisibleX flag. comments.
ocornut2021-06-07 09:45:36 +02:00
1b4323a1b4
Tables: Added ImGuiTableColumnFlags_NoHeaderLabel to request TableHeadersRow() to not submit label for a column. (#4206)
ocornut2021-06-07 09:11:53 +02:00