mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-10 06:16:27 -05:00
2461142fbd
* Minor changes to reduce interdependencies on modules.
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()
|
|
}
|