Add cond=0 default to SetDragDropPayload

This commit is contained in:
Soreepeong 2025-08-09 10:14:30 +09:00
parent bd824130bd
commit b66860cdba

View file

@ -546,7 +546,7 @@ public static unsafe partial class ImGui
text.Recycle(); text.Recycle();
} }
public static bool SetDragDropPayload(ImU8String type, ReadOnlySpan<byte> data, ImGuiCond cond) public static bool SetDragDropPayload(ImU8String type, ReadOnlySpan<byte> data, ImGuiCond cond = ImGuiCond.None)
{ {
fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference()) fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference())
fixed (byte* dataPtr = data) fixed (byte* dataPtr = data)