-
Notifications
You must be signed in to change notification settings - Fork 86
glgui trace slider
Chris Petersen edited this page Oct 16, 2014
·
1 revision
glgui-trace-slider is a special version of (glgui-trace g x y w h trace color . lim) that creates a widget that plots waveform data. A value can be read from the graph by pointing to it. If the value is to be shown on the screen fnt needs to be set, otherwise it can be set to #f.
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 |
trace | The data of the waveform to be traced |
color | The waveform color |
popup-fnt | Font for the value callout string |
lim | Optional: 'limfnt specifies the character-encoding scheme of waveform graph, 'limcol specifies the font color, and 'limscale is used to scale the numbers |
Example 1: Create a waveform widget called trace. trace has predefined width of glgui-width and height of 100 at x=0 and y=50. trace-data specifies the trace data.
(set! trace-data (make-gltrace (glgui-width-get) 100 GLTRACE_SHIFT 0 100 0 100))
(let loop ((i 0))
(if (fx< i 300)
(begin (gltrace-add trace-data (+ 50 (* 50 (sin (* 2 3.141526 (/ i 120)))))) (loop (fx+ i 1)))
))
(set! trace (glgui-trace-slider gui 0 50 (glgui-width-get) 100 trace-data White ascii_16.fnt))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip