diff options
Diffstat (limited to 'checkbox.go')
| -rw-r--r-- | checkbox.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/checkbox.go b/checkbox.go index e8fffe9..0bae487 100644 --- a/checkbox.go +++ b/checkbox.go @@ -8,18 +8,18 @@ import ( // A Checkbox is a clickable square with a label. The square can be either checked or unchecked. Checkboxes start out unchecked. type Checkbox struct { - lock sync.Mutex - created bool - sysData *sysData - initText string - initCheck bool + lock sync.Mutex + created bool + sysData *sysData + initText string + initCheck bool } // NewCheckbox creates a new checkbox with the specified text. func NewCheckbox(text string) (c *Checkbox) { return &Checkbox{ - sysData: mksysdata(c_checkbox), - initText: text, + sysData: mksysdata(c_checkbox), + initText: text, } } @@ -72,11 +72,11 @@ func (c *Checkbox) make(window *sysData) error { func (c *Checkbox) setRect(x int, y int, width int, height int, rr *[]resizerequest) { *rr = append(*rr, resizerequest{ - sysData: c.sysData, - x: x, - y: y, - width: width, - height: height, + sysData: c.sysData, + x: x, + y: y, + width: width, + height: height, }) } |
