NEWS/Changelog for previous commit.
[fvwm.git] / modules / FvwmWharf / OffiX / DragAndDrop.h
blobe23d7211a4c4a25d4c4ce33e64e51f97f8149c92
1 /* -*-c-*- */
2 /*
3 Copyright (C) 1996 César Crusius
5 This file is part of the DND Library. This library is free
6 software; you can redistribute it and/or modify it under the terms of
7 the GNU Library General Public License as published by the Free
8 Software Foundation; either version 2 of the License, or (at your
9 option) any later version. This library is distributed in the hope
10 that it will be useful, but WITHOUT ANY WARRANTY; without even the
11 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the GNU Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public
14 License along with this library; if not, write to the Free Software
15 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 #ifndef __DragAndDropH__
19 #define __DragAndDropH__
21 #include <OffiX/DragAndDropTypes.h>
23 #include <X11/Intrinsic.h>
25 void DndInitialize(Widget shell);
27 void DndRegisterRootDrop(XtEventHandler handler);
28 void DndRegisterIconDrop(XtEventHandler handler);
29 void DndRegisterOtherDrop(XtEventHandler handler);
31 void DndRegisterDropWidget(Widget widget,XtEventHandler handler,
32 XtPointer data);
33 void DndRegisterDragWidget(Widget widget,XtEventHandler handler,
34 XtPointer data);
36 int DndHandleDragging(Widget widget,XEvent* event);
38 void DndMultipleShells(void);
39 void DndAddShell(Widget widget);
41 void DndSetData(int Type,unsigned char *Data,unsigned long Size);
42 void DndGetData(unsigned char **Data,unsigned long *Size);
44 int DndIsIcon(Widget widget);
45 int DndDataType(XEvent *event);
46 unsigned int DndDragButtons(XEvent *event);
47 Widget DndSourceWidget(XEvent *event);
49 #endif