NetSurf
textselection.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 Adrian Lees <adrianl@users.sourceforge.net>
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/** \file
20 * Text selection import/export (interface).
21 */
22
23#ifndef _NETSURF_RISCOS_TEXTSELECTION_H_
24#define _NETSURF_RISCOS_TEXTSELECTION_H_
25
26#include "oslib/wimp.h"
27
29
30void gui_start_selection(struct gui_window *g);
31
32typedef void (*ro_gui_selection_prepare_paste_cb)(void *pw);
33
37 wimp_full_message_data_xfer *dataxfer);
39 wimp_full_message_data_xfer *dataxfer);
40
41void ro_gui_selection_claim_entity(wimp_full_message_claim_entity *claim);
42void ro_gui_selection_data_request(wimp_full_message_data_request *req);
43bool ro_gui_save_clipboard(const char *path);
44
45/* drag-and-drop, receiving */
46void ro_gui_selection_dragging(wimp_message *message);
48
49/* drag-and-drop, sending */
50void ro_gui_selection_send_dragging(wimp_pointer *pointer);
51void ro_gui_selection_drag_claim(wimp_message *message);
52
53#endif
bool ro_gui_save_clipboard(const char *path)
Save the clipboard contents to a file.
void(* ro_gui_selection_prepare_paste_cb)(void *pw)
Definition: textselection.h:32
void ro_gui_selection_data_request(wimp_full_message_data_request *req)
Responds to DATA_REQUEST message, returning information about the clipboard contents if we own the cl...
void ro_gui_selection_claim_entity(wimp_full_message_claim_entity *claim)
Responds to CLAIM_ENTITY message notifying us that the caret and selection or clipboard have been cla...
struct gui_clipboard_table * riscos_clipboard_table
void gui_start_selection(struct gui_window *g)
Start drag-selecting text within a browser window (RO-dependent part)
Definition: clipboard.c:87
bool ro_gui_selection_prepare_paste_datasave(wimp_full_message_data_xfer *dataxfer)
Prepare to paste data from another application (step 2)
void ro_gui_selection_drag_reset(void)
Reset drag-and-drop state when drag completes (DataSave received)
void ro_gui_selection_prepare_paste(wimp_w w, ro_gui_selection_prepare_paste_cb cb, void *pw)
Prepare to paste data from another application.
void ro_gui_selection_dragging(wimp_message *message)
Handler for Message_Dragging, used to implement auto-scrolling and ghost caret when a drag is in prog...
void ro_gui_selection_send_dragging(wimp_pointer *pointer)
bool ro_gui_selection_prepare_paste_dataload(wimp_full_message_data_xfer *dataxfer)
Prepare to paste data from another application (step 3)
void ro_gui_selection_drag_claim(wimp_message *message)
function table for clipboard operations.
Definition: clipboard.h:42
first entry in window list
Definition: gui.c:296
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.
Definition: plot.c:821