Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    COPYRIGHT NOTICE
3
 
4
    This program is the proprietary property of IXI Ltd, a subsidiary
5
    of the Santa Cruz Operation (SCO). Use, reproduction, production
6
    of amended versions and/or transfer of this program is permitted
7
    PROVIDED THAT:
8
 
9
    (a)  This legend be preserved on any such reproduction and amended
10
         version.
11
 
12
    (b)  Any recipient of such reproduction or amended version accept
13
         the conditions set out in this legend.
14
 
15
    IXI accepts no liability whatsoever in relation to any use to
16
    which this program may be put and gives no warranty as to the
17
    program's suitability for any purpose.
18
 
19
    All rights reserved.
20
 
21
    Copyright (c) 1995, 1996
22
 
23
*/
24
 
25
 
26
/* SCO CID (IXI) DragCP.h,v 1.1 1996/08/08 14:12:34 wendland Exp */
27
 
28
%%
29
#ifndef __MOTIF_P_HEADERS
30
#error Unexpected access to Motif P headers
31
#endif
32
%%
33
 
34
+USE "motif/1_2", "Xm/XmP.h";
35
+USE "motif/1_2", "Xm/DragC.h";
36
 
37
+USE "x5/t", "X11/Shell.h";
38
+USE "x5/t", "X11/ShellP.h";
39
 
40
+USE "motif/1_2", "Xm/DragIcon.h";
41
+USE "motif/1_2", "Xm/DragOverS.h";
42
+USE "motif/1_2", "Xm/DropSMgrP.h";
43
 
44
+TYPEDEF void (*XmDragStartProc)( XmDragContext, Widget, XEvent *);
45
+TYPEDEF void (*XmDragCancelProc)( XmDragContext) ;
46
 
47
+FIELD (struct) XmDragContextClassPart := { 
48
 
49
	XmDragStartProc		start;
50
	XmDragCancelProc	cancel;
51
	XtPointer		extension;
52
};
53
 
54
+FIELD (struct) _XmDragContextClassRec := { 
55
 
56
	CoreClassPart		core_class;
57
	XmDragContextClassPart	drag_class;
58
};
59
 
60
+TYPEDEF _XmDragContextClassRec XmDragContextClassRec;
61
 
62
+EXP lvalue XmDragContextClassRec xmDragContextClassRec;
63
 
64
+CONST int XtDragByPoll;
65
+CONST int XtDragByEvent;
66
 
67
+FIELD (struct) XmDragReceiverInfoStruct := { 
68
 
69
	Window			frame;
70
	Window			window;
71
	Widget			shell;
72
	unsigned char		flags;
73
	unsigned char		dragProtocolStyle;
74
	int			xOrigin;
75
	int			yOrigin;
76
	unsigned int		width;
77
	unsigned int 		height;
78
	unsigned int		depth;
79
	XtPointer		iccInfo;
80
};
81
 
82
+TYPEDEF XmDragReceiverInfoStruct *XmDragReceiverInfo;
83
 
84
+FIELD (union) _XmConvertSelectionRec := { 
85
 
86
	XtConvertSelectionIncrProc	sel_incr;
87
	XtConvertSelectionProc		sel;
88
};
89
 
90
+TYPEDEF _XmConvertSelectionRec XmConvertSelectionRec;
91
 
92
+FIELD (struct) _XmDragContextPart := { 
93
 
94
	Atom			*exportTargets;
95
	Cardinal		numExportTargets;
96
	XmConvertSelectionRec	convertProc;
97
	XtPointer		clientData;
98
	XmDragIconObject	sourceCursorIcon;
99
	XmDragIconObject	stateCursorIcon;
100
	XmDragIconObject	operationCursorIcon;
101
	XmDragIconObject	sourcePixmapIcon;
102
	Pixel			cursorBackground;
103
	Pixel			cursorForeground;
104
	Pixel			validCursorForeground;
105
	Pixel			invalidCursorForeground;
106
	Pixel			noneCursorForeground;
107
	XtCallbackList		dragMotionCallback;
108
	XtCallbackList		operationChangedCallback;
109
	XtCallbackList		siteEnterCallback;
110
	XtCallbackList		siteLeaveCallback;
111
	XtCallbackList		topLevelEnterCallback;
112
	XtCallbackList		topLevelLeaveCallback;
113
	XtCallbackList		dropStartCallback;
114
	XtCallbackList		dropFinishCallback;
115
	XtCallbackList		dragDropFinishCallback;
116
	unsigned char		dragOperations;
117
	Boolean			incremental;
118
	unsigned char		blendModel;
119
 
120
	Window			srcWindow;
121
	Time			dragStartTime;
122
	Atom			iccHandle;
123
	Widget			sourceWidget;
124
	Boolean			sourceIsExternal;
125
 
126
	Boolean			topWindowsFetched;
127
	unsigned char		commType;
128
	unsigned char		animationType;
129
 
130
	unsigned char		operation;
131
	unsigned char		operations;
132
	unsigned int		lastEventState;
133
	unsigned char		dragCompletionStatus;
134
	unsigned char		dragDropCompletionStatus;
135
	Boolean			forceIPC;
136
	Boolean			serverGrabbed;
137
	Boolean			useLocal;
138
	Boolean			inDropSite;
139
	XtIntervalId		dragTimerId;
140
 
141
	Time			roundOffTime;
142
	Time			lastChangeTime;
143
	Time			crossingTime;
144
 
145
	Time			dragFinishTime;
146
	Time			dropFinishTime;
147
 
148
	Atom			dropSelection;
149
	Widget			srcShell;
150
	Position		startX;
151
	Position		startY;
152
 
153
	XmID			siteID;
154
 
155
	Screen			*currScreen;
156
	Window			currWmRoot;
157
	XmDragOverShellWidget	curDragOver;
158
	XmDragOverShellWidget	origDragOver;
159
 
160
	XmDragReceiverInfoStruct	*currReceiverInfo;
161
	XmDragReceiverInfoStruct	*rootReceiverInfo;
162
	XmDragReceiverInfoStruct	*receiverInfos;
163
	Cardinal		numReceiverInfos;
164
	Cardinal		maxReceiverInfos;
165
 
166
	unsigned char		trackingMode;
167
	unsigned char		activeProtocolStyle;
168
	unsigned char		activeBlendModel;
169
	Boolean			dragDropCancelEffect;
170
};
171
 
172
+TYPEDEF _XmDragContextPart XmDragContextPart;
173
 
174
+FIELD (struct) _XmDragContextRec := { 
175
 
176
	CorePart		core;
177
	XmDragContextPart	drag;
178
};
179
 
180
+TYPEDEF _XmDragContextRec XmDragContextRec;
181
 
182
/* not used anywhere */
183
+DEFINE _XmDCtoDD(dc) %% ((XmDisplay)XtParent(dc)) %%;
184
 
185
+MACRO void _XmDragStart(XmDragContext, Widget, XEvent *);
186
+MACRO void _XmDragCancel(XmDragContext);
187
 
188
+FUNC XmDragReceiverInfo _XmAllocReceiverInfo(XmDragContext);
189
+FUNC unsigned char _XmGetActiveProtocolStyle(Widget);
190
 
191