1
0
mirror of https://github.com/ocornut/imgui.git synced 2025-02-02 12:37:20 +01:00

1839 Commits

Author SHA1 Message Date
ocornut
dfd1bc3c5b Tables, Menus: Fixed using BeginTable() in menu layer (any menu bar). (#8355) 2025-01-29 19:05:18 +01:00
ocornut
4230e98720 Error Handling, Debug Log: IMGUI_DEBUG_LOG_ERROR() doesn't need the extra variable.
Amend 236006152
2025-01-28 14:39:10 +01:00
ocornut
ea0da0bf47 Extracted PushPasswordFont() out of InputText code. 2025-01-27 18:04:44 +01:00
ocornut
9c4948a4d1 TabBar: Internals: added TabItemSpacing(). (#8349, #3291) 2025-01-27 15:41:24 +01:00
ocornut
a05d547ae8 Windows: separating WindowItemStatusFlags from ChildItemStatusFlag, because IsItemXXX _after_ BeginChild()>Begin() shouldn't return last status emitted by e.g. EndChild()
As IsItemXXX() after is specced as returning title bar data we don't want to lock ourselves up from adding them to child window (e.g. MDI idea using windows to host child windows).
2025-01-27 14:39:26 +01:00
ocornut
134fbe1245 Windows: Fixed IsItemXXXX() functions not working on append-version of EndChild(). (#8350)
Also made some of the fields accessible after BeginChild() to match Begin() logic.
2025-01-27 12:41:31 +01:00
ocornut
5a28f188ff Fixed parameter names to SetLastItemData() to align with current names. 2025-01-27 12:27:15 +01:00
ocornut
8a1613a382 Fonts: OversampleH/OversampleV value defaults to 0 for automatic selection. 2025-01-24 19:32:30 +01:00
David Maas
2af26b75d1 ColorEdit, ColorPicker: Fixed alpha preview broken in 1.91.7. (#8336, #8241). [@PathogenDavid]
ImAlphaBlendColors() was broken by ImLerp() change. (cd6c83c)
2025-01-21 14:26:00 +01:00
ocornut
f2262eb81a Windows: latch FontRefSize at time of Begin(), consistent with e.g. TitleBarHeight, and to avoid calling CalcFontSize() on non-current window. 2025-01-16 19:46:54 +01:00
ocornut
b7c27c5333 Windows: legacy SetWindowFontScale() is properly inherited by nested child windows. (#2701, #8138, #1018) 2025-01-16 19:08:39 +01:00
ocornut
0e21bde77b Misc shallow merge to reduce diff in other branches. 2025-01-15 14:00:03 +01:00
ocornut
c59a2267d0 Version 1.91.8 WIP 2025-01-15 11:58:47 +01:00
ocornut
5c1d2d1e4c Version 1.91.7 2025-01-14 13:29:25 +01:00
ocornut
a604d4f717 Fixed IsItemDeactivated(), IsItemDeactivatedAfterEdit() to work when interrupted before/after the active id is submitted. (#5184, #5904, #6766, #8303, #8004) 2025-01-13 14:09:41 +01:00
ocornut
a28ffa81c4 Docs: added more references to IsKeyDown(), InFlags. (#8317) 2025-01-13 13:35:26 +01:00
ocornut
80aafbc81b Data types: moved ImGuiDataType_String to public API as a convenience enum value only. (#8266) 2025-01-06 14:22:03 +01:00
ocornut
c147a59bb0 Clarified alternative for ImGuiButtonFlags_Repeat being ImGuiItemFlags_ButtonRepeat. (#8293) 2025-01-06 13:58:02 +01:00
ocornut
18929bd6d6 Internals: merge ScaleWindowsInViewport() from docking branch. 2024-12-20 23:26:21 +01:00
ocornut
eed9502795 Error Handling: Fixed bugs recovering from within a table that created a child window, and from nested child windows. (#1651) 2024-12-20 14:28:04 +01:00
Raffaello Bertini
cd6c83cdcc Fixes GCC warnings (#8241) 2024-12-18 17:58:19 +01:00
ocornut
32f11402f9 InputText: use TextSrc more consistently to facilitate accessing user buffer in text processing code. (#8242)
Followup to e900571
Removed SetClipboardText() trick used in abd07f6d (#7925)
2024-12-18 16:53:38 +01:00
ocornut
324d4bb140 InputText: calling ReloadUserBuf doesn't clear undo stack. (#2890) 2024-12-12 19:03:09 +01:00
ocornut
8237ab450e Drags, Sliders: store initial value on activation, as a convenience for some mods. (#8223) 2024-12-12 18:52:07 +01:00
ocornut
f9f4e22f6f InputText: some tidying up. (#7925) 2024-12-12 18:30:57 +01:00
ocornut
f25665f360 Version 1.91.7 WIP 2024-12-11 15:37:16 +01:00
ocornut
993fa34749 Version 1.91.6 2024-12-11 15:05:36 +01:00
ocornut
c3ffd4c53e Misc: Added IMGUI_USE_LEGACY_CRC32_ADLER to use old tables. (#8169, #4933) 2024-12-11 12:13:28 +01:00
ocornut
fce07bb1cb Don't enable SSE4 under Emscripten - Fix. (#8213, #8169, #4933) 2024-12-09 12:43:49 +01:00
slowriot
2671f68f7f Don't enable SSE4 under Emscripten (#8213, #8169, #4933)
Amend 326dc95f9
2024-12-09 12:14:43 +01:00
ocornut
3f3c62a3c9 ScrollbarEx: clarify use of flags and make them optional. (#8215) 2024-12-09 11:43:00 +01:00
Teselka
326dc95f9c Misc: use native crc32 instructions on SEE 4.2 targets. (#8169, #4933) 2024-11-27 12:23:27 +01:00
ocornut
20360e00ce Merge miscellaneous small changes to reduce drift with texture update branch.
- ImGuiDebugLogFlags_EventFont is yet unused.
2024-11-20 21:46:47 +01:00
ocornut
3381ab423b Version 1.91.6 WIP + fixed typo in tooltip. 2024-11-12 11:56:21 +01:00
ocornut
f401021d5a Version 1.91.5 2024-11-07 19:57:33 +01:00
ocornut
01d27a4acd Internals: added IM_LIKELY(), IM_UNLIKELY() helper macros (yet unused). Added ImFontGetCharAdvanceX() macro. 2024-11-07 19:33:25 +01:00
ocornut
63234f8dd0 InputText: Internals: rename CurLenA->TextLen, InitialTextA->TextToRevertTo.
Follow the refactors in #7925.
2024-11-05 11:32:02 +01:00
ocornut
be2d006e2e Align warning blocks. Removed -Wunused-function, -Wmissing-prototypes from imgui_internal.h
As supposedly they were for stb_textedit.h which is now moved to imgui_draw.cpp
2024-11-05 10:50:49 +01:00
Maya Warrier
88e232739b
Ignore clang warning Wnontrivial-memaccess (#8129)
Produced when memset(this, ..) is used on a non-trivially copyable type
2024-11-05 10:44:39 +01:00
ocornut
75f83de52a InputText: fixed a bug (regression in 1.91.2) where modifying text buffer within a callback would sometimes prevents further appending to the buffer. (#7925)
There's a confusion between TextA.Size and CurLenA we should be merging them.
Amend 19accb14a
2024-11-04 20:22:10 +01:00
ocornut
f37a9a27e5 Log/Capture: reworked scope + decorating menus, tabs. 2024-10-30 15:38:58 +01:00
ocornut
a4fcc93f4a Log/Capture: renaming ImGuiLogType to ImGuiLogFlags 2024-10-30 15:09:35 +01:00
ocornut
3b8c7d0326 Backends: Win32: rework to add ImGui_ImplWin32_WndProcHandlerEx() not using current context (experimental). (#8069, #6293, #5856, #586)
+ GetIOEx(). Amend fedf45c + cba656a. Amend 416cfdb9.
2024-10-28 17:22:17 +01:00
ocornut
41f02825fc Version 1.91.5 WIP 2024-10-23 12:16:28 +02:00
ocornut
83b64b8be2 Version 1.91.4 2024-10-18 21:45:36 +02:00
ocornut
ab9ce2a927 Nav: added io.ConfigNavCursorVisibleAuto, io.ConfigNavCursorVisibleAlways. (#1074, #2048, #7237, #8059, #3200, #787)
Note: the NavCursorHideFrames addition is to support 88a354585 even though ConfigNavCursorVisibleAlways is set.
2024-10-18 18:54:46 +02:00
ocornut
3982cb35dc Nav, Docs: consistently use "keyboard/gamepad" instead of sometimes "gamepad/keyboard". 2024-10-18 18:49:44 +02:00
ocornut
634a7ed988 Nav: added SetNavCursorVisible(). (#1074, #2048, #7237, #8059)
+ Further internal renaming for consistency.
2024-10-18 18:49:44 +02:00
ocornut
0bae2db77f Internals: (Breaking) renamed NavDisableMouseHover to NavHighlightItemUnderNav.
Considering adding NavHighlightItemUnderMouse as well, but would require to resolve quite a few ambiguities and for a feature we don't have yet.
2024-10-18 18:49:44 +02:00
ocornut
0536ace2b6 Internals: (Breaking) renamed RenderNavHighlight() to RenderNavCursor(), ImGuiNavHighlightFlags to ImGuiNavRenderCursorFlags. (#1074, #2048, #7237, #8059, #1712, #7370, #787)
+ referenced in #8057, #3882, #3411, #2155, #3351, #4722, #1658, #4050.
2024-10-18 18:49:43 +02:00