|
Next: Program Structure Up: Writing An X Previous: Writing An X
Naming ConventionsThe names of all routines belonging to the Xt intrinsics begin with Xt and the remainder of the name follows a mixed case convention, such as XtCreateManagedWidget. Widget class and instance names follow a mixed case convention but the class name begins with an uppercase letter and the instance name with a lowercase letter, such as the class name PushButton and the instance name pushButton. However, the Motif widget set tends to prefix widget class and instance names with Xm. Widget resources follow a similar convention, with resource class names beginning with an uppercase letter and the resource names beginning with a lowercase letter, such as the resource class name BorderColor and the resource name borderColor. When referencing widget resources within the program, prefixes like XmC or XtN are used to allow the compiler to check the names.
JR Pitchers Wed May 3 16:45:04 BST 1995 |
|||||||||||||||||
With any suggestions or questions please feel free to contact us |