diff --git a/ui/widgets/tappablewrappers.go b/ui/widgets/tappablewrappers.go index 218449a..9842bdb 100644 --- a/ui/widgets/tappablewrappers.go +++ b/ui/widgets/tappablewrappers.go @@ -22,6 +22,8 @@ func NewTappbaleIcon(res fyne.Resource) *TappableIcon { return icon } +var _ fyne.Tappable = (*TappableIcon)(nil) + func (t *TappableIcon) Tapped(_ *fyne.PointEvent) { if t.OnTapped != nil { t.OnTapped() @@ -31,6 +33,14 @@ func (t *TappableIcon) Tapped(_ *fyne.PointEvent) { func (t *TappableIcon) TappedSecondary(_ *fyne.PointEvent) { } +var _ desktop.Hoverable = (*TappableIcon)(nil) + +func (t *TappableIcon) MouseIn(*desktop.MouseEvent) {} + +func (t *TappableIcon) MouseOut() {} + +func (t *TappableIcon) MouseMoved(*desktop.MouseEvent) {} + func (t *TappableIcon) Cursor() desktop.Cursor { return desktop.PointerCursor }