summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'button.go')
-rw-r--r--button.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/button.go b/button.go
index f0b9f30..7f15d25 100644
--- a/button.go
+++ b/button.go
@@ -11,20 +11,20 @@ type Button struct {
// Clicked gets a message when the button is clicked.
// You cannot change it once the Window containing the Button has been created.
// If you do not respond to this signal, nothing will happen.
- Clicked chan struct{}
+ Clicked chan struct{}
- lock sync.Mutex
- created bool
- sysData *sysData
- initText string
+ lock sync.Mutex
+ created bool
+ sysData *sysData
+ initText string
}
// NewButton creates a new button with the specified text.
func NewButton(text string) (b *Button) {
return &Button{
- sysData: mksysdata(c_button),
- initText: text,
- Clicked: newEvent(),
+ sysData: mksysdata(c_button),
+ initText: text,
+ Clicked: newEvent(),
}
}
@@ -67,11 +67,11 @@ func (b *Button) make(window *sysData) error {
func (b *Button) setRect(x int, y int, width int, height int, rr *[]resizerequest) {
*rr = append(*rr, resizerequest{
- sysData: b.sysData,
- x: x,
- y: y,
- width: width,
- height: height,
+ sysData: b.sysData,
+ x: x,
+ y: y,
+ width: width,
+ height: height,
})
}