1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-04 17:27:16 -05:00
OpenDiablo2/d2render/d2ui/widget.go

17 lines
313 B
Go
Raw Normal View History

2019-11-10 08:51:02 -05:00
package d2ui
import (
2019-11-10 03:36:53 -05:00
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2interface"
)
// Widget defines an object that is a UI widget
type Widget interface {
2019-11-10 03:36:53 -05:00
d2interface.Drawable
GetEnabled() bool
SetEnabled(enabled bool)
2019-10-25 23:41:54 -04:00
SetPressed(pressed bool)
GetPressed() bool
OnActivated(callback func())
Activate()
}