home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / templatep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  2.0 KB  |  65 lines

  1. /* $XConsortium: TemplateP.h,v 1.7 94/04/17 20:13:00 rws Exp $ */
  2.  
  3. /*
  4.  
  5. Copyright (c) 1987  X Consortium
  6.  
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13.  
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16.  
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  20. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23.  
  24. Except as contained in this notice, the name of the X Consortium shall not be
  25. used in advertising or otherwise to promote the sale, use or other dealings
  26. in this Software without prior written authorization from the X Consortium.
  27.  
  28. */
  29.  
  30.  
  31. #ifndef _TemplateP_h
  32. #define _TemplateP_h
  33.  
  34. #include <X11/Xaw/Template.h>
  35. /* include superclass private header file */
  36. #include <X11/CoreP.h>
  37.  
  38. /* define unique representation types not found in <X11/StringDefs.h> */
  39.  
  40. #define XtRTemplateResource "TemplateResource"
  41.  
  42. typedef struct {
  43.     int empty;
  44. } TemplateClassPart;
  45.  
  46. typedef struct _TemplateClassRec {
  47.     CoreClassPart    core_class;
  48.     TemplateClassPart    template_class;
  49. } TemplateClassRec;
  50.  
  51. extern TemplateClassRec templateClassRec;
  52.  
  53. typedef struct {
  54.     /* resources */
  55.     char* resource;
  56.     /* private state */
  57. } TemplatePart;
  58.  
  59. typedef struct _TemplateRec {
  60.     CorePart        core;
  61.     TemplatePart    template;
  62. } TemplateRec;
  63.  
  64. #endif /* _TemplateP_h */
  65.