diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-10 11:38:52 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-10 11:38:52 -0400 |
| commit | a3222f248d25f284d5f4b7c0626ab1140bb0db9a (patch) | |
| tree | 4b5a6f4665a44f30e106435b275ca1fcac196190 /lineedit.go | |
| parent | 37bc89fe52c8c6c4c56c4da69126f2d50101e194 (diff) | |
More go fmt.
Diffstat (limited to 'lineedit.go')
| -rw-r--r-- | lineedit.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lineedit.go b/lineedit.go index 2b679aa..17d0791 100644 --- a/lineedit.go +++ b/lineedit.go @@ -8,26 +8,26 @@ import ( // A LineEdit is a control which allows you to enter a single line of text. type LineEdit struct { - lock sync.Mutex - created bool - sysData *sysData - initText string - password bool + lock sync.Mutex + created bool + sysData *sysData + initText string + password bool } // NewLineEdit makes a new LineEdit with the specified text. func NewLineEdit(text string) *LineEdit { return &LineEdit{ - sysData: mksysdata(c_lineedit), - initText: text, + sysData: mksysdata(c_lineedit), + initText: text, } } // NewPasswordEdit makes a new LineEdit which allows the user to enter a password. func NewPasswordEdit() *LineEdit { return &LineEdit{ - sysData: mksysdata(c_lineedit), - password: true, + sysData: mksysdata(c_lineedit), + password: true, } } @@ -70,11 +70,11 @@ func (l *LineEdit) make(window *sysData) error { func (l *LineEdit) setRect(x int, y int, width int, height int, rr *[]resizerequest) { *rr = append(*rr, resizerequest{ - sysData: l.sysData, - x: x, - y: y, - width: width, - height: height, + sysData: l.sysData, + x: x, + y: y, + width: width, + height: height, }) } |
