33e13c85e1
Backends: Made all backends sources files support global IMGUI_DISABLE. (#6601)
ocornut2023-07-13 11:27:52 +02:00
6888e6cdff
ImDrawData: call _PopUnusedDrawCmd() later. as RenderDimmedBackgrounds() rely on a valid command being there (especially in docking branch). (#6406, #4879, #1878)
ocornut2023-07-12 18:22:34 +02:00
dbeeeae593
ImDrawData: Slight refactor so internal logic uses same logic as AddDrawList(). (#6406, #4879, #1878)
ocornut2023-07-12 17:31:50 +02:00
cc4c37dbac
Nav: PageUp/PageDown always set NavJustMovedTo even when landing on same spot (which can trigger a selection).
ocornut2023-07-11 16:46:35 +02:00
b7cdb5a31e
Scrollbar: layout needs to take account of window border size, so a border size will slightly reduce scrollbar size. (#2522)
ocornut2023-07-11 15:00:51 +02:00
5ce636b0ba
Tweak to accomodate for build* directories anywhere.
ocornut2023-07-10 12:15:00 +02:00
140726d23f
Fixed CTRL+Tab dimming background assert when target window has a callback in the last ImDrawCmd. (#4857, #5937)
ocornut2023-07-10 15:10:42 +02:00
b32ef809c3
InputText: Fixed a case where deactivation frame would write to underlying buffer or call CallbackResize although unnecessary, in a frame where the return value was false.
ocornut2023-07-06 19:32:28 +02:00
3349296370
InputText: Tweak ImGuiInputTextFlags_EscapeClearsAll handling so decision is taken on input buffer + Showcase a few more InputText() flags. (#5688, #2620)
ocornut2023-07-06 19:27:23 +02:00
1029f57b8a
Inputs, Tooltip: Rework stationary timer logic as it broke on high-framerates with lower rate of mouse inputs. (#1485)
ocornut2023-07-03 12:17:23 +02:00
64172685d6
InputText: ImGuiInputTextCallbackData::InsertChars() accept (NULL,NULL) range, in order to conform to common idioms. (#6565, #6566, #3615)
ocornut2023-07-03 11:58:17 +02:00
655aae5911
Comments + docs: tidying up todo list + demo tweak for tooltips.
ocornut2023-06-28 16:01:01 +02:00
a02315e1c4
Combo: Made simple/legacy Combo() function not returns true when picking already selected item. (#1182)
ocornut2023-06-28 15:47:10 +02:00
6137443d24
Overlap: moved ImGuiItemflags_AllowOverlap handling from ButtoBehavior() to ItemHoverable() now that it is possible. (#6512, #3909, #517)
ocornut2023-06-28 13:51:50 +02:00
4dee919bc0
(Breaking) Internals: added ImGuiItemFlags param to ItemHoverable(), so it can be called from ButtonBehavior() not following an ItemAdd().
ocornut2023-06-28 13:47:57 +02:00
10c7709f30
Overlap: IsItemHovered: Changed behavior to return false when querying an item using AllowOverlap mode. Added ImGuiHoveredFlags_AllowWhenOverlappedByItem, ImGuiHoveredFlags_AllowWhenOverlappedByWindow., (#6512, #3909, #517)
ocornut2023-06-27 14:58:40 +02:00
8439a73645
Overlap: Added 'SetNextItemAllowOverlap()' as a replacement for 'SetItemAllowOverlap()'. (#6512, #3909, #517)
ocornut2023-06-26 15:00:51 +02:00
a9a5cbf431
Overlap: Internals: add NextItemData.ItemFlags to facilitate implementation of SetNextItemAllowOverlap() + potentially remove extra_flags from ItemAdd(). (#6512, #3909)
ocornut2023-06-26 13:46:40 +02:00
07e24b4058
ButtonBehavior: pull ImGuiButtonFlags_Repeat from ImGuiItemFlags_ButtonRepeat, matching ItemHoverable() logic. So more widgets can take advantage of Repeat logic.
ocornut2023-06-26 17:09:46 +02:00
3ec128c5fd
Selectable, TreeNode: When using ImGuiSelectableFlags_AllowOverlap/ImGuiTreeNodeFlags_AllowOverlap and holding item held, overlapping widgets won't appear as hovered. (#6512, #3909)
ocornut2023-06-26 14:47:05 +02:00
cada78917c
Tables: removed misleading, seemingy useless use of ImGuiButtonFlags_AllowtemOverlap in TableUpdateBorders(). (#6512, #3909)
ocornut2023-06-26 18:12:37 +02:00
0a53b45858
CollapsingHeader/TreeNode: Fixed text padding when using _Framed+_Leaf flags. (#6549)
ocornut2023-06-26 11:14:51 +02:00
6b2e03c5b1
GetKeyName(): Fixed assert with ImGuiMod_XXX values when IMGUI_DISABLE_OBSOLETE_KEYIO is set.
ocornut2023-06-22 22:02:31 +02:00
94c46d7486
InputText: Fixed not returning true when buffer is cleared by ImGuiInputTextFlags_EscapeClearsAll. (#5688, #2620)
ocornut2023-06-21 14:20:13 +02:00
cb5542bce5
Backends: OpenGL3: Fixed erroneous use glGetIntegerv(GL_CONTEXT_PROFILE_MASK) on contexts lower than 3.2. (#6539, #6333)
ocornut2023-06-20 15:30:52 +02:00
d4b94bd65b
(Breaking) Moved io.HoverDelayShort/io.HoverDelayNormal to style.HoverDelayShort/style.HoverDelayNormal. (#1485)
ocornut2023-06-20 14:38:48 +02:00
15d74bad1d
Internals: Tooltips: renamed internal flags (expecting to expose later when we publish priority stuff).
ocornut2023-06-16 13:28:54 +02:00
89d3dabf2e
Modals: In the case of nested modal, made sure that focused or appearing windows are moved below the lowest blocking modal (rather than the highest one). (#4317)
ocornut2023-06-14 21:58:28 +02:00
eec344cc1e
Tweak HoverDelayClearTimer. Not exposing since I am unsure logic is viable (and is rather complex with upcoming addition of stationary logic). (#1485)
ocornut2023-06-14 17:39:26 +02:00
6cabad6e7a
Encode version string in binary to facilitate identification when demo/tools are striped + amend About window.
ocornut2023-06-14 16:13:01 +02:00
534340cd88
Tooltips: Tweak default offset for non-drag and drop tooltips.
ocornut2023-06-13 15:27:46 +02:00
e95d66faa8
Clipper: Rework inner logic to allow functioning with a zero-clear constructor. (#5856)
ocornut2023-06-13 14:55:02 +02:00
9c16976749
Debug Tools: Added 'io.ConfigDebugIniSettings' option to save .ini data with extra comments.
ocornut2023-06-13 11:47:22 +02:00
3cc9d2051a
Examples: Win32+OpenGL3: Fixed not calling DefWindowProcW() as with other Win32 examples. (#6516, #5725, #5961, #5975)
ocornut2023-06-13 11:22:32 +02:00
884e3fd21f
Backends: GLFW: Accept glfwGetTime() not returning a monotonically increasing value. (#6491, #6189, #6114)
ocornut2023-06-12 11:58:17 +02:00
dec082ff97
Backends: OpenGL3: Fixed support for glBindSampler() backup/restore on ES3. (#6375, #6508)
ocornut2023-06-12 11:44:48 +02:00
4fab72b40e
BeginChild/Tables: Fixed BeginChild temporary activation id collision. Fixes regression in 1.89.6 leading to the first column of tables with either ScrollX or ScrollY flags from being impossible to resize. (#6503)
ocornut2023-06-09 14:01:21 +02:00
a134892a3d
BeginComboPreview: fix when part of preview rect is clipped by parent window. (#6501, #1658)
ocornut2023-06-09 13:41:11 +02:00
666b93e989
Demo: fixed a misuse of EndChildFrame(). (#6496)
ocornut2023-06-07 13:43:56 +02:00
956a1a17fb
Internals: add ImGuiNavMoveFlags_NoSelect and use in FocusItem().
ocornut2023-06-01 15:49:34 +02:00
31f11cf304
Internals: Added FocusItem(). Made activation explicit/opt-in via ImGuiNavMoveFlags_Activate. Rename ActivateItem() to ActivateItemByID().
ocornut2023-06-01 15:17:37 +02:00
216ae7db52
Examples: SDL3: Added clues that Emscripten doesn't support SDL3 yet. (#6386)
ocornut2023-05-30 19:53:20 +02:00
7e03ae3240
Window: Fixed resizing from upper border when io.ConfigWindowsMoveFromTitleBarOnly is set. (#6390)
ocornut2023-05-25 15:22:25 +02:00
7947f327de
Demo: added casing swap demo to clarify use of ImGuiInputTextFlags_CallbackCharFilter. (#6457) + Metrics: simplified some code.
ocornut2023-05-23 20:10:00 +02:00
47579f8a40
Nav: set NavJustMovedToXXX fields on NavInit result + BeginChild() clears ActiveId on N+1 on entering instead of waiting for ID to elapse on N+2.
ocornut2023-05-23 16:26:52 +02:00
52e19113f3
Backends: OpenGL3: Added more explicit comments about using GL ES2/3 on targets where it's not automatic. (#6450)
ocornut2023-05-23 11:43:16 +02:00
08145bc45c
Fonts: Fixed crash when merging fonts and the first font has no valid glyph. (#6446)
ocornut2023-05-23 10:55:10 +02:00
45c8c3b611
Listbox: commented out obsolete/redirecting functions that were marked obsolete more than two years ago: ListBoxHeader(), ListBoxFooter().
ocornut2023-05-22 10:09:20 +02:00
430c05991c
Docs: added more detailed information about UTF-8 encoding.
ocornut2023-05-10 12:54:51 +02:00
513af1efc9
Examples: Updated all Visual Studio project file to use /utf-8 option, so string literals are UTF-8 encoded by default.
ocornut2023-05-10 12:34:11 +02:00