Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Commit f2dd146

Browse files
committed
name slider argument
1 parent bec40fe commit f2dd146

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/interaction/gui.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ TODO add description
3838
## Theme
3939
$(ATTRIBUTES)
4040
"""
41-
@recipe(Slider) do scene
41+
@recipe(Slider, range) do scene
4242
Theme(
4343
value = 0,
4444
start = automatic,
@@ -152,6 +152,11 @@ function dragslider(slider, button)
152152
end
153153
end
154154

155+
"""
156+
move!(slider::Slider, idx::Integer)
157+
158+
Moves the slider to the position of slider.range[idx].
159+
"""
155160
function move!(x::Slider, idx::Integer)
156161
r = x[1][]
157162
len = x[:sliderlength][] - x[:buttonsize][]
@@ -161,7 +166,7 @@ function move!(x::Slider, idx::Integer)
161166
return
162167
end
163168

164-
export move! # TODO move to AbstractPlotting?
169+
export move!
165170

166171
"""
167172
Button

0 commit comments

Comments
 (0)