The MLWorks Motif interface library is provided in the Xm structure. The Xm structure is not built in to the MLWorks interactive environment, but is distributed as a set of source and separately compiled files with UNIX and Linux versions of MLWorks. See the installation notes for your version of MLWorks for details of their location.
The Motif interface library provides an ML interface to the X Window System with Motif, including relevant parts of the X Toolkit, and to the graphics functionality of Xlib. For the most part, functions here are directly equivalent to the corresponding C functions. Please refer to the Motif documentation for function descriptions. We have taken advantage of the ML type system to make the interface more secure than the C interface.
To use this library in your applications, add
require "$.motif.__xm".
to the start of the relevant source files. To load the library into the MLWorks interactive environment, set the appropriate library path using the project workspace or use the functions in Shell.Project.