Struct xpcom::interfaces::nsIAutoCompleteResult
[−]
[src]
#[repr(C)]pub struct nsIAutoCompleteResult { /* fields omitted */ }
interface nsIAutoCompleteResult : nsISupports
Methods
impl nsIAutoCompleteResult
[src]
pub fn coerce<T: nsIAutoCompleteResultCoerce>(&self) -> &T
[src]
Cast this nsIAutoCompleteResult
to one of its base interfaces.
impl nsIAutoCompleteResult
[src]
pub const RESULT_IGNORED: i64
RESULT_IGNORED: i64 = 1
/**
* Possible values for the searchResult attribute
*/
pub const RESULT_FAILURE: i64
RESULT_FAILURE: i64 = 2
pub const RESULT_NOMATCH: i64
RESULT_NOMATCH: i64 = 3
pub const RESULT_SUCCESS: i64
RESULT_SUCCESS: i64 = 4
pub const RESULT_NOMATCH_ONGOING: i64
RESULT_NOMATCH_ONGOING: i64 = 5
pub const RESULT_SUCCESS_ONGOING: i64
RESULT_SUCCESS_ONGOING: i64 = 6
pub unsafe fn GetSearchString(&self, aSearchString: &mut nsAString) -> nsresult
[src]
/**
* The original search string
*/
readonly attribute AString searchString;
pub unsafe fn GetSearchResult(&self, aSearchResult: *mut uint16_t) -> nsresult
[src]
/**
* The result of the search
*/
readonly attribute unsigned short searchResult;
pub unsafe fn GetDefaultIndex(&self, aDefaultIndex: *mut int32_t) -> nsresult
[src]
/**
* Index of the default item that should be entered if none is selected
*/
readonly attribute long defaultIndex;
pub unsafe fn GetErrorDescription(
&self,
aErrorDescription: &mut nsAString
) -> nsresult
[src]
&self,
aErrorDescription: &mut nsAString
) -> nsresult
/**
* A string describing the cause of a search failure
*/
readonly attribute AString errorDescription;
pub unsafe fn GetMatchCount(&self, aMatchCount: *mut uint32_t) -> nsresult
[src]
/**
* The number of matches
*/
readonly attribute unsigned long matchCount;
pub unsafe fn GetValueAt(
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Get the value of the result at the given index
*/
AString getValueAt (in long index);
pub unsafe fn GetLabelAt(
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
/**
* This returns the string that is displayed in the dropdown
*/
AString getLabelAt (in long index);
pub unsafe fn GetCommentAt(
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Get the comment of the result at the given index
*/
AString getCommentAt (in long index);
pub unsafe fn GetStyleAt(
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Get the style hint for the result at the given index
*/
AString getStyleAt (in long index);
pub unsafe fn GetImageAt(
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Get the image of the result at the given index
*/
AString getImageAt (in long index);
pub unsafe fn GetFinalCompleteValueAt(
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
index: int32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Get the final value that should be completed when the user confirms
* the match at the given index.
*/
AString getFinalCompleteValueAt (in long index);
pub unsafe fn RemoveValueAt(
&self,
rowIndex: int32_t,
removeFromDb: bool
) -> nsresult
[src]
&self,
rowIndex: int32_t,
removeFromDb: bool
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIAutoCompleteResult
[src]
const IID: nsIID
IID: nsIID = nsID(2449719345, 50407, 17719, [164, 236, 129, 68, 61, 98, 61, 90])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIAutoCompleteResult
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.