...

Source file src/code.rocketnine.space/tslocum/etk/widget.go

Documentation: code.rocketnine.space/tslocum/etk

     1  package etk
     2  
     3  import (
     4  	"image"
     5  
     6  	"github.com/hajimehoshi/ebiten/v2"
     7  )
     8  
     9  type Widget interface {
    10  	Rect() image.Rectangle
    11  	SetRect(r image.Rectangle)
    12  	HandleMouse(cursor image.Point, pressed bool, clicked bool) (handled bool, err error)
    13  	HandleKeyboard() (handled bool, err error)
    14  	Draw(screen *ebiten.Image) error
    15  	Children() []Widget
    16  }
    17  

View as plain text