Implement hypertext (badly)
This commit is contained in:
15
internal/ui/static_element.go
Normal file
15
internal/ui/static_element.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"image"
|
||||
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
)
|
||||
|
||||
// A static element is not a widget; it merely displays some pixels and may
|
||||
// optionally have a tooltip for display within bounds
|
||||
type staticElement struct {
|
||||
bounds image.Rectangle
|
||||
image *ebiten.Image
|
||||
tooltip string
|
||||
}
|
Reference in New Issue
Block a user