about summary refs log tree commit diff
path: root/shell/structs/boundary.go
blob: b49c7a21e5c3d8a5c8ff827b2d1ad731f8fd1b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
}