1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* This file is part of the GtkHTML library |
---|
3 | |
---|
4 | Copyright (C) 2000 Helix Code, Inc. |
---|
5 | |
---|
6 | This library is free software; you can redistribute it and/or |
---|
7 | modify it under the terms of the GNU Library General Public |
---|
8 | License as published by the Free Software Foundation; either |
---|
9 | version 2 of the License, or (at your option) any later version. |
---|
10 | |
---|
11 | This library is distributed in the hope that it will be useful, |
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | MERCHcANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | Library General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU Library General Public License |
---|
17 | along with this library; see the file COPYING.LIB. If not, write to |
---|
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
19 | Boston, MA 02111-1307, USA. |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef _HTML_SELECTION_H_ |
---|
23 | #define _HTML_SELECTION_H_ |
---|
24 | |
---|
25 | #include "htmltypes.h" |
---|
26 | |
---|
27 | void html_engine_select_interval (HTMLEngine *e, |
---|
28 | HTMLInterval *i); |
---|
29 | void html_engine_select_region (HTMLEngine *e, |
---|
30 | gint x1, |
---|
31 | gint y1, |
---|
32 | gint x2, |
---|
33 | gint y2); |
---|
34 | void html_engine_select_word (HTMLEngine *e); |
---|
35 | void html_engine_select_line (HTMLEngine *e); |
---|
36 | void html_engine_select_all (HTMLEngine *e); |
---|
37 | void html_engine_unselect_all (HTMLEngine *e); |
---|
38 | void html_engine_clear_selection (HTMLEngine *e); |
---|
39 | void html_engine_disable_selection (HTMLEngine *e); |
---|
40 | gchar *html_engine_get_selection_string (HTMLEngine *e); |
---|
41 | gboolean html_engine_is_selection_active (HTMLEngine *e); |
---|
42 | gboolean html_engine_point_in_selection (HTMLEngine *e, |
---|
43 | HTMLObject *obj, |
---|
44 | guint offset); |
---|
45 | void html_engine_activate_selection (HTMLEngine *e, |
---|
46 | guint32 time); |
---|
47 | void html_engine_deactivate_selection (HTMLEngine *e); |
---|
48 | void html_engine_update_selection_active_state (HTMLEngine *e, |
---|
49 | guint32 time); |
---|
50 | void html_engine_block_selection (HTMLEngine *e); |
---|
51 | void html_engine_unblock_selection (HTMLEngine *e); |
---|
52 | gboolean html_selection_word (gunichar uc); |
---|
53 | gboolean html_selection_spell_word (gunichar uc, |
---|
54 | gboolean *cited); |
---|
55 | guint32 html_selection_current_time (void); |
---|
56 | |
---|
57 | #endif |
---|