Skip to content

UI.Int4Slider

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

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.Int4Slider
      :Variable .int4
      :Min (int4 1) :Max (int4 100))
     (ExpectInt4))))

  (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.Int4Slider
      :Label "My Label"
      :Style {:color (color 255 128 64) :italics true}
      :Variable .int4
      :Min (int4 1) :Max (int4 100))
     (ExpectInt4))))

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