Control.dropData

Godot calls this method to pass you the data from a control's getDragData result. Godot first calls canDropData to test if data is allowed to drop at position where position is local to this control.

More...
struct Control
@nogc nothrow
void
dropData
(
VariantArg1
)
(
in Vector2 position
,
in VariantArg1 data
)

Detailed Description

func can_drop_data(position, data): return typeof(data) == TYPE_DICTIONARY and data.has("color")

func drop_data(position, data): color = data"color"

Meta