blooblib/gui/widget.go

19 lines
295 B
Go
Raw Normal View History

2024-03-25 01:55:14 +01:00
package gui
import . "git.danitheskunk.com/squishy/blooblib"
type BaseWidget struct {
childs []*Widget
parent *Widget
Pos Vec2i
Size Vec2i
}
type Widget interface {
Draw(target *Image)
Layout()
}
func (w *BaseWidget) Draw(target *Image) {}
func (w *BaseWidget) Layout() {}