1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-10-31 08:17:21 -04:00
OpenDiablo2/UI/Widget.go
Tim Sarbin 1afd86005e
Changes necessary for migration to org account (#67)
* Replaced old repo path with org path.

* Added editorconfig. Fixed line endings to LF.

* Fixed travis build badge path
2019-11-02 17:38:39 -04:00

17 lines
292 B
Go

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)
SetPressed(pressed bool)
GetPressed() bool
OnActivated(callback func())
Activate()
}