UIng::Drop::Handler
Inherits Reference < Object
Shared drop callbacks receive their Window/Area target first. Configure and register on the UI thread; callback changes apply to all targets. Return true from over/drop to accept Copy/the drop.
Constructors
new(accepts : Format = Format::All, &)
Sourcenew(accepts : Format = Format::All)
SourceInstance methods
accepts
Sourceclear_drop
Sourceclear_leave
Sourceclear_over
Sourcedrop
Sourcedrop(callback : Nil) : Nil
Sourceleave
Ends hover feedback. It may precede a successful drop and is not a cancellation or destruction notification.
leave(callback : Nil) : Nil
Sourceover
Metadata only: filenames and text are available in drop, not over. Without this callback, compatible Copy offers are accepted while a drop callback is installed. Clearing drop also rejects hover offers.
over(callback : Nil) : Nil
Sourceto_unsafe
The target retains the callback context; active calls retain their Proc. Native retirement stops new calls. ReleaseUserData remains unused.