// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi { public partial class ImGui { public unsafe partial class PInvoke { /// /// /// C++: /// imgui.h:780 /// , /// imgui_widgets.cpp:7715 ///
/// ImGuiMultiSelectIO* BeginMultiSelect(ImGuiMultiSelectFlags flags, int selection_size = -1, int items_count = -1) ///
///
/// /// /// Multi-selection system for Selectable(), Checkbox(), TreeNode() functions [BETA] /// - This enables standard multi-selection/range-selection idioms (CTRL+Mouse/Keyboard, SHIFT+Mouse/Keyboard, etc.) in a way that also allow a clipper to be used. /// - ImGuiSelectionUserData is often used to store your item index within the current view (but may store something else). /// - Read comments near ImGuiMultiSelectIO for instructions/details and see 'Demo->Widgets->Selection State & Multi-Select' for demo. /// - TreeNode() is technically supported but... using this correctly is more complicated. You need some sort of linear/random access to your tree, /// which is suited to advanced trees setups already implementing filters and clipper. We will work simplifying the current demo. /// - 'selection_size' and 'items_count' parameters are optional and used by a few features. If they are costly for you to compute, you may avoid them. /// /// /// Return ImGuiMultiSelectIO structure. /// Lifetime: don't hold on ImGuiMultiSelectIO* pointers over multiple frames or past any subsequent call to BeginMultiSelect() or EndMultiSelect(). /// Passing 'selection_size' and 'items_count' parameters is currently optional. /// - 'selection_size' is useful to disable some shortcut routing: e.g. ImGuiMultiSelectFlags_ClearOnEscape won't claim Escape key when selection_size 0, /// allowing a first press to clear selection THEN the second press to leave child window and return to parent. /// - 'items_count' is stored in ImGuiMultiSelectIO which makes it a convenient way to pass the information to your ApplyRequest() handler (but you may pass it differently). /// - If they are costly for you to compute (e.g. external intrusive selection without maintaining size), you may avoid them and pass -1. /// - If you can easily tell if your selection is empty or not, you may pass 0/1, or you may enable ImGuiMultiSelectFlags_ClearOnEscape flag dynamically. /// /// [LibraryImport("imgui")] public static unsafe partial ImGuiMultiSelectIO* BeginMultiSelect( ImGuiMultiSelectFlags flags, int selection_size, int items_count ); } } }