Struct xpcom::interfaces::nsITypeAheadFind
[−]
[src]
#[repr(C)]pub struct nsITypeAheadFind { /* fields omitted */ }
interface nsITypeAheadFind : nsISupports
/****************************** nsTypeAheadFind ******************************/
Methods
impl nsITypeAheadFind
[src]
pub fn coerce<T: nsITypeAheadFindCoerce>(&self) -> &T
[src]
Cast this nsITypeAheadFind
to one of its base interfaces.
impl nsITypeAheadFind
[src]
pub const FIND_FOUND: i64
FIND_FOUND: i64 = 0
/******************************* Constants *******************************/
pub const FIND_NOTFOUND: i64
FIND_NOTFOUND: i64 = 1
pub const FIND_WRAPPED: i64
FIND_WRAPPED: i64 = 2
pub const FIND_PENDING: i64
FIND_PENDING: i64 = 3
pub unsafe fn Init(&self, aDocShell: *const nsIDocShell) -> nsresult
[src]
/****************************** Initializer ******************************/
void init (in nsIDocShell aDocShell);
pub unsafe fn Find(
&self,
aSearchString: &nsAString,
aLinksOnly: bool,
_retval: *mut uint16_t
) -> nsresult
[src]
&self,
aSearchString: &nsAString,
aLinksOnly: bool,
_retval: *mut uint16_t
) -> nsresult
/***************************** Core functions ****************************/
unsigned short find (in AString aSearchString, in boolean aLinksOnly);
pub unsafe fn FindAgain(
&self,
findBackwards: bool,
aLinksOnly: bool,
_retval: *mut uint16_t
) -> nsresult
[src]
&self,
findBackwards: bool,
aLinksOnly: bool,
_retval: *mut uint16_t
) -> nsresult
unsigned short findAgain (in boolean findBackwards, in boolean aLinksOnly);
pub unsafe fn GetFoundRange(&self, _retval: *mut *const nsIDOMRange) -> nsresult
[src]
nsIDOMRange getFoundRange ();
pub unsafe fn SetDocShell(&self, aDocShell: *const nsIDocShell) -> nsresult
[src]
/**************************** Helper functions ***************************/
void setDocShell (in nsIDocShell aDocShell);
pub unsafe fn SetSelectionModeAndRepaint(&self, toggle: int16_t) -> nsresult
[src]
void setSelectionModeAndRepaint (in short toggle);
pub unsafe fn CollapseSelection(&self) -> nsresult
[src]
void collapseSelection ();
pub unsafe fn IsRangeVisible(
&self,
aRange: *const nsIDOMRange,
aMustBeInViewPort: bool,
_retval: *mut bool
) -> nsresult
[src]
&self,
aRange: *const nsIDOMRange,
aMustBeInViewPort: bool,
_retval: *mut bool
) -> nsresult
boolean isRangeVisible (in nsIDOMRange aRange, in boolean aMustBeInViewPort);
pub unsafe fn IsRangeRendered(
&self,
aRange: *const nsIDOMRange,
_retval: *mut bool
) -> nsresult
[src]
&self,
aRange: *const nsIDOMRange,
_retval: *mut bool
) -> nsresult
boolean isRangeRendered (in nsIDOMRange aRange);
pub unsafe fn GetSearchString(&self, aSearchString: &mut nsAString) -> nsresult
[src]
/******************************* Attributes ******************************/
readonly attribute AString searchString;
pub unsafe fn GetCaseSensitive(&self, aCaseSensitive: *mut bool) -> nsresult
[src]
attribute boolean caseSensitive;
pub unsafe fn SetCaseSensitive(&self, aCaseSensitive: bool) -> nsresult
[src]
attribute boolean caseSensitive;
pub unsafe fn GetEntireWord(&self, aEntireWord: *mut bool) -> nsresult
[src]
attribute boolean entireWord;
pub unsafe fn SetEntireWord(&self, aEntireWord: bool) -> nsresult
[src]
attribute boolean entireWord;
pub unsafe fn GetFoundLink(
&self,
aFoundLink: *mut *const nsIDOMElement
) -> nsresult
[src]
&self,
aFoundLink: *mut *const nsIDOMElement
) -> nsresult
readonly attribute nsIDOMElement foundLink;
pub unsafe fn GetFoundEditable(
&self,
aFoundEditable: *mut *const nsIDOMElement
) -> nsresult
[src]
&self,
aFoundEditable: *mut *const nsIDOMElement
) -> nsresult
readonly attribute nsIDOMElement foundEditable;
pub unsafe fn GetCurrentWindow(
&self,
aCurrentWindow: *mut *const mozIDOMWindow
) -> nsresult
[src]
&self,
aCurrentWindow: *mut *const mozIDOMWindow
) -> nsresult
readonly attribute mozIDOMWindow currentWindow;
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 nsITypeAheadFind
[src]
const IID: nsIID
IID: nsIID = nsID(2924486184, 50559, 18066, [172, 116, 65, 14, 27, 237, 152, 183])
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 nsITypeAheadFind
[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 nsITypeAheadFind
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.