Next:  


1 Naming conventions

In general, names in the Lisp Motif interface are derived directly from the C original. The following rules apply:

  1. Drop Xt" and Xm (also XmN, XmC, etc.) prefixes
  2. Separate words by dashes (-) rather than capitalization
  3. Resource names and enumeration values are given as keywords
  4. Replace underscores (_) with dashes (-)

Examples:

XtCreateWidgetcreate-widget
XmNlabelString:label-string
XmVERTICAL:vertical

Some exceptions:

Functions or resources, with the exception of the compound-string-xxx functions, which require compound string arguments, may be given Lisp SIMPLE-STRINGs instead.

The arguments to functions are typically the same as the C Motif equivalents. Some exceptions are: