Show tooltips when hovering
This commit is contained in:
@@ -13,8 +13,8 @@ import (
|
||||
// non-interactive areas are not widgets.
|
||||
type Widget struct {
|
||||
// Position on the screen in original (i.e., unscaled) coordinates
|
||||
Bounds image.Rectangle
|
||||
// Tooltip string // TODO: show the tooltip when hovering?
|
||||
Bounds image.Rectangle
|
||||
Tooltip string
|
||||
|
||||
OnHoverEnter func()
|
||||
OnHoverLeave func()
|
||||
|
Reference in New Issue
Block a user