summaryrefslogtreecommitdiff
path: root/lineedit.go
diff options
context:
space:
mode:
Diffstat (limited to 'lineedit.go')
-rw-r--r--lineedit.go28
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,
})
}