home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fontutils-0.6-base.tgz / fontutils-0.6-base.tar / fsf / fontutils / widgets / ItemP.h < prev    next >
C/C++ Source or Header  |  1992-03-27  |  2KB  |  73 lines

  1. /* ItemP.h: private definitions for the Item widget.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef ITEM_WIDGET_PRIVATE_H
  20. #define ITEM_WIDGET_PRIVATE_H
  21.  
  22. #include <X11/IntrinsicP.h>
  23. #include <X11/CoreP.h>
  24. #include <X11/Xaw/SimpleP.h>
  25.  
  26. #include "Item.h"
  27.  
  28.  
  29. /* New fields in the class record, i.e., data applicable to every
  30.    instance of the widget.  */ 
  31. typedef struct
  32. {
  33.   int dummy;
  34. } ItemClassPart;
  35.  
  36. /* The full class record structure.  */
  37. typedef struct _ItemClassRec
  38. {
  39.   CoreClassPart core_class;
  40.   SimpleClassPart simple_class;
  41.   ItemClassPart item_class;
  42. } ItemClassRec;
  43.  
  44. extern ItemClassRec itemClassRec;
  45.  
  46.  
  47. /* New fields in the Item widget record, i.e., data specific to one
  48.    instance of the widget.  */
  49. typedef struct
  50. {
  51.   /* New resources.  */
  52.   string label;
  53.   string value;
  54.   Dimension length;
  55.   XtCallbackList accept_callback;
  56.   
  57.   /* Private state.  */
  58.   GC normal_GC, highlight_GC;
  59.   Widget label_widget;
  60.   Widget value_widget;
  61. } ItemPart;
  62.  
  63.  
  64. /* The full instance record structure.  */
  65. typedef struct _ItemRec
  66. {
  67.   CorePart core;
  68.   SimplePart simple;
  69.   ItemPart item;
  70. } ItemRec;
  71.  
  72. #endif /* not ITEM_WIDGET_PRIVATE_H */
  73.