OpenDiablo2/UI/Widget.go

17 lines
292 B
Go

package UI
import (
"github.com/OpenDiablo2/OpenDiablo2/Common"
)
// Widget defines an object that is a UI widget
type Widget interface {
Common.Drawable
GetEnabled() bool
SetEnabled(enabled bool)
SetPressed(pressed bool)
GetPressed() bool
OnActivated(callback func())
Activate()
}