4d8c56c813
Internals, TreeNode: indent all render block into its own scope (aim is to add a is_visible test there later)
ocornut2024-07-24 13:40:23 +02:00
fe09ebbe0a
Backends: OpenGL3: Fixed unsupported option warning with apple clang (#7810)
CyaoandGitHub2024-07-22 21:10:35 +02:00
605c8d7110
Demo: Property Editor: using ImGuiChildFlags_NavFlattened now that a bug is fixed. Fixed static analyzer.
ocornut2024-07-22 15:05:15 +02:00
97ff9bd370
Nav: fixed c licking window decorations (e.g. resize borders) from losing focused item when within a child window using ImGuiChildFlags_NavFlattened.
ocornut2024-07-22 15:04:25 +02:00
b6e313bc05
MultiSelect: using ImGuiMultiSelectFlags_NoRangeSelect ensure never having to interpolate between two ImGuiSelectionUserData.
ocornut2024-07-19 16:42:06 +02:00
168ef39984
Demo: moved menu bar code to its own function.
ocornut2024-07-19 15:46:51 +02:00
57eea6746e
Demo: moved some fields inside a struct.
ocornut2024-07-19 15:34:48 +02:00
2546d0a0db
Demo: moved ExampleTreeNode, ExampleMemberInfo above in the demo file. Tidying up index.
ocornut2024-07-19 12:35:57 +02:00
2697cfe354
MultiSelect: Box-Select: uses SetActiveIdUsingAllKeyboardKeys() to avoid nav interference, much like most drag operations.
ocornut2024-06-28 19:11:05 +02:00
7d4de84ee3
MultiSelect: added courtesy ImGuiMultiSelectFlags_NavWrapX flag so we can demo this until a nav api is designed.
ocornut2024-06-28 19:01:18 +02:00
d411c9054a
MultiSelect: minor tidying up.
ocornut2024-06-28 18:36:53 +02:00
a8a1f29512
MultiSelect: (breaking) renamed ImGuiMultiSelectFlags_BoxSelect -> ImGuiMultiSelectFlags_BoxSelect2d. Which include not assuming one flag imply the other.
ocornut2024-06-26 20:26:06 +02:00
c52346850d
MultiSelect: ImGuiSelectionBasicStorage: added PreserveOrder, maintain implicit order data in storage.
ocornut2024-06-26 18:41:21 +02:00
df664329cb
MultiSelect: provide RangeDirection to allow selection handler to handler backward shift+click.
ocornut2024-06-26 18:29:30 +02:00
3ac367ff41
MultiSelect: ImGuiSelectionBasicStorage: (breaking) rework GetNextSelectedItem() api to avoid ambiguity/failure when user uses a zero id.
ocornut2024-06-26 17:00:52 +02:00
f472f17054
Demo: Assets Browser: added a way to disable sorting and hide sorting options.
ocornut2024-06-11 20:56:41 +02:00
c07864f64a
MultiSelect: ImGuiSelectionBasicStorage: move function bodies to cpp file.
ocornut2024-06-11 19:45:21 +02:00
2af3b2ac81
MultiSelect: ImGuiSelectionBasicStorage: simplify by removing compacting code (compacting may be opt-in?).
ocornut2024-06-11 18:50:30 +02:00
e61612a687
MultiSelect: ImGuiSelectionBasicStorage: rework to accept massive selections requests without flinching.
ocornut2024-06-11 18:26:22 +02:00
e1fd25051e
MultiSelect: ImGuiSelectionBasicStorage: added GetNextSelectedItem() to abstract selection storage from user. Amend Assets Browser demo to handle drag and drop correctly.
ocornut2024-06-11 17:14:00 +02:00
c3d7aa252b
MultiSelect: comments, header tweaks., simplication (some of it on wiki).
ocornut2024-06-06 14:40:57 +02:00
c94cf6f01f
MultiSelect: added ImGuiSelectionBasicStorage::GetStorageIdFromIndex() indirection to be easier on the reader.
ocornut2024-06-05 17:16:06 +02:00
ab995d3d4f
MultiSelect: (breaking) Added 'items_count' parameter to BeginMultiSelect(). Will enable extra features, and remove equivalent param from ImGuiSelectionBasicStorage::ApplyRequests(.
ocornut2024-06-05 17:04:55 +02:00
443b034895
MultiSelect: mark parent child window as navigable into, with highlight. Assume user will always submit interactive items.
ocornut2024-06-04 15:10:07 +02:00
2f56df4839
MultiSelect: (breaking) renamed ImGuiSelectionBasicStorage::AdapterData to UserData.
ocornut2024-05-30 18:44:57 +02:00
1113f13f83
MultiSelect: Box-Select: fixed "when dragging from void" implementation messing with calling BeginMultiSelect() without a selection size.
ocornut2024-05-31 20:18:57 +02:00
81548cb6bf
MultiSelect: added GetMultiSelectState() + store LastSelectionSize as provided by user, convenient for quick debugging and testing.
ocornut2024-05-29 15:22:32 +02:00
dc0a1682e3
MultiSelect: Box-Select: when dragging from void, first hit item sets NavId by simulating a press, so navigation can resume from that spot.
ocornut2024-05-29 15:01:52 +02:00
65ebc0513b
MultiSelect: Box-Select: minor refactor, tidying up.
ocornut2024-05-29 14:33:41 +02:00
9435a3185a
RangeSelect/MultiSelect: (Breaking) Added current_selection_size to BeginMultiSelect().
ocornut2023-12-19 14:06:58 +01:00
955210ae5b
MultiSelect: Demo: use Shortcut().
ocornut2024-05-23 18:56:31 +02:00
0be238ec58
MultiSelect: Box-Select: fix preventing focus. amend determination of scope_hovered for decorated/non-child windows + avoid stealing NavId. (#7424)
ocornut2024-04-18 15:35:29 +02:00
a639346fba
MultiSelect: Demo: make various child windows resizable, with synched heights for the dual list box demo.
ocornut2024-03-07 15:52:30 +01:00
2111e3597b
MultiSelect: Comments + tweaked location for widgets to test ImGuiItemFlags_IsMultiSelect to avoid misleading into thinking doing it before ItemAdd() is necessary.
ocornut2024-03-06 15:33:50 +01:00
dbc67bbf23
MultiSelect: Simplified ImGuiSelectionBasicStorage by using a single SetItemSelected() entry point.
ocornut2024-03-06 15:04:03 +01:00
f36a03c317
MultiSelect: (Breaking) merge ImGuiSelectionRequestType_Clear and ImGuiSelectionRequestType_SelectAll into ImGuiSelectionRequestType_SetAll., rename ImGuiSelectionRequest::RangeSelected to Selected.
ocornut2024-03-06 14:22:38 +01:00
b13a78e6b2
MultiSelect: Fixed ImGuiMultiSelectFlags_SelectOnClickRelease over tree node arrow.
ocornut2024-01-12 12:05:03 +01:00
9337151a01
MultiSelect: Box-Select: Fixed initial drag from not claiming hovered id, preventing window behind to move for a frame.
ocornut2024-01-04 20:05:05 +01:00
f3d77d8e71
MultiSelect: Box-Select: Further refactor to extra mode code away from multi-select function into box-select funcitons.
ocornut2023-12-20 22:34:50 +01:00
907268a430
MultiSelect: Box-Select: Fixed scrolling on high framerates.
ocornut2023-12-20 22:31:07 +01:00
75bac1aac6
MultiSelect: Box-Select: Refactor into its own structure, designed for single-instance but closer to being reusable outside Multi-Select.
ocornut2023-12-20 22:07:28 +01:00
15391762dd
MultiSelect: Box-Select: Added ImGuiMultiSelectFlags_BoxSelect2d support. Enabled in Asset Browser. Selectable() supports it.
ocornut2023-12-20 21:14:09 +01:00
1ac469b50f
MultiSelect: Box-Select: Fixed holes when using with clipper (in 1D list.)
ocornut2023-12-20 11:34:25 +01:00
7546a2d345
MultiSelect: Demo: Assets Browser: track scrolling target so we can roughly land on hovered item.
ocornut2023-12-12 17:26:02 +01:00
750e23998f
MultiSelect: Demo: Assets Browser: added deletion support. Store ID in selection. Moved QueueDeletion to local var to emphasis that this is a user extension.
ocornut2023-12-06 16:55:55 +01:00
51fe0bfcf6
MultiSelect: reworked comments in imgui.h now that we have our own section.
ocornut2023-12-05 18:36:00 +01:00
0f633c1d99
MultiSelect: move demo's ExampleSelection to main api as a convenient ImGuiSelectionBasicStorage for basic users.
ocornut2023-12-01 17:49:47 +01:00
e0282347db
MultiSelect: remove ImGuiSelectionRequest/ImGuiMultiSelectIO details from public api to reduce confusion + comments.
ocornut2023-12-01 15:03:43 +01:00
0af6fbb51d
MultiSelect: added support for nested/stacked BeginMultiSelect().
ocornut2023-10-26 17:20:33 +02:00
c3998b70cc
MultiSelect: clarified purpose and use of IsItemToggledSelection(). Added assert. Moved to multi-selection section of imgui.h.
ocornut2023-09-21 20:40:21 +02:00
82de6c470b
MultiSelect: Added ImGuiMultiSelectFlags_SelectOnClickRelease to allow dragging an unselected item without altering selection + update drag and drop demo.
ocornut2023-08-31 15:50:01 +02:00
5628dda5a5
MultiSelect: move shared logic to MultiSelectItemHeader().
ocornut2023-08-31 15:03:51 +02:00
9da4efed2a
MultiSelect: moved RequestClear output so it'll match request list version better. Use Storage->RangeSrcItem in EndMultiSelect().
ocornut2023-08-29 18:53:58 +02:00
a6f43dfadd
MultiSelect: ImGuiMultiSelectIO's field are not used during loop anymore, stripping them out of comments.
ocornut2023-08-29 18:18:24 +02:00
dce02f5c4b
Demo: Dual List Box: Added a dual list box (6648)
ocornut2023-08-23 15:53:50 +02:00
ba698df7bb
MultiSelect: Demo: Deletion: Various renames to clarify. Use adapter and item list in both ApplyDeletion functions.
ocornut2023-08-28 16:33:30 +02:00
e1d2109208
MultiSelect: Demo: Deletion: Rework ApplyDeletionPreLoop to use adapter + fix PostLoop not using right value of RequestFocusItem.
ocornut2023-08-23 16:48:04 +02:00