FindController

class FindController(pointer: <Error class: unknown class><<Error class: unknown class>>)

Controls text search in a #WebKitWebView.

A #WebKitFindController is used to search text in a #WebKitWebView. You can get a #WebKitWebView's #WebKitFindController with webkit_web_view_get_find_controller(), and later use it to search for text using webkit_find_controller_search(), or get the number of matches using webkit_find_controller_count_matches(). The operations are asynchronous and trigger signals when ready, such as #WebKitFindController::found-text, #WebKitFindController::failed-to-find-text or #WebKitFindController::counted-matches.

Skipped during bindings generation

  • method text: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val maxMatchCount: <Error class: unknown class>

The maximum number of matches to report for a given search.

Link copied to clipboard
val options: <Error class: unknown class>

The options to be used in the search operation.

Link copied to clipboard
val webkitFindControllerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The #WebKitWebView this controller is associated to.

Functions

Link copied to clipboard
fun connectCountedMatches(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>) -> Unit): <Error class: unknown class>

This signal is emitted when the #WebKitFindController has counted the number of matches for a given text after a call to webkit_find_controller_count_matches().

Link copied to clipboard
fun connectFailedToFindText(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

This signal is emitted when a search operation does not find any result for the given text. It will be issued if the text is not found asynchronously after a call to webkit_find_controller_search(), webkit_find_controller_search_next() or webkit_find_controller_search_previous().

Link copied to clipboard
fun connectFoundText(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>) -> Unit): <Error class: unknown class>

This signal is emitted when a given text is found in the web page text. It will be issued if the text is found asynchronously after a call to webkit_find_controller_search(), webkit_find_controller_search_next() or webkit_find_controller_search_previous().

Link copied to clipboard
fun countMatches(searchText: String, findOptions: <Error class: unknown class>, maxMatchCount: <Error class: unknown class>)

Counts the number of matches for @search_text.

Link copied to clipboard

Gets the text that @find_controller is searching for.

Link copied to clipboard
fun search(searchText: String, findOptions: <Error class: unknown class>, maxMatchCount: <Error class: unknown class>)

Looks for @search_text associated with @find_controller.

Link copied to clipboard

Finishes a find operation.

Link copied to clipboard

Looks for the next occurrence of the search text.

Link copied to clipboard

Looks for the previous occurrence of the search text.