ocornut
17a7084b57
Menus: Fixed crash when navigating left inside a child window inside a sub-menu. ( #4510 ).
3 years ago
ocornut
321b84f01f
Internals: refactored IsWindowHovered()/IsWindowFocused() to make their logic more similar + change underlying value of ImGuiHoveredFlags_AllowWhenBlockedByPopup + comment out docking only flags.
3 years ago
ocornut
d9b427cce0
Nav: clarified/renamed NavInputId as NavAcivateInputId, added flags shared by both.
(this commit should have no visible side effect but is designed to introduce the followup commit refactoring SetKeyboardFocusHere into using a Nav request)
3 years ago
ocornut
755bf985d2
Backends: OpenGL3: Made our custom GL loader a bit more tolerant of use of another loader in same compilation unit. ( #4445 , #4514 )
3 years ago
ocornut
607ad8c949
Drag and Drop: Fixed using BeginDragDropSource() within a Begin()/BeginChild() that returned false. ( #4515 ) + BeginDragDropTarget()
Note how 79ae6d3b
adedd a SkipItems test in BeginDragDropTargetCustom() only.
Catching this similar to work needed to neatly represent the error in #4375 #4158 , #4008 , #2562
3 years ago
ocornut
bd6c9e99fc
InputText: Allow cancelling/validating input with gamepad nav events.
Amend 158995f2
(#2321 )
3 years ago
ocornut
0a154b30ad
Nav, ButtonBehavior: reworked old code which ended up 1) calling SetActiveId repeately and 2) misleadingly set g.NavActivateId (amend af38749e
)
3 years ago
ocornut
ade4c15eea
Nav: Tidying up, renaming + update AnyRequest flag in NavMoveRequestSubmit().
3 years ago
ocornut
528104a89b
Menus: adjust closing logic to accomodate for varying font size and dpi + remove seemingly redundant use of g.NavActivateId where pressed was enough.
3 years ago
ocornut
5ee40c8d34
Nav: always disable highlight if nav is disabled, fix for IMGUI_DEBUG_NAV_SCORING, minor renaming.
3 years ago
ocornut
dff15acdb5
Nav: Fixed toggling menu layer with Alt exiting menu layer with Esc not moving mouse when NavEnableSetMousePos config flag is set.
3 years ago
ocornut
3d9d3b49ae
Internals: folded ImGuiItemAddFlags into ImGuiItemFlags. ImGuiItemAddFlags_Focusable > ImGuiItemFlags_Inputable. One step in the big nav/tab/focus rework.
Bonus simplified Selectable() handling of its custom disabled flag. (#211 )
3 years ago
ocornut
73a5e82e04
Nav: removed parameters from NavScoreItem(), NavProcessItem(), NavApplyItemToResult(): made little sense / misleading because pulling from other current state anyway.
Will readd in a more thorough manner is actually needed.
3 years ago
ocornut
a735a8c084
Nav: storing NavRect in LastItemData. Fix race condition where framed items (Rect != NavRect) calling SetFocusID() would store the wrong NavRectRel until next frame
(haven't dugged in the possible side-effects of that race condition)
3 years ago
ocornut
ee351d3548
Nav: move code into NavMoveRequestSubmit(). NavApplyItemToResult() takes absolute rect., comments
3 years ago
ocornut
7b913db1ce
Nav: split NavMoveRequest into NavMoveSubmitted + NavMoveScoringItems to allow operation to defer a move request and provide result immediately + fix regular scoring needlesly running during init + some renaming.
3 years ago
Filippo Crocchini
eb6c16d3dd
PlotHistogram: Fixed zero-line position when manually specifying min<0 and max>0. ( #4349 )
+ amended demo tweaks by ocornut
3 years ago
Jackamilio
03ce17f0a5
Backends: Allegro: Fixed clipping rectangles ( #4498 ) broken by 2b0bd40b
( #4464 )
3 years ago
ocornut
7c4ffe490d
Menus: added internal's BeginMenuEx() matching MenuItemEx() with icon parameter. (amend f8fae022
)
3 years ago
ocornut
4aea1c5adb
IO: added io.WantCaptureMouseAllowPopupClose ( #4480 ) + comments
3 years ago
ocornut
66102880a3
Updated links to Discussions
3 years ago
ocornut
333807b483
Windows: fixed background order of overlapping childs submitted sequentially. ( #4493 )
Amend 07704496
3 years ago
ocornut
11103f8253
Examples: SDL+OpenGL3: fixed build on ES2 target. ( #4492 )
3 years ago
ocornut
bb6a60b1ff
Nav: extracted sections of NavUpdate() into a NavUpdateCreateMoveRequest() function. Only clearing results when a request is activated.
3 years ago
ocornut
ccfb20095e
Nav: small refactor of forwarding, clarified that MoveDir only set when RequestActive, removed one indent level in NavUpdatePageUpPageDown().
3 years ago
ocornut
4351febe9f
Nav: moved enums/struct declarations in imgui_internal.h
3 years ago
ocornut
20a1edef89
Nav: made EndMenuBar() use NavMoveRequestForward() for consistency. Moved forward clearing to NavMoveRequestApplyResult(). Improved/fixed comments.
3 years ago
Rokas Kupstys
b08ed61907
CI: Build with empty IM_ASSERT() macro.
3 years ago
ocornut
84890a3074
Nav: simplify wrap requests code (may soon be useable for tabbing)
3 years ago
ocornut
4c31c98d22
Nav: extracted code out of NavUpdate() into NavUpdateCancelRequest()
3 years ago
Cort
80ed4eba87
Backends: Vulkan: non-dispatchable handles should compare to VK_NULL_HANDLE, not NULL ( #4475 )
3 years ago
ocornut
780c1ee265
TextUnformatted: Accept null ranges including (NULL,NULL) without asserting. ( #3615 )
3 years ago
Rokas Kupstys
2b0bd40b99
Backends: Metal: Fixed a crash when clipping rect larger than framebuffer is submitted. ( #4464 )
Backends: Normalize clipping rect handling across backends.
+ Squashed amends.
3 years ago
Siarhei Fiedartsou
f8bad7e1e3
Backends: OpenGL3: Add TargetConditionals.h ( #4473 ) + standardize include
3 years ago
ocornut
4a7c21d330
Fonts: Fixed ImFontAtlas::ClearInputData() marking atlas as not built. ( #4455 , #3487 )
3 years ago
Corentin Wallez
e652527313
Backends: WebGPU: Update impl_wgpu for an emscripten change
3 years ago
ocornut
51d841dcf3
Fix warnings and remove IM_RETURN ( #4470 )
Amend f24abbc4
3 years ago
Rokas Kupstys
4c22b3e5d9
Backends: OpenGL3: Fix gl3wProcs colliding with gl3w. ( #4445 )
3 years ago
ocornut
0608887fb5
InputTextMultiline: Fixed label size not being included into window contents rect unless the whole widget is clipped.
3 years ago
ocornut
68f428b449
imgui_freetype: Fixed crash when FT_Render_Glyph() returns NULL (which apparently happens with Freetype 2.11). ( #4394 , #4145 ?)
3 years ago
ocornut
6afe9bbb45
Projects: added GLFW Vulkan to default solution.
3 years ago
ocornut
e23bee353c
Removed GetWindowContentRegionWidth() function
3 years ago
ocornut
0649f750b4
Version 1.85 WIP
3 years ago
Nicolas Noble
e3e1fbcf02
Backends: OpenGL3: OpenGL: Fixed ES 3.0 shader ("#version 300 es") to use normal precision floats. ( #4463 )
3 years ago
ocornut
d79ca9b0b6
Fixed nested BeginDisabled()/EndDisabled() calls. ( #211 , #4452 , #4453 , #4462 ) [Legulysse]
3 years ago
ocornut
e6ffc04291
Moved ImDrawIdx declaration higher up in imgui.h (to ease work for dear_bindings)
Shuffled low-level data types declarations and tweaked comments
3 years ago
ocornut
32d4f6c5d9
Fix BeginDisabled(false), again, ( #211 , #4452 , #4453 ) Version 1.84.1
(forced pushed since our earlier versioning didn't sort correctly in github web)
3 years ago
ocornut
f969e68c10
Fix BeginDisabled(false), ( #211 , #4452 )
3 years ago
ocornut
d2ffbd9b86
Version 1.84
Fix PVS Studio false positive //-V1020
Fix missing #ifndef for IMGUI_IMPL_OPENGL_LOADER_CUSTOM path
3 years ago
Rokas Kupstys
fc062e6028
Backends: OpenGL3: Update loader to include APIs used by test framework.
3 years ago