In general, names in the Lisp Motif interface are derived directly from the C original. The following rules apply:
Xt
" and Xm
(also XmN
,
XmC
, etc.) prefixes
-
) rather than capitalization
_
) with dashes (-
)
Examples:
XtCreateWidget | ⇒ | create-widget |
XmNlabelString | ⇒ | :label-string |
XmVERTICAL | ⇒ | :vertical |
Some exceptions:
XmString
… are prefixed by
compound-string-
rather than string-
in Lisp.
Functions or resources, with the exception of the compound-string-xxx
functions, which require compound string arguments, may be given Lisp
SIMPLE-STRING
s instead.
The arguments to functions are typically the same as the C Motif equivalents. Some exceptions are:
&rest
arg for
resource values.
ADD-CALLBACK
use a
&rest
arg for registering an arbitrary number of
client-data
items.