class

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, &)
Source
new(accepts : Format = Format::All)
Source

Instance methods

accepts
Source
clear_drop
Source
clear_leave
Source
clear_over
Source
drop
Source
drop(callback : Nil) : Nil
Source
leave

Ends hover feedback. It may precede a successful drop and is not a cancellation or destruction notification.

Source
leave(callback : Nil) : Nil
Source
over

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.

Source
over(callback : Nil) : Nil
Source
to_unsafe

The target retains the callback context; active calls retain their Proc. Native retirement stops new calls. ReleaseUserData remains unused.

Source