|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"go.wit.com/gui"
|
|
)
|
|
|
|
type Size interface {
|
|
Cpus() int
|
|
Memory() float64
|
|
Disk() float64
|
|
}
|
|
|
|
type Menu interface {
|
|
Widget() *gui.Node
|
|
}
|
|
|
|
type Draw interface {
|
|
Show() bool
|
|
Hide()
|
|
}
|
|
|
|
type Droplet interface {
|
|
Draw
|
|
Menu
|
|
Size
|
|
// Location
|
|
fmt.Stringer
|
|
}
|