Skip to content

v0.4.3 - Updated Drag and Drop **Breaking Changes**

Compare
Choose a tag to compare
@mcarpenter622 mcarpenter622 released this 21 Mar 02:00
· 218 commits to master since this release

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.