Synopsis
Details
void |
makeDraggable
|
(
actor,
|
| |  
params,
|
| |  
target
) |
Create an object which controls drag and drop for the given actor. @target has priority when finding a target to accept the drag actor. This can be used when the target cannot be reached.
If %manualMode is %true in @params, do not automatically start drag and drop on click
If %dragActorMaxSize is present in @params, the drag actor will be scaled down to be no larger than that size in pixels.
If %dragActorOpacity is present in @params, the drag actor will will be set to have that opacity during the drag.
Note that when the drag actor is the source actor and the drop succeeds, the actor scale and opacity aren't reset; if the drop target wants to reuse the actor, it's up to the drop target to reset these values.
actor
|
Source actor
|
params
|
(optional) Additional parameters
|
target
|
(optional) Actor that has priority as an accepting target
|