Skip to content

glgui verticalnumberwheel

Chris Petersen edited this page Oct 16, 2014 · 1 revision

glgui-verticalnumberwheel creates a vertically oriented number wheel widget. steps can be a list specifying strings to be drawn on the wheel or textures to be displayed on the wheel (for using icons). Also see (glgui-numberwheel) for the horizontal version.

Parameter Description
g Graphical User Interface (GUI) for this widget
x Lower left corner along the x-axis in pixels
y Lower left corner along the y-axis in pixels
w Width of the element in pixels
h Height of the element in pixels
vmin The minimum value in the number wheel. If steps is a list of strings or textures, this parameter is not used.
vmax The maximum value in the number wheel. If steps is a list of strings or textures, this parameter is not used.
icon Icon pixmap for the number wheel (to the left of the wheel)
coloricon Color for the number wheel icon image
colorvalue Color of the selected value in the wheel
colorshade Wheel background color shade
font1 Font for the larger selected value
font2 Font for the smaller unselected values
icon2 Second icon pixmap for the number wheel (to the right of the wheel)
steps Optional: Step size or values of steps, this is the step-size between adjacent values in the wheel, OR this is a list specifying strings to be drawn on the wheel or textures to be displayed on the wheel (for using icons).

Example

Example 1: Create a minute wheel, with minutes values in steps of 5. Place on the gui at 72,58, 45px in width and 135 px high. No icons are used, the selected value is Red.

(set! minutes-list '("00" "05" "10" "15" "20" "25" "30" "35" "40" "45" "50" "55"))
(set! minute (glgui-verticalnumberwheel gui 72 58 45 135 #f #f #f #f 
  Red Black num_40.fnt num_24.fnt #f minutes-list))
Clone this wiki locally