Next: Some random notes, Previous: Action procedures
X events are also represented as structured objects with slot names which are directly translated from the C equivalent. The accessor functions are named by <event name>-<slot name>. Some examples:
This applies to all events
So does this
Some button event
accessors
At the moment, XClientMessage and XKeyMap events are not supported (they will be in the not too distant future).
Provided conveniences
Since Motif requires the use of font lists for building non-trivial compound strings, there are some Lisp functions to ease the pain of building them:
Returns a font list of with the given name associated with the given font. For example,
(build-simple-font-list "MyFont" "8x13")
This allows for the construction of font lists with more than one font. An example:
(build-font-list `(("EntryFont" ,entry-font-name) ("HeaderFont" ,header-font-name) ("ItalicFont" ,italic-font-name)))
There are certain callbacks which are of general use, and standard ones are provided for the programmer’s convenience. For all callbacks except QUIT-APPLICATION-CALLBACK, you register some number of widgets with ADD-CALLBACK. These will be the widgets acted upon by the callback:
Callback to terminate the current application.
Destroys all the widgets passed to it.
Manages all the widgets passed to it.
Unmanages all the widgets passed to it.
Calls popup on all widgets passed to it.
Calls popdown on all widgets passed to it.
Next: Some random notes, Previous: Action procedures