home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / XAP / XFILEMAN / XFILEMAN.TAR / xfilemanager / IconBP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  2.7 KB  |  96 lines

  1. /***********************************************************
  2. Copyright 1993 by Ove Kalkan
  3.  
  4.                         All Rights Reserved
  5.  
  6. Permission to use, copy, modify, and distribute this software and its 
  7. documentation for any purpose and without fee is hereby granted, 
  8. provided that the above copyright notice appear in all copies and that
  9. both that copyright notice and this permission notice appear in 
  10. supporting documentation, and that the names of Digital or MIT not be
  11. used in advertising or publicity pertaining to distribution of the
  12. software without specific, written prior permission.  
  13.  
  14. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20. SOFTWARE.
  21.  
  22. ******************************************************************/
  23.  
  24. /* 
  25.  * IconBP.h - Private definitions for IconB widget
  26.  * 
  27.  */
  28.  
  29. #ifndef _XslIconBP_h
  30. #define _XslIconBP_h
  31.  
  32. /***********************************************************************
  33.  *
  34.  * IconB Widget Private Data
  35.  *
  36.  ***********************************************************************/
  37.  
  38. #include "IconB.h"
  39. #include <X11/Xaw/SimpleP.h>
  40.  
  41. /* New fields for the IconB widget class record */
  42.  
  43. typedef struct {int foo;} IconBClassPart;
  44.  
  45. /* Full class record declaration */
  46. typedef struct _IconBClassRec {
  47.     CoreClassPart    core_class;
  48.     SimpleClassPart    simple_class;
  49.     IconBClassPart    iconB_class;
  50. } IconBClassRec;
  51.  
  52. extern IconBClassRec iconBClassRec;
  53.  
  54. typedef enum {
  55.     HighlightNone,        /* Do not highlight. */
  56.     HighlightWhenUnset,    /* Highlight only when unset, this is
  57.                    to preserve current iconButton widget 
  58.                    functionality. */
  59.     HighlightAlways        /* Always highlight, lets the toggle widget
  60.                    and other subclasses do the right thing. */
  61. } XtIconButtonHighlight;
  62.  
  63. /* New fields for the IconB widget record */
  64. typedef struct {
  65.     /* resources */
  66.     Pixmap        image;
  67.     Pixmap        shape;
  68.     Pixmap        simage;
  69.     Pixmap        sshape;
  70.     Dimension    width;
  71.     Dimension    height;
  72.     XtCallbackList    callbacks;
  73.     Dimension    highlight_thickness;
  74.     
  75.     /* private state */
  76.     Boolean        set;
  77.     GC        normal_GC;
  78.     GC        gray_GC;
  79.     Pixmap        stipple;
  80. } IconBPart;
  81.  
  82.  
  83. /****************************************************************
  84.  *
  85.  * Full instance record declaration
  86.  *
  87.  ****************************************************************/
  88.  
  89. typedef struct _IconBRec {
  90.     CorePart    core;
  91.     SimplePart    simple;
  92.     IconBPart    iconB;
  93. } IconBRec;
  94.  
  95. #endif /* _XslLabelP_h */
  96.