zntg/ui/control.go
2020-05-15 19:00:43 +02:00

26 lines
405 B
Go

package ui
import (
"opslag.de/schobers/geom"
)
type Control interface {
Arrange(Context, geom.RectangleF32, geom.PointF32, Control)
DesiredSize(Context) geom.PointF32
Handle(Context, Event) bool
Render(Context)
Bounds() geom.RectangleF32
IsInBounds(p geom.PointF32) bool
IsOver() bool
Offset() geom.PointF32
Parent() Control
}
type RootControl interface {
Control
Init(Context) error
}