...

Source file src/gitlab.com/tslocum/venture/pkg/world/node.go

Documentation: gitlab.com/tslocum/venture/pkg/world

     1  package world
     2  
     3  import (
     4  	"github.com/hajimehoshi/ebiten"
     5  )
     6  
     7  // Node is an object.
     8  type Node interface {
     9  	AddNode(Node)
    10  	HitTest(x float64, y float64) bool
    11  	Nodes() []Node
    12  	Update(screen *ebiten.Image) error
    13  	Draw(screen *ebiten.Image)
    14  }
    15  
    16  type HandlesHover interface {
    17  	Hover(x float64, y float64) bool
    18  }
    19  
    20  type HandlesMouseDown interface {
    21  	MouseDown(x float64, y float64, button ebiten.MouseButton) bool
    22  }
    23  
    24  type HandlesMouseUp interface {
    25  	MouseUp(x float64, y float64, button ebiten.MouseButton) bool
    26  }
    27  

View as plain text