1 /* Copyright (C) 1993 Nathan Sidwell */ 2 /* RCS $Id: Icon.h,v 4.7 1993/10/01 19:19:35 nathan Stable $ */ 3 4 #ifndef Mred_Icon_h 5 #define Mred_Icon_h 6 #include <X11/Xaw/Simple.h> 7 /*{{{ Icon widget resources:*/ 8 /* 9 Name Class RepType Default Value 10 ---- ----- ------- ------------- 11 accelerators Accelerators AcceleratorTable NULL 12 ancestorSensitive AncestorSensitive Boolean True 13 background Background Pixel XtDefaultBackground 14 backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap 15 borderColor BorderColor Pixel XtDefaultForeground 16 borderPixmap Pixmap Pixmap XtUnspecifiedPixmap 17 borderWidth BorderWidth Dimension 1 18 *callback Callback XtCallbackList NULL 19 colormap Colormap Colormap parent's colormap 20 *columns Width Dimension 1 21 cursorName Cursor String NULL 22 depth Depth int parent's depth 23 destroyCallback Callback XtCallbackList NULL 24 *dragName Label String "drag" 25 *dragSensitivity Thickness Dimension 4 26 *flashDelay Interval int 200 27 *foreground Foreground Pixel XtDefaultForeground 28 height Height Dimension text height 29 *highlightThickness Thickness Dimension 0 if shaped, else 2 30 insensitiveBorder Insensitive Pixmap Gray 31 mappedWhenManaged MappedWhenManaged Boolean True 32 *pixmap Pixmap Pixmap None 33 pointerColor Foreground Pixel XtDefaultForeground 34 pointerColorBackground Background Pixel XtDefaultBackground 35 resize Resize Boolean True 36 *rows Height Dimension 1 37 screen Screen Screen parent's Screen 38 sensitive Sensitive Boolean True 39 translations Translations TranslationTable see doc or source 40 width Width Dimension text width 41 x Position Position 0 42 y Position Position 0 43 */ 44 /*}}}*/ 45 /*{{{ new strings*/ 46 #define MredNhighlightThickness "highlightThickness" 47 #define MredNcolumns "columns" 48 #define MredNrows "rows" 49 #define MredNdragName "dragName" 50 #define MredNdragSensitivity "dragSensitivity" 51 #define MredNflashDelay "flashDelay" 52 /*}}}*/ 53 extern VOIDFUNC IconRepaint PROTOARG((Widget)); 54 extern WidgetClass iconWidgetClass; 55 typedef struct _IconClassRec *IconWidgetClass; 56 typedef struct _IconRec *IconWidget; 57 /*{{{ typedef struct _IconCallback*/ 58 typedef struct _IconCallback 59 { 60 unsigned selection; /* selected area */ 61 int button; /* button number */ 62 } IconCallback; 63 /*}}}*/ 64 #endif /* _Mred_Icon_h */ 65 /* DON'T ADD STUFF AFTER THIS */ 66