Skip to content

UI.IntSlider

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

A numeric slider.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   .ui-draw-queue
   (UI.CentralPanel
    (->
     (UI.IntSlider
      :Variable .int
      :Min 1 :Max 100)
     (ExpectInt))))

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

 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   .ui-draw-queue
   (UI.CentralPanel
    (->
     (UI.IntSlider
      :Label "My Label"
      :Style {:color (color 255 128 64) :italics true}
      :Variable .int
      :Min 1 :Max 100)
     (ExpectInt))))

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