mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
42 lines
2.1 KiB
C#
42 lines
2.1 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>
|
|
/// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for
|
|
/// dear imgui internal types. Data is copied and held by imgui. Return true when payload has been
|
|
/// accepted.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L997">imgui.h:997</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15309">imgui.cpp:15309</see>
|
|
/// <br/>
|
|
/// <c>bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Drag and Drop
|
|
/// - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource().
|
|
/// - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget().
|
|
/// - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725)
|
|
/// - An item can be both drag source and drop target.
|
|
/// </code>
|
|
/// <para>
|
|
/// Use 'cond' to choose to submit payload on drag start or every frame
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 SetDragDropPayload(byte* type, void* data, nuint sz, ImGuiCond cond);
|
|
}
|
|
}
|
|
}
|