1 /* Copyright (C) 1993 Nathan Sidwell */
2 /* RCS $Id: PixmapList.h,v 4.4 1993/12/14 16:55:52 nathan Stable $ */
3 
4 #ifndef Mred_PixmapList_h
5 #define Mred_PixmapList_h
6 #include <X11/Xaw/Simple.h>
7 #include <X11/Xaw/Paned.h>
8 /*{{{  PixmapList widget resources:*/
9 /*
10  Name		     Class		RepType		Default Value
11  ----		     -----		-------		-------------
12  accelerators	     Accelerators	AcceleratorTable NULL
13  ancestorSensitive   AncestorSensitive	Boolean		True
14  background	     Background		Pixel		XtDefaultBackground
15  backgroundPixmap    Pixmap		Pixmap		XtUnspecifiedPixmap
16  borderColor	     BorderColor	Pixel		XtDefaultForeground
17  borderPixmap	     Pixmap		Pixmap		XtUnspecifiedPixmap
18  borderWidth	     BorderWidth	Dimension	1
19 *callback	     Callback		XtCallbackList	NULL
20  colormap	     Colormap		Colormap	parent's colormap
21  cursor		     Cursor		Cursor		None
22  cursorName	     Cursor		String		NULL
23  depth		     Depth		int		parent's depth
24  destroyCallback     Callback		XtCallbackList	NULL
25 *distance            Thickness          Cardinal        4
26 *dragName            Label		String    	"drag"
27 *dragSensitivity     Thickness		Dimension	4
28 *flashDelay	     Interval		int		200
29 *foreground	     Foreground		Pixel		XtDefaultForeground
30  height		     Height		Dimension	text height
31 *highlightThickness  Thickness		Dimension	0 if shaped, else 2
32  insensitiveBorder   Insensitive	Pixmap		Gray
33 *internalBorderColor   BorderColor	Pixel		XtDefaultForeground
34 *internalBorderWidth   BorderWidth	Dimension	1
35  mappedWhenManaged   MappedWhenManaged	Boolean		True
36 *orientation	     Orientation	XtOrientation	XtorientVertical
37  pointerColor	     Foreground		Pixel		XtDefaultForeground
38  pointerColorBackground Background	Pixel		XtDefaultBackground
39  resize		     Resize		Boolean		True
40  screen		     Screen		Screen		parent's Screen
41  sensitive	     Sensitive		Boolean		True
42  translations	     Translations	TranslationTable see doc or source
43  width		     Width		Dimension	text width
44  x		     Position		Position	0
45  y		     Position		Position	0
46 */
47 /*}}}*/
48 /*{{{  new strings*/
49 #define MredNhighlightThickness "highlightThickness"
50 #define MredNdragName "dragName"
51 #define MredNdragSensitivity "dragSensitivity"
52 #define MredNflashDelay "flashDelay"
53 #define MredCPixmapList "PixmapList"
54 #define MredNdistance "distance"
55 /*}}}*/
56 extern VOIDFUNC PixmapListRepaint PROTOARG((Widget, Cardinal));
57 extern VOIDFUNC PixmapListInsert PROTOARG((Widget, Cardinal, Pixmap));
58 extern VOIDFUNC PixmapListRemove PROTOARG((Widget, Cardinal));
59 extern VOIDFUNC PixmapListSetScroll PROTOARG((Widget, Widget));
60 extern int PixmapListQueryOffset
61     PROTOARG((Widget, Position, Position, Boolean));
62 extern int PixmapListQueryDrag PROTOARG((Widget));
63 extern WidgetClass     pixmapListWidgetClass;
64 typedef struct _PixmapListClassRec   *PixmapListWidgetClass;
65 typedef struct _PixmapListRec        *PixmapListWidget;
66 /*{{{  typedef struct _PixmapListCallback*/
67 typedef struct _PixmapListCallback
68 {
69   unsigned  selection;    /* selected widget */
70   int       button;       /* button number */
71 } PixmapListCallback;
72 /*}}}*/
73 #endif /* _Mred_Pixmap_List_h */
74 /* DON'T ADD STUFF AFTER THIS */
75