1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-01 00:37:18 -04:00
OpenDiablo2/UI/Widget.go

17 lines
292 B
Go
Raw Normal View History

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