mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
76 lines
3.9 KiB
C#
76 lines
3.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>
|
|
/// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so
|
|
/// you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width.
|
|
/// size.y==0.0: use label height, size.y>0.0: specify height
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L770">imgui.h:770</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7126">imgui_widgets.cpp:7126</see>
|
|
/// <br/>
|
|
/// <c>bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0))</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Widgets: Selectables
|
|
/// - A selectable highlights when hovered, and can display another color when selected.
|
|
/// - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous.
|
|
/// </code>
|
|
/// <code>
|
|
/// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image.
|
|
/// But you need to make sure the ID is unique, e.g. enclose calls in PushID/PopID or use ##unique_id.
|
|
/// With this scheme, ImGuiSelectableFlags_SpanAllColumns and ImGuiSelectableFlags_AllowOverlap are also frequently used flags.
|
|
/// FIXME: Selectable() with (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 Selectable_0(
|
|
byte* label,
|
|
Bool8 selected,
|
|
ImGuiSelectableFlags flags,
|
|
float2* size
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// "bool* p_selected" point to the selection state (read-write), as a convenient helper.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L771">imgui.h:771</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7307">imgui_widgets.cpp:7307</see>
|
|
/// <br/>
|
|
/// <c>bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0))</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Widgets: Selectables
|
|
/// - A selectable highlights when hovered, and can display another color when selected.
|
|
/// - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 Selectable_1(
|
|
byte* label,
|
|
Bool8* p_selected,
|
|
ImGuiSelectableFlags flags,
|
|
float2* size
|
|
);
|
|
}
|
|
}
|
|
}
|