You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: imgui.h
+3-1
Original file line number
Diff line number
Diff line change
@@ -2760,6 +2760,8 @@ struct ImColor
2760
2760
// SetRange requests will give you two end-points and you will need to iterate/interpolate between them to update your selection.
2761
2761
// - However it is perfectly possible to store a POINTER or another IDENTIFIER inside ImGuiSelectionUserData.
2762
2762
// Our system never assume that you identify items by indices, it never attempts to interpolate between two values.
2763
+
// - If you enable ImGuiMultiSelectFlags_NoRangeSelect then it is guaranteed that you will never have to interpolate
2764
+
// between two ImGuiSelectionUserData, which may be a convenient way to use part of the feature with less code work.
2763
2765
// - As most users will want to store an index, for convenience and to reduce confusion we use ImS64 instead of void*,
2764
2766
// being syntactically easier to downcast. Feel free to reinterpret_cast and store a pointer inside.
2765
2767
@@ -2769,7 +2771,7 @@ enum ImGuiMultiSelectFlags_
2769
2771
ImGuiMultiSelectFlags_None = 0,
2770
2772
ImGuiMultiSelectFlags_SingleSelect = 1 << 0, // Disable selecting more than one item. This is available to allow single-selection code to share same code/logic if desired. It essentially disables the main purpose of BeginMultiSelect() tho!
2771
2773
ImGuiMultiSelectFlags_NoSelectAll = 1 << 1, // Disable CTRL+A shortcut to select all.
2772
-
ImGuiMultiSelectFlags_NoRangeSelect = 1 << 2, // Disable Shift+selection mouse/keyboard support (useful for unordered 2D selection).
2774
+
ImGuiMultiSelectFlags_NoRangeSelect = 1 << 2, // Disable Shift+selection mouse/keyboard support (useful for unordered 2D selection). With BoxSelect is also ensure contiguous SetRange requests are not combined into one. This allows not handling interpolation in SetRange requests.
2773
2775
ImGuiMultiSelectFlags_NoAutoSelect = 1 << 3, // Disable selecting items when navigating (useful for e.g. supporting range-select in a list of checkboxes)
2774
2776
ImGuiMultiSelectFlags_NoAutoClear = 1 << 4, // Disable clearing selection when navigating or selecting another one (generally used with ImGuiMultiSelectFlags_NoAutoSelect. useful for e.g. supporting range-select in a list of checkboxes)
2775
2777
ImGuiMultiSelectFlags_NoAutoClearOnReselect = 1 << 5, // Disable clearing selection when clicking/selecting an already selected item
0 commit comments