00001 /* $XConsortium: TemplateP.h,v 1.7 94/04/17 20:13:00 rws Exp $ */ 00002 00003 /* 00004 00005 Copyright (c) 1987 X Consortium 00006 00007 Permission is hereby granted, free of charge, to any person obtaining a copy 00008 of this software and associated documentation files (the "Software"), to deal 00009 in the Software without restriction, including without limitation the rights 00010 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00011 copies of the Software, and to permit persons to whom the Software is 00012 furnished to do so, subject to the following conditions: 00013 00014 The above copyright notice and this permission notice shall be included in 00015 all copies or substantial portions of the Software. 00016 00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00020 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 00024 Except as contained in this notice, the name of the X Consortium shall not be 00025 used in advertising or otherwise to promote the sale, use or other dealings 00026 in this Software without prior written authorization from the X Consortium. 00027 00028 */ 00029 00030 00031 #ifndef _TemplateP_h 00032 #define _TemplateP_h 00033 00034 #include <X11/Xaw3d/Template.h> 00035 /* include superclass private header file */ 00036 #include <X11/CoreP.h> 00037 00038 /* define unique representation types not found in <X11/StringDefs.h> */ 00039 00040 #define XtRTemplateResource "TemplateResource" 00041 00042 typedef struct { 00043 int empty; 00044 } TemplateClassPart; 00045 00046 typedef struct _TemplateClassRec { 00047 CoreClassPart core_class; 00048 TemplateClassPart template_class; 00049 } TemplateClassRec; 00050 00051 extern TemplateClassRec templateClassRec; 00052 00053 typedef struct { 00054 /* resources */ 00055 char* resource; 00056 /* private state */ 00057 } TemplatePart; 00058 00059 typedef struct _TemplateRec { 00060 CorePart core; 00061 TemplatePart template; 00062 } TemplateRec; 00063 00064 #endif /* _TemplateP_h */
1.5.1