1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00
OpenDiablo2/d2core/d2ui/widget.go
Tim Sarbin 2461142fbd
Minor changes to project layout (#276)
* Minor changes to reduce interdependencies on modules.
2020-01-31 23:18:11 -05:00

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()
}