Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
package driver
AndroidContext
AndroidWindowContext
MacWindowContext
NativeWindow
UnknownContext
WaylandWindowContext
WindowsWindowContext
X11WindowContext
driver/desktop
package desktop
App
Canvas
Cursor
Cursorable
CustomShortcut
Driver
Hoverable
Keyable
Modifier
Mouseable
MouseButton
MouseEvent
StandardCursor
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "desktop.Cursor"
desktop.Cursor
import "fyne.io/fyne/v2/driver/desktop"
Usage
type Cursor
type Cursor interface {
// Image returns the image for the given cursor, or nil if none should be shown.
// It also returns the x and y pixels that should act as the hot-spot (measured from top left corner).
Image() (image.Image, int, int)
}
Cursor interface is used for objects that desire a specific cursor.
Since:
2.0