Next: Header Files
Up: A First MOTIF Program
Previous: The push.c program
When writing a Motif program you will invariably call upon both Motif and
Xt functions (and data structures) explicitly.
You will not always call Xlib functions or structures explicitly but recall that
Motif and Xt are built upon Xlib and they will call Xlib function
from their own function calls.
In order to distinguish between the various toolkits, X adopts the following
- All Motif function and data structure names begin with Xm. So
in push.c: XmStringCreateSimple() and XmStringFree() belong to Motif
- All Xt Intrinsics functions and data structures begin with Xt.
e.g. XtVappInitialize() and XtVaCreateManagedWidget(). The
Widget data structure is an exception to this rule.
- All Xlib functions and most data structures begin with
X. There are no Xlib functions used in push.c. An example of an Xlib
function call is XDrawString.