mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-19 02:46:35 -05:00
17 lines
292 B
Go
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()
|
|
}
|