-
Notifications
You must be signed in to change notification settings - Fork 85
glgui widget set!
Chris Petersen edited this page Oct 16, 2014
·
1 revision
glgui-widget-set! sets a parameter of a widget
Parameter | Description |
---|---|
g | Graphical User Interface (GUI) the widget is part of |
w | The widget for which a parameter is to be changed |
id | The desired parameter of the widget to be changed |
val | The new value of parameter id |
Example from HelloWorld. Toggle the widget color of widget1 between white and red
(define (button-callback g w t x y)
(glgui-widget-set! g w 'color (if (= (glgui-widget-get g w 'color) White) Red White)))
(set! gui (make-glgui))
(let ((bw 150) (bh 50)
(bx (/ (- (glgui-width-get) bw) 2.)) (by (/ (- (glgui-height-get) bh) 2.)))
(glgui-button-string gui bx by bw bh "Me too!!!" ascii_18.fnt button-callback))
-
- 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