summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-10 09:55:14 -0400
committerPietro Gagliardi <[email protected]>2014-06-10 09:55:14 -0400
commit43b3f1c2a8e62d3fa583af3ad5dde5f98daadc7e (patch)
tree1075d6d90e8e2ff99ff6c53a0499966bc2534a62 /window.go
parent7b2e6b7fa3799ce686dd7509cf9cf6d9b94c2835 (diff)
Partial go fmt. Will do the rest over the next few commits. While I'm not too happy about it, everyone else uses go fmt, and pull requests will be more convenient if I just do it. (Also do it now, because when I change the Windows backend things are going to change...)
Diffstat (limited to 'window.go')
-rw-r--r--window.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/window.go b/window.go
index e65d55d..02b33e9 100644
--- a/window.go
+++ b/window.go
@@ -12,25 +12,25 @@ type Window struct {
// Closing gets a message when the user clicks the window's close button.
// You cannot change it once the Window has been created.
// If you do not respond to this signal, nothing will happen; regardless of whether you handle the signal or not, the window will not be closed.
- Closing chan struct{}
+ Closing chan struct{}
- lock sync.Mutex
- created bool
- sysData *sysData
- initTitle string
- initWidth int
- initHeight int
- shownOnce bool
+ lock sync.Mutex
+ created bool
+ sysData *sysData
+ initTitle string
+ initWidth int
+ initHeight int
+ shownOnce bool
}
// NewWindow allocates a new Window with the given title and size. The window is not created until a call to Create() or Open().
func NewWindow(title string, width int, height int) *Window {
return &Window{
- sysData: mksysdata(c_window),
- initTitle: title,
- initWidth: width,
- initHeight: height,
- Closing: newEvent(),
+ sysData: mksysdata(c_window),
+ initTitle: title,
+ initWidth: width,
+ initHeight: height,
+ Closing: newEvent(),
}
}