1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-16 00:08:29 -04:00
OpenDiablo2/ui/Widget.go

17 lines
292 B
Go
Raw Normal View History

2019-11-06 22:12:15 -05:00
package ui
import (
2019-11-06 22:12:15 -05:00
"github.com/OpenDiablo2/OpenDiablo2/common"
)
// Widget defines an object that is a UI widget
type Widget interface {
2019-11-06 22:12:15 -05:00
common.Drawable
GetEnabled() bool
SetEnabled(enabled bool)
2019-10-25 23:41:54 -04:00
SetPressed(pressed bool)
GetPressed() bool
OnActivated(callback func())
Activate()
}