class
UIng::Drop::Handler
- UIng::Drop::Handler
- Reference
- Object
Overview
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.
Defined in:
uing/drop/handler.crConstructors
Instance Method Summary
- #accepts : Format
- #clear_drop : Nil
- #clear_leave : Nil
- #clear_over : Nil
- #drop(&block : Proc(Target, Event, Bool)) : Nil
- #drop(callback : Nil) : Nil
-
#leave(&block : Proc(Target, Nil)) : Nil
Ends hover feedback.
- #leave(callback : Nil) : Nil
-
#over(&block : Proc(Target, Info, Bool)) : Nil
Metadata only: filenames and text are available in drop, not over.
- #over(callback : Nil) : Nil
-
#to_unsafe : Pointer(LibUI::DropHandler)
The target retains the callback context; active calls retain their Proc.
Constructor Detail
Instance Method Detail
Ends hover feedback. It may precede a successful drop and is not a cancellation or destruction notification.
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.
The target retains the callback context; active calls retain their Proc. Native retirement stops new calls. ReleaseUserData remains unused.