display-test/components/components.go

21 lines
234 B
Go
Raw Normal View History

2024-09-22 18:53:22 +00:00
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)
}