mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
50 lines
3.4 KiB
C#
50 lines
3.4 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
public partial class ImGui
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L780">imgui.h:780</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7715">imgui_widgets.cpp:7715</see>
|
|
/// <br/>
|
|
/// <c>ImGuiMultiSelectIO* BeginMultiSelect(ImGuiMultiSelectFlags flags, int selection_size = -1, int items_count = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImGuiMultiSelectIO* BeginMultiSelect(
|
|
ImGuiMultiSelectFlags flags,
|
|
int selection_size,
|
|
int items_count
|
|
);
|
|
}
|
|
}
|
|
}
|