webkit.find_controller
Module for [FindController] class
Types 3
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.WebView.getFindController], and later use it to search for text using [webkit.find_controller.FindController.search], or get the number of matches using [webkit.find_controller.FindController.countMatches]. The operations are asynchronous and trigger signals when ready, such as #WebKitFindController::found-text, #WebKitFindController::failed-to-find-text or #WebKitFindController::counted-matches<!-- -->.
Methods
FindController self()Returns `this`, for use in `with` statements.FindControllerGidBuilder builder()Get builder for [webkit.find_controller.FindController] Returns: New builder objectuint maxMatchCount() @propertyGet `maxMatchCount` property. Returns: The maximum number of matches to report for a given search.webkit.types.FindOptions options() @propertyGet `options` property. Returns: The options to be used in the search operation.string text() @propertyGet `text` property. Returns: The current search text for this #WebKitFindController.webkit.web_view.WebView webView() @propertyGet `webView` property. Returns: The #WebKitWebView this controller is associated to.void countMatches(string searchText, uint findOptions, uint maxMatchCount)Counts the number of matches for search_text.uint getMaxMatchCount()Gets the maximum number of matches to report.uint getOptions()Gets the #WebKitFindOptions for the current search.string getSearchText()Gets the text that find_controller is searching for.webkit.web_view.WebView getWebView()Gets the #WebKitWebView this find controller is associated to.void search(string searchText, uint findOptions, uint maxMatchCount)Looks for searchtext associated with findcontroller.void searchFinish()Finishes a find operation.void searchNext()Looks for the next occurrence of the search text.void searchPrevious()Looks for the previous occurrence of the search text.gulong connectCountedMatches(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.find_controller.FindController)))
&& Parameters!T.length < 3)Connect to `CountedMatches` signal.gulong connectFailedToFindText(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.find_controller.FindController)))
&& Parameters!T.length < 2)Connect to `FailedToFindText` signal.gulong connectFoundText(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.find_controller.FindController)))
&& Parameters!T.length < 3)Connect to `FoundText` signal.Methods
T webView(webkit.web_view.WebView propval)Set `webView` property. Params: propval = The #WebKitWebView this controller is associated to. Returns: Builder instance for fluent chainingFluent builder for [webkit.find_controller.FindController]
Methods