Ebitengine tool kit for creating graphical user interfaces
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
335 B

package etk
import (
"image"
"github.com/hajimehoshi/ebiten/v2"
)
type Widget interface {
Rect() image.Rectangle
SetRect(r image.Rectangle)
HandleMouse(cursor image.Point, pressed bool, clicked bool) (handled bool, err error)
HandleKeyboard() (handled bool, err error)
Draw(screen *ebiten.Image) error
Children() []Widget
}