2020-02-01 04:18:11 +00:00
|
|
|
package d2ui
|
2019-10-25 22:40:27 +00:00
|
|
|
|
2020-02-02 01:39:28 +00:00
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2core/d2render"
|
2019-10-25 22:40:27 +00:00
|
|
|
|
|
|
|
// Drawable represents an instance that can be drawn
|
|
|
|
type Drawable interface {
|
2020-02-02 01:39:28 +00:00
|
|
|
Render(target d2render.Surface)
|
2019-12-29 04:32:24 +00:00
|
|
|
Advance(elapsed float64)
|
2019-12-22 01:53:18 +00:00
|
|
|
GetSize() (width, height int)
|
|
|
|
SetPosition(x, y int)
|
|
|
|
GetPosition() (x, y int)
|
2019-10-25 22:40:27 +00:00
|
|
|
GetVisible() bool
|
2019-10-26 02:20:36 +00:00
|
|
|
SetVisible(visible bool)
|
2019-10-25 22:40:27 +00:00
|
|
|
}
|