NetSurf
Enumerations | Functions
search.h File Reference

Browseing window text search interface. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  search_flags_t {
  SEARCH_FLAG_NONE = 0 , SEARCH_FLAG_CASE_SENSITIVE = (1 << 0) , SEARCH_FLAG_FORWARDS = (1 << 1) , SEARCH_FLAG_BACKWARDS = (1 << 2) ,
  SEARCH_FLAG_SHOWALL = (1 << 3)
}
 

Functions

void browser_window_search (struct browser_window *bw, void *context, search_flags_t flags, const char *string)
 Starts or continues an existing search. More...
 
void browser_window_search_clear (struct browser_window *bw)
 Clear up a search. More...
 

Detailed Description

Browseing window text search interface.

Definition in file search.h.

Enumeration Type Documentation

◆ search_flags_t

Enumerator
SEARCH_FLAG_NONE 
SEARCH_FLAG_CASE_SENSITIVE 
SEARCH_FLAG_FORWARDS 
SEARCH_FLAG_BACKWARDS 
SEARCH_FLAG_SHOWALL 

Definition at line 29 of file search.h.

Function Documentation

◆ browser_window_search()

void browser_window_search ( struct browser_window bw,
void *  context,
search_flags_t  flags,
const char *  string 
)

Starts or continues an existing search.

Parameters
bwThe browser_window to search.
contextA context pointer passed to the callbacks.
flagsFlags controlling the search operation.
stringThe string being searched for.

Definition at line 37 of file search.c.

References content_textsearch(), and browser_window::current_content.

Referenced by ami_search_event(), nsatari_search_perform(), nsgtk_search_back_button_clicked(), nsgtk_search_entry_activate(), nsgtk_search_entry_changed(), nsgtk_search_forward_button_clicked(), ro_gui_search_click(), ro_gui_search_keypress(), and ro_gui_search_next().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_search_clear()

void browser_window_search_clear ( struct browser_window bw)

Clear up a search.

Frees any memory used by the search.

Parameters
bwThe browser window to clean up the search for.

Definition at line 47 of file search.c.

References content_textsearch_clear(), and browser_window::current_content.

Referenced by ami_search_close(), ami_search_event(), ami_search_open(), back_button_clicked_cb(), forward_button_clicked_cb(), nsatari_search_perform(), nsatari_search_session_create(), nsatari_search_session_destroy(), nsgtk_search_toggle_visibility(), reload_button_clicked_cb(), reloadstop_button_clicked_cb(), ro_gui_search_click(), ro_gui_search_end(), and ro_gui_search_keypress().

Here is the call graph for this function:
Here is the caller graph for this function: