1 /* 2 * Copyright 2010 Chris Young <chris@unsatisfactorysoftware.co.uk> 3 * 4 * This file is part of NetSurf, http://www.netsurf-browser.org/ 5 * 6 * NetSurf is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; version 2 of the License. 9 * 10 * NetSurf is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef AMIGA_DRAG_H 20 #define AMIGA_DRAG_H 21 22 #include <stdbool.h> 23 #include <exec/types.h> 24 #include "netsurf/window.h" 25 26 struct Window; 27 28 #define AMI_DRAG_THRESHOLD 10 29 30 void gui_drag_save_selection(struct gui_window *g, const char *selection); 31 void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c, gui_save_type type); 32 void ami_drag_save(struct Window *win); 33 void ami_drag_icon_show(struct Window *win, const char *type); 34 void ami_drag_icon_close(struct Window *win); 35 bool ami_drag_icon_move(void); 36 BOOL ami_drag_in_progress(void); 37 bool ami_drag_has_data(void); 38 #endif 39 40