annotate src/offix.h @ 228:654d0f3a6a9b

Added tag r20-5b12 for changeset 0e522484dd2a
author cvs
date Mon, 13 Aug 2007 10:12:39 +0200
parents 41ff10fd062f
children c5d627a313b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
1 /*
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
2 This is a modified DND 1.0 library which does not depend on Xt
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
3 event handling.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
4 Modifications Copyright (c) 1997 Oliver Graf <ograf@fga.de>
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
5
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
6 Original DND lib
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
7 Copyright (C) 1996 César Crusius
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
8
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
9 This file is part of the DND Library. This library is free
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
10 software; you can redistribute it and/or modify it under the terms of
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
11 the GNU Library General Public License as published by the Free
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
12 Software Foundation; either version 2 of the License, or (at your
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
13 option) any later version. This library is distributed in the hope
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
14 that it will be useful, but WITHOUT ANY WARRANTY; without even the
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
15 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
16 PURPOSE. See the GNU Library General Public License for more details.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
17 You should have received a copy of the GNU Library General Public
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
18 License along with this library; if not, write to the Free Software
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
19 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
20 */
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
21
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
22 #ifndef __DragAndDropH__
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
23 #define __DragAndDropH__ 1L
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
24
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
25 /* The standard DND types are defined here */
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
26 #include "offix-types.h"
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
27
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
28 /* Xt stuff is defined here */
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 197
diff changeset
29 #include "xintrinsic.h"
197
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
30
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
31 void DndInitialize(Widget shell);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
32
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
33 int
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
34 DndHandleDragging(Widget widget,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
35 XEvent* event);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
36
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
37 void DndSetData(int Type, unsigned char *Data, unsigned long Size);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
38 void DndGetData(XEvent *event, unsigned char **Data, unsigned long *Size);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
39
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
40 int DndIsIcon(Widget widget);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
41 int DndDataType(XEvent *event);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
42 unsigned int DndDragButtons(XEvent *event);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
43 Window DndSourceWindow(XEvent *event);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
44
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
45 void
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
46 DndDropCoordinates(Widget widget,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
47 XEvent *event,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
48 int *x,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
49 int *y);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
50 void
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
51 DndDropRootCoordinates(XEvent *event,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
52 int *x,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
53 int *y);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
54
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
55 long
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
56 DndProtocolVersion(XEvent *event);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
57
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
58 int
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
59 DndIsDropMessage(XEvent *event);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
60
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
61 void
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
62 DndChangeCursor(int Type,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
63 int width,int height,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
64 char *image,char *mask,
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
65 int hot_x,int hot_y);
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
66 #endif
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
67
acd284d43ca1 Import from CVS: tag r20-3b25
cvs
parents:
diff changeset
68