NetSurf
search.h
Go to the documentation of this file.
1/*
2 * Copyright 2009 Mark Benjamin <netsurf-browser.org.MarkBenjamin@dfgh.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/**
20 * \file
21 * free text page search for gtk interface
22 */
23
24#ifndef NETSURF_GTK_SEARCH_H_
25#define NETSURF_GTK_SEARCH_H_
26
28
29struct gtk_search;
30
31/**
32 * create text search context
33 *
34 * \param builder the gtk builder containing the search toolbar
35 * \param bw The browsing context to run the find operations against
36 * \param search search context result
37 * \return NSERROR_OK and search_out updated
38 */
39nserror nsgtk_search_create(GtkBuilder *builder, struct browser_window *bw, struct gtk_search **search);
40
41/**
42 * update search toolbar size and style
43 */
45
46/**
47 * toggle search bar visibility
48 */
50
51#endif
nserror
Enumeration of error codes.
Definition: errors.h:29
struct gui_search_table * nsgtk_search_table
Definition: search.c:221
nserror nsgtk_search_restyle(struct gtk_search *search)
update search toolbar size and style
Definition: search.c:245
nserror nsgtk_search_toggle_visibility(struct gtk_search *search)
toggle search bar visibility
Definition: search.c:225
nserror nsgtk_search_create(GtkBuilder *builder, struct browser_window *bw, struct gtk_search **search)
create text search context
Definition: search.c:284
Browser window data.
struct browser_window * bw
Definition: search.c:51
function table for page text search.
Definition: search.h:31