summaryrefslogtreecommitdiff
path: root/combobox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-07 19:28:25 -0500
committerPietro Gagliardi <[email protected]>2014-03-07 19:28:25 -0500
commit9dc6e6f7b39e9a3615ce21e2e03f82315038a470 (patch)
treed5d1a8e6ecb94aace8db132c8a9738907f01c06e /combobox.go
parent48fc6fbeabaa7242c8e69e7e6037faa296a6c44d (diff)
Pinned (or marked for later pinninig) behavior of various controls; also improved Space()'s documentation.
Diffstat (limited to 'combobox.go')
-rw-r--r--combobox.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/combobox.go b/combobox.go
index 571bcba..cadce35 100644
--- a/combobox.go
+++ b/combobox.go
@@ -6,7 +6,7 @@ import (
"sync"
)
-// A Combobox is a drop-down list of items, of which only one can be selected at any given time. You may optionally make the combobox editable to allow custom items.
+// A Combobox is a drop-down list of items, of which at most one can be selected at any given time. You may optionally make the combobox editable to allow custom items. Initially, no item will be selected (and no text entered in an editable Combobox's entry field).
type Combobox struct {
// TODO Select event
@@ -53,7 +53,7 @@ func (c *Combobox) Append(what ...string) (err error) {
return nil
}
-// InsertBefore inserts a new item in the Combobox before the item at the given position.
+// InsertBefore inserts a new item in the Combobox before the item at the given position. (TODO action if before is out of bounds)
func (c *Combobox) InsertBefore(what string, before int) (err error) {
c.lock.Lock()
defer c.lock.Unlock()
@@ -68,7 +68,7 @@ func (c *Combobox) InsertBefore(what string, before int) (err error) {
return nil
}
-// Delete removes the given item from the Combobox.
+// Delete removes the given item from the Combobox. (TODO action if index is out of bounds)
func (c *Combobox) Delete(index int) error {
c.lock.Lock()
defer c.lock.Unlock()