mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 11:34:15 -04:00
13 lines
230 B
Go
13 lines
230 B
Go
package d2ui
|
|
|
|
// Widget defines an object that is a UI widget
|
|
type Widget interface {
|
|
Drawable
|
|
GetEnabled() bool
|
|
SetEnabled(enabled bool)
|
|
SetPressed(pressed bool)
|
|
GetPressed() bool
|
|
OnActivated(callback func())
|
|
Activate()
|
|
}
|