can_drop


Description:

public virtual signal bool can_drop (Actor actor, float event_x, float event_y)

The can_drop signal is emitted when the dragged actor is dropped on actor.

The return value of the can_drop signal will determine whether or not the drop signal is going to be emitted on action.

The default implementation of DropAction returns true for this signal.

Parameters:

actor

the Actor attached to the action

event_x

the X coordinate (in stage space) of the drop event

event_y

the Y coordinate (in stage space) of the drop event

Returns:

true if the drop is accepted, and false otherwise