mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
46 lines
2.9 KiB
C#
46 lines
2.9 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>
|
|
/// Was the last item selection state toggled? Useful if you need the per-item information _before_
|
|
/// reaching EndMultiSelect(). We only returns toggle _event_ in order to handle clipping correctly.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L783">imgui.h:783</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6371">imgui.cpp:6371</see>
|
|
/// <br/><c>bool IsItemToggledSelection()</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>
|
|
/// Call after a Selectable() or TreeNode() involved in multi-selection.
|
|
/// Useful if you need the per-item information before reaching EndMultiSelect(), e.g. for rendering purpose.
|
|
/// This is only meant to be called inside a BeginMultiSelect()/EndMultiSelect() block.
|
|
/// (Outside of multi-select, it would be misleading/ambiguous to report this signal, as widgets
|
|
/// return e.g. a pressed event and user code is in charge of altering selection in ways we cannot predict.)
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 IsItemToggledSelection();
|
|
}
|
|
}
|
|
}
|