NetSurf
drag.h
Go to the documentation of this file.
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
26struct Window;
27
28#define AMI_DRAG_THRESHOLD 10
29
30void gui_drag_save_selection(struct gui_window *g, const char *selection);
32void ami_drag_save(struct Window *win);
33void ami_drag_icon_show(struct Window *win, const char *type);
34void ami_drag_icon_close(struct Window *win);
35bool ami_drag_icon_move(void);
36BOOL ami_drag_in_progress(void);
37bool ami_drag_has_data(void);
38#endif
39
bool ami_drag_has_data(void)
Definition: drag.c:329
void gui_drag_save_selection(struct gui_window *g, const char *selection)
Initiates drag saving of a selection from a browser window.
Definition: drag.c:303
void ami_drag_icon_show(struct Window *win, const char *type)
Definition: drag.c:311
void ami_drag_save(struct Window *win)
Definition: drag.c:307
bool ami_drag_icon_move(void)
Definition: drag.c:319
void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c, gui_save_type type)
Initiates drag saving of an object directly from a browser window.
Definition: drag.c:298
BOOL ami_drag_in_progress(void)
Definition: drag.c:324
void ami_drag_icon_close(struct Window *win)
Definition: drag.c:315
const char * type
Definition: filetype.cpp:44
Interface to platform-specific graphical user interface window operations.
gui_save_type
Definition: window.h:39
first entry in window list
Definition: gui.c:298
High-level cache handle.
Definition: hlcache.c:66