1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-10-31 16:27:18 -04:00
OpenDiablo2/d2render/d2ui/widget.go

17 lines
325 B
Go
Raw Normal View History

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