You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: imgui.h
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -967,11 +967,13 @@ namespace ImGui
967
967
// - An item can be both drag source and drop target.
968
968
IMGUI_API boolBeginDragDropSource(ImGuiDragDropFlags flags = 0); // call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource()
969
969
IMGUI_API boolSetDragDropPayload(constchar* type, constvoid* data, size_t sz, ImGuiCond cond = 0); // 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.
970
+
IMGUI_API boolAddDragDropPayload(constchar* type, constvoid* data, size_t sz); // Add another payload item to the current drag and drop operation. Return true when payload has been accepted.
970
971
IMGUI_API voidEndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true!
971
972
IMGUI_API boolBeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget()
972
973
IMGUI_API const ImGuiPayload* AcceptDragDropPayload(constchar* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released.
973
974
IMGUI_API voidEndDragDropTarget(); // only call EndDragDropTarget() if BeginDragDropTarget() returns true!
974
975
IMGUI_API const ImGuiPayload* GetDragDropPayload(); // peek directly into the current payload from anywhere. returns NULL when drag and drop is finished or inactive. use ImGuiPayload::IsDataType() to test for the payload type.
976
+
IMGUI_API boolAddDragDropPayload(constchar* type, constvoid* data, size_t sz); // Add another payload item to the current drag and drop operation. Return true when payload has been accepted.
975
977
976
978
// Disabling [BETA API]
977
979
// - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors)
0 commit comments