display-test/components/components.go
2024-09-22 21:53:22 +03:00

21 lines
234 B
Go

package components
// Some general types
type rect struct {
x int
y int
w int
h int
}
type RectGetter interface {
GetPos() (int, int)
GetSize() (int, int)
}
type RectSetter interface {
SetPos(x, y int)
SetSize(w, h int)
}