Struct xpcom::interfaces::nsIAutoCompleteResult [] [src]

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

interface nsIAutoCompleteResult : nsISupports

Methods

impl nsIAutoCompleteResult
[src]

[src]

Cast this nsIAutoCompleteResult to one of its base interfaces.

impl nsIAutoCompleteResult
[src]

RESULT_IGNORED: i64 = 1
/**
   * Possible values for the searchResult attribute
   */

RESULT_FAILURE: i64 = 2

RESULT_NOMATCH: i64 = 3

RESULT_SUCCESS: i64 = 4

RESULT_NOMATCH_ONGOING: i64 = 5

RESULT_SUCCESS_ONGOING: i64 = 6

[src]

/**
   * The original search string
   */

readonly attribute AString searchString;

[src]

/**
   * The result of the search
   */

readonly attribute unsigned short searchResult;

[src]

/**
   * Index of the default item that should be entered if none is selected
   */

readonly attribute long defaultIndex;

[src]

/**
   * A string describing the cause of a search failure
   */

readonly attribute AString errorDescription;

[src]

/**
   * The number of matches
   */

readonly attribute unsigned long matchCount;

[src]

/**
   * Get the value of the result at the given index
   */

AString getValueAt (in long index);

[src]

/**
   * This returns the string that is displayed in the dropdown
   */

AString getLabelAt (in long index);

[src]

/**
   * Get the comment of the result at the given index
   */

AString getCommentAt (in long index);

[src]

/**
   * Get the style hint for the result at the given index
   */

AString getStyleAt (in long index);

[src]

/**
   * Get the image of the result at the given index
   */

AString getImageAt (in long index);

[src]

/**
   * Get the final value that should be completed when the user confirms
   * the match at the given index.
   */

AString getFinalCompleteValueAt (in long index);

[src]

/**
   * Remove the value at the given index from the autocomplete results.
   * If removeFromDb is set to true, the value should be removed from
   * persistent storage as well.
   */

void removeValueAt (in long rowIndex, in boolean removeFromDb);

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 nsIAutoCompleteResult
[src]

IID: nsIID = nsID(2449719345, 50407, 17719, [164, 236, 129, 68, 61, 98, 61, 90])

[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 nsIAutoCompleteResult
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAutoCompleteResult
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.