mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 04:31:06 +01:00 
			
		
		
		
	Drag and Drop: Exposed some internals.
This commit is contained in:
		| @@ -673,7 +673,6 @@ static bool             DataTypeApplyOpFromText(const char* buf, const char* ini | ||||
|  | ||||
| namespace ImGui | ||||
| { | ||||
| static void             ClearDragDrop(); | ||||
| static void             FocusPreviousWindow(); | ||||
| } | ||||
|  | ||||
| @@ -11151,7 +11150,7 @@ void ImGui::Value(const char* prefix, float v, const char* float_format) | ||||
| // DRAG AND DROP | ||||
| //----------------------------------------------------------------------------- | ||||
|  | ||||
| static void ImGui::ClearDragDrop() | ||||
| void ImGui::ClearDragDrop() | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|     g.DragDropActive = false; | ||||
| @@ -11340,6 +11339,12 @@ bool ImGui::BeginDragDropTarget() | ||||
|     return true; | ||||
| } | ||||
|  | ||||
| bool ImGui::IsDragDropPayloadBeingAccepted() | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|     return g.DragDropActive && g.DragDropAcceptIdPrev != 0; | ||||
| } | ||||
|  | ||||
| const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags) | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user