Upgrade to v2.7
Fyne API v2.7
app
canvas
container
data/binding
data/validation
dialog
driver
package driver
AndroidContext
AndroidContext
AndroidWindowContext
AndroidWindowContext
MacWindowContext
MacWindowContext
NativeWindow
NativeWindow
UnknownContext
UnknownContext
WaylandWindowContext
WaylandWindowContext
WindowsWindowContext
WindowsWindowContext
X11WindowContext
X11WindowContext
driver/desktop
package desktop
App
App
Canvas
Canvas
Cursor
Cursor
Cursorable
Cursorable
CustomShortcut
CustomShortcut
Driver
Driver
Hoverable
Hoverable
Keyable
Keyable
Modifier
Modifier
Mouseable
Mouseable
MouseButton
MouseButton
MouseEvent
MouseEvent
StandardCursor
StandardCursor
driver/embedded
package embedded
CharacterEvent
Driver
Event
KeyDirection
KeyEvent
TouchDownEvent
TouchMoveEvent
TouchUpEvent
driver/mobile
package mobile
Device
Device
Driver
Driver
Keyboardable
Keyboardable
KeyboardType
KeyboardType
Touchable
Touchable
TouchEvent
TouchEvent
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "desktop.Hoverable"
desktop.Hoverable
import "fyne.io/fyne/v2/driver/desktop"
Usage
type Hoverable
type Hoverable interface {
// MouseIn is a hook that is called if the mouse pointer enters the element.
MouseIn(*MouseEvent)
// MouseMoved is a hook that is called if the mouse pointer moved over the element.
MouseMoved(*MouseEvent)
// MouseOut is a hook that is called if the mouse pointer leaves the element.
MouseOut()
}
Hoverable is used when a canvas object wishes to know if a pointer device moves over it.