1 <sect1 id="Private_Header_File">
2 <title>Private Header File</title>
5 The private header file contains the complete declaration of the class
6 and instance structures for the widget and any additional private data
7 that will be required by anticipated subclasses of the widget.
8 Information in the private header file is normally hidden from the
9 application and is designed to be accessed only through other public
11 <function>XtSetValues .</function>
15 The contents of the Template private header file,
16 <function>< X11/Xaw/TemplateP.h >, </function>
20 <!-- .\".so ../../lib/Xaw/TemplateP.h -->
21 <literallayout class="monospaced">
22 /* Copyright (c) X Consortium 1987, 1988
28 #include <X11/Xaw/Template.h>
29 /* include superclass private header file */
30 #include <X11/CoreP.h>
32 /* define unique representation types not found in <X11/StringDefs.h> */
34 #define XtRTemplateResource "TemplateResource"
40 typedef struct _TemplateClassRec {
41 CoreClassPart core_class;
42 TemplateClassPart template_class;
45 extern TemplateClassRec templateClassRec;
53 typedef struct _TemplateRec {
55 TemplatePart template;
58 #endif /* _TemplateP_h */
62 The private header file includes the private header file of its
63 superclass, thereby exposing the entire internal structure of the widget.
64 It may not always be advantageous to do this; your own project
65 development style will dictate the appropriate level of detail to expose
69 The "WindowWidget" needs to declare two fields in its instance structure to
70 hold the drawing colors, a resource field for the font and a field for the
71 expose and user input callback lists:
74 <literallayout class="monospaced">
80 XtCallbackList expose_callback;
81 XtCallbackList input_callback;