summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2016-05-22 20:13:35 -0400
committerPietro Gagliardi <[email protected]>2016-05-22 20:13:35 -0400
commit8e729f3615082655b88af2154319412623b29ef2 (patch)
tree9ecf214b60c578e46a5ef3b8281f357f75ed5044
parent53cfaa35310e3a5829f874d34cfb5b02d4ec92f8 (diff)
Documented the new limit swapping of uiSlider and uiSpinbox.
-rw-r--r--slider.go2
-rw-r--r--spinbox.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/slider.go b/slider.go
index 74e07fb..99b8d2c 100644
--- a/slider.go
+++ b/slider.go
@@ -27,7 +27,7 @@ type Slider struct {
onChanged func(*Slider)
}
-// NewSlider creates a new Slider. TODO limits
+// NewSlider creates a new Slider. If min >= max, they are swapped.
func NewSlider(min int, max int) *Slider {
s := new(Slider)
diff --git a/spinbox.go b/spinbox.go
index 77cedf5..5e5e43f 100644
--- a/spinbox.go
+++ b/spinbox.go
@@ -27,7 +27,7 @@ type Spinbox struct {
onChanged func(*Spinbox)
}
-// NewSpinbox creates a new Spinbox. TODO limits
+// NewSpinbox creates a new Spinbox. If min >= max, they are swapped.
func NewSpinbox(min int, max int) *Spinbox {
s := new(Spinbox)