Struct xpcom::interfaces::nsIWebBrowserFind [] [src]

#[repr(C)]
pub struct nsIWebBrowserFind { /* fields omitted */ }

interface nsIWebBrowserFind : nsISupports

/**
 * nsIWebBrowserFind
 *
 * Searches for text in a web browser.
 *
 * Get one by doing a GetInterface on an nsIWebBrowser.
 *
 * By default, the implementation will search the focussed frame, or
 * if there is no focussed frame, the web browser content area. It
 * does not by default search subframes or iframes. To change this
 * behaviour, and to explicitly set the frame to search,
 * QueryInterface to nsIWebBrowserFindInFrames.
 */

Methods

impl nsIWebBrowserFind
[src]

[src]

Cast this nsIWebBrowserFind to one of its base interfaces.

impl nsIWebBrowserFind
[src]

[src]

/**
     * findNext
     *
     * Finds, highlights, and scrolls into view the next occurrence of the
     * search string, using the current search settings. Fails if the
     * search string is empty.
     *
     * @return  Whether an occurrence was found
     */

boolean findNext ();

[src]

/**
     * searchString
     *
     * The string to search for. This must be non-empty to search.
     */

attribute wstring searchString;

[src]

/**
     * searchString
     *
     * The string to search for. This must be non-empty to search.
     */

attribute wstring searchString;

[src]

/**
     * findBackwards
     *
     * Whether to find backwards (towards the beginning of the document).
     * Default is false (search forward).
     */

attribute boolean findBackwards;

[src]

/**
     * findBackwards
     *
     * Whether to find backwards (towards the beginning of the document).
     * Default is false (search forward).
     */

attribute boolean findBackwards;

[src]

/**
     * wrapFind
     *
     * Whether the search wraps around to the start (or end) of the document
     * if no match was found between the current position and the end (or
     * beginning). Works correctly when searching backwards. Default is
     * false.
     */

attribute boolean wrapFind;

[src]

/**
     * wrapFind
     *
     * Whether the search wraps around to the start (or end) of the document
     * if no match was found between the current position and the end (or
     * beginning). Works correctly when searching backwards. Default is
     * false.
     */

attribute boolean wrapFind;

[src]

/**
     * entireWord
     *
     * Whether to match entire words only. Default is false.
     */

attribute boolean entireWord;

[src]

/**
     * entireWord
     *
     * Whether to match entire words only. Default is false.
     */

attribute boolean entireWord;

[src]

/**
     * matchCase
     *
     * Whether to match case (case sensitive) when searching. Default is false.
     */

attribute boolean matchCase;

[src]

/**
     * matchCase
     *
     * Whether to match case (case sensitive) when searching. Default is false.
     */

attribute boolean matchCase;

[src]

/**
     * searchFrames
     *
     * Whether to search through all frames in the content area. Default is true.
     *
     * Note that you can control whether the search propagates into child or
     * parent frames explicitly using nsIWebBrowserFindInFrames, but if one,
     * but not both, of searchSubframes and searchParentFrames are set, this
     * returns false.
     */

attribute boolean searchFrames;

[src]

/**
     * searchFrames
     *
     * Whether to search through all frames in the content area. Default is true.
     *
     * Note that you can control whether the search propagates into child or
     * parent frames explicitly using nsIWebBrowserFindInFrames, but if one,
     * but not both, of searchSubframes and searchParentFrames are set, this
     * returns false.
     */

attribute boolean searchFrames;

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIWebBrowserFind
[src]

IID: nsIID = nsID(3834773814, 46048, 18912, [177, 205, 108, 120, 61, 37, 145, 168])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIWebBrowserFind
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWebBrowserFind
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.