/* -*- mode: ObjC -*- XGDragView View that is dragged during drag and drop Copyright (C) 2001-2005 Free Software Foundation, Inc. Written By: woudshoo@xs4all.nl Date: Nov 2001 This file is part of the GNU Objective C User Interface library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. */ #include #include #include #include #include "x11/xdnd.h" #include "x11/XGServerWindow.h" /*" Drag and drop support functions "*/ void GSEnsureDndIsInitialized (void); DndClass xdnd (void); Atom GSActionForDragOperation(unsigned int op); NSDragOperation GSDragOperationForAction(Atom xaction); /*" WRO (notes made 18 Nov 2001) The object that is dragged over the screen. It hijacks the event loop and manages the complete drag and drop sequence. "*/ @interface XGDragView : GSDragView { Atom *typelist; } + (id) sharedDragView; - (void) setupDragInfoFromXEvent: (XEvent *)xEvent; - (void) updateDragInfoFromEvent: (NSEvent *)event; - (void) resetDragInfo; - (void) dragImage: (NSImage*)anImage at: (NSPoint)screenLocation offset: (NSSize)initialOffset event: (NSEvent*)event pasteboard: (NSPasteboard*)pboard source: (id)sourceObject slideBack: (BOOL)slideFlag; - (Window) _xWindowAcceptingDnDunderX: (int) x Y: (int) y; @end