Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 680 Bytes

hoverable.md

File metadata and controls

32 lines (25 loc) · 680 Bytes
redirect_to layout tags title
page
api
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.