v0.4.3 - Updated Drag and Drop **Breaking Changes**
v0.4.3 Updates Drag and Drop to be more functional.
Changes include:
- A new interface for the DnD Content object:
type DragContentsEnder interface {
// arg1 - Drop was successful
// arg2 - Source Widget
// arg3 - DragData
EndDrag(bool, HasWidget, interface{})
}
- Updated type DragContentsCreater Create method to take a "HasWidget" interface instead of a *Widget
- Updated type DragContentsUpdater Create method to take a "HasWidget" interface instead of a *Widget
- Added a new method to the UI object:
func (u *UI) GetFocusedWidget() widget.Focuser {
See the TextInput example to see its usage.