1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-26 00:55:23 +00:00
OpenDiablo2/UI/Widget.go
2019-10-25 23:41:54 -04:00

17 lines
287 B
Go

package UI
import (
"github.com/essial/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()
}