This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
tomo-old/element.go

16 lines
494 B
Go

package tomo
import "git.tebibyte.media/sashakoshka/tomo/artist"
// Element represents a basic on-screen object. Extended element interfaces are
// defined in the ability module.
type Element interface {
// Draw causes the element to draw to the specified canvas. The bounds
// of this canvas specify the area that is actually drawn to, while the
// Entity bounds specify the actual area of the element.
Draw (artist.Canvas)
// Entity returns this element's entity.
Entity () Entity
}