mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 09:17:19 -04: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()
|
|
}
|