summaryrefslogtreecommitdiff
path: root/desktop/gui.h
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2005-04-15 05:52:25 +0000
committerAdrian Lees <adrian@aemulor.com>2005-04-15 05:52:25 +0000
commit28e757a362c4643c615f93fed9e6d07bcff8f089 (patch)
treed6e0e7c12a50a88b3bd7542cb02b105619e3dbb0 /desktop/gui.h
parent530e185124cad07180cf3dc6a827b261b8cf007f (diff)
downloadnetsurf-28e757a362c4643c615f93fed9e6d07bcff8f089.tar.gz
netsurf-28e757a362c4643c615f93fed9e6d07bcff8f089.tar.bz2
[project @ 2005-04-15 05:52:25 by adrianl]
Text selection, page drag scrolling, drag-saving images svn path=/import/netsurf/; revision=1638
Diffstat (limited to 'desktop/gui.h')
-rw-r--r--desktop/gui.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/desktop/gui.h b/desktop/gui.h
index 1db455c6f..df87c16ca 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -13,6 +13,22 @@
#ifndef _NETSURF_DESKTOP_GUI_H_
#define _NETSURF_DESKTOP_GUI_H_
+typedef enum {
+ GUI_SAVE_SOURCE,
+ GUI_SAVE_DRAW,
+ GUI_SAVE_TEXT,
+ GUI_SAVE_COMPLETE,
+ GUI_SAVE_OBJECT_ORIG,
+ GUI_SAVE_OBJECT_NATIVE,
+ GUI_SAVE_LINK_URI,
+ GUI_SAVE_LINK_URL,
+ GUI_SAVE_LINK_TEXT,
+ GUI_SAVE_HOTLIST_EXPORT_HTML,
+ GUI_SAVE_HISTORY_EXPORT_HTML,
+ GUI_SAVE_TEXT_SELECTION,
+ GUI_SAVE_CLIPBOARD_CONTENTS
+} gui_save_type;
+
struct gui_window;
struct gui_download_window;
@@ -39,6 +55,7 @@ void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1);
void gui_window_redraw_window(struct gui_window *g);
void gui_window_update_box(struct gui_window *g,
const union content_msg_data *data);
+bool gui_window_get_scroll(struct gui_window *g, int *sx, int *sy);
void gui_window_set_scroll(struct gui_window *g, int sx, int sy);
int gui_window_get_width(struct gui_window *g);
void gui_window_set_extent(struct gui_window *g, int width, int height);
@@ -50,6 +67,7 @@ void gui_window_stop_throbber(struct gui_window *g);
void gui_window_place_caret(struct gui_window *g, int x, int y, int height);
void gui_window_remove_caret(struct gui_window *g);
void gui_window_new_content(struct gui_window *g);
+bool gui_window_scroll_start(struct gui_window *g);
struct gui_download_window *gui_download_window_create(const char *url,
const char *mime_type, struct fetch *fetch,
@@ -60,6 +78,12 @@ void gui_download_window_error(struct gui_download_window *dw,
const char *error_msg);
void gui_download_window_done(struct gui_download_window *dw);
+void gui_drag_save_object(gui_save_type type, struct content *c);
+void gui_drag_save_selection(struct selection *s);
+void gui_start_selection(struct gui_window *g);
+
+bool gui_copy_to_clipboard(struct selection *s);
+
void gui_create_form_select_menu(struct browser_window *bw,
struct form_control *control);