mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-07 10:47:19 -05:00
17 lines
287 B
Go
17 lines
287 B
Go
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)
|
|
SetPressed(pressed bool)
|
|
GetPressed() bool
|
|
OnActivated(callback func())
|
|
Activate()
|
|
}
|