1 /* Copyright (C) 1993 Nathan Sidwell */
2 /* RCS $Id: Drag.h,v 4.5 1993/10/01 19:19:35 nathan Stable $ */
3 
4 #ifndef Mred_Drag_h
5 #define Mred_Drag_h
6 #include <X11/Xaw/Simple.h>
7 /*{{{  Drag 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 *cursor		     Cursor		Cursor		None
21  cursorName	     Cursor		String		NULL
22  depth		     Depth		int		parent's depth
23  destroyCallback     Callback		XtCallbackList	NULL
24 *foreground	     Foreground		Pixel		XtDefaultForeground
25  height		     Height		Dimension	text height
26  insensitiveBorder   Insensitive	Pixmap		Gray
27  mappedWhenManaged   MappedWhenManaged	Boolean		True
28 *numWidgetChoices    Index              Cardinal        0
29 *pixmap		     Pixmap		Pixmap		None
30  pointerColor	     Foreground		Pixel		XtDefaultForeground
31  pointerColorBackground Background	Pixel		XtDefaultBackground
32  resize		     Resize		Boolean		True
33  screen		     Screen		Screen		parent's Screen
34  sensitive	     Sensitive		Boolean		True
35  shapeStyle	     ShapeStyle		ShapeStyle	Rectangle
36  translations	     Translations	TranslationTable see doc or source
37 *widgetChoices       WidgetList         WidgetList      NULL
38  width		     Width		Dimension	text width
39  x		     Position		Position	0
40  y		     Position		Position	0
41 */
42 /*}}}*/
43 /*{{{  new strings*/
44 #define MredNwidgetChoices "widgetChoices"
45 #define MredNnumWidgetChoices "numWidgetChoices"
46 #define MredCWidgetList "WidgetList"
47 /*}}}*/
48 extern WidgetClass     dragWidgetClass;
49 typedef struct _DragClassRec   *DragWidgetClass;
50 typedef struct _DragRec        *DragWidget;
51 extern VOIDFUNC DragPopup PROTOARG((Widget, Widget, Pixmap, Position, Position,
52     Position, Position, Time));
53 /*{{{  typedef struct _DragCallback*/
54 typedef struct _DragCallback
55 {
56   Widget    invoker;      /* invoking widget */
57   Widget    selected;     /* selected widget */
58   Position  offset_x;     /* offset of pointer */
59   Position  offset_y;     /* offset of pointer */
60 } DragCallback;
61 /*}}}*/
62 #endif /* _Mred_Drag_h */
63 /* DON'T ADD STUFF AFTER THIS */
64