-
Notifications
You must be signed in to change notification settings - Fork 88
glgui event
Chris Petersen edited this page Oct 16, 2014
·
2 revisions
glgui-event process an input event. It loops over all guis provided and sends events to their widgets's input handlers. It is mainly found in the second function (the loop) of the main program declaration.
| Parameter | Description |
|---|---|
| g | Graphical User Interface (GUI) or a list of GUIs |
| t | Event type, e.g. EVENT_KEYPRESS |
| x0 | First argument of event, e.g. x coordinate pixels or keyboard character |
| y0 | Second argument of event, e.g. y coordinate in pixels |
Example from apps/DemoRedSquare/main.scm
(lambda (t x y)
(if (= t EVENT_KEYPRESS) (begin (if (= x EVENT_KEYESCAPE) (terminate))))
(glgui-event gui t x y)
)
-
- 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