From c4c15a00a7b50d18a113fb68bb1fe209fa544afc Mon Sep 17 00:00:00 2001 From: hanemile Date: Wed, 9 Jan 2019 21:26:24 +0100 Subject: overall push --- shell/structs/boundary.go | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 shell/structs/boundary.go (limited to 'shell/structs/boundary.go') diff --git a/shell/structs/boundary.go b/shell/structs/boundary.go new file mode 100644 index 0000000..b49c7a2 --- /dev/null +++ b/shell/structs/boundary.go @@ -0,0 +1,36 @@ +package structs + +type Boundary struct { + // boundary box values + x int64 + y int64 + width int64 +} + +func NewBoundary(x int64, y int64, width int64) *Boundary { + return &Boundary{x: x, y: y, width: width} +} + +func (b *Boundary) Width() int64 { + return b.width +} + +func (b *Boundary) SetWidth(width int64) { + b.width = width +} + +func (b *Boundary) Y() int64 { + return b.y +} + +func (b *Boundary) SetY(y int64) { + b.y = y +} + +func (b *Boundary) X() int64 { + return b.x +} + +func (b *Boundary) SetX(x int64) { + b.x = x +} -- cgit 1.4.1