Skip to content

UI.FloatSlider

Name - Description Default Type
<input> The value is ignored.
<output> The value produced. Float
Label The text label for this widget. none String
Style The text style. none {Any}Var({Any})
Variable The variable that holds the input value. none FloatVar(Float)
Min The minimum value. none FloatVar(Float)
Max The maximum value. none FloatVar(Float)

A numeric slider.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   (UI.CentralPanel
    (->
     (UI.FloatSlider
      :Variable .float
      :Min 0.0 :Max 1.0)
     (ExpectFloat))))

  (GFX.Render :Steps .render-steps)))