1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-09 03:37:17 -05:00
OpenDiablo2/UI/Widget.go

17 lines
287 B
Go
Raw Normal View History

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)
2019-10-25 23:41:54 -04:00
SetPressed(pressed bool)
GetPressed() bool
OnActivated(callback func())
Activate()
}