2019-10-25 22:40:27 +00:00
|
|
|
package UI
|
|
|
|
|
|
|
|
import (
|
2019-11-02 21:38:39 +00:00
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/Common"
|
2019-10-25 22:40:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Widget defines an object that is a UI widget
|
|
|
|
type Widget interface {
|
|
|
|
Common.Drawable
|
2019-10-26 02:20:36 +00:00
|
|
|
GetEnabled() bool
|
|
|
|
SetEnabled(enabled bool)
|
2019-10-26 03:41:54 +00:00
|
|
|
SetPressed(pressed bool)
|
|
|
|
GetPressed() bool
|
|
|
|
OnActivated(callback func())
|
|
|
|
Activate()
|
2019-10-25 22:40:27 +00:00
|
|
|
}
|