Struct xpcom::interfaces::nsIFind
[−]
[src]
#[repr(C)]pub struct nsIFind { /* fields omitted */ }
interface nsIFind : nsISupports
Methods
impl nsIFind
[src]
impl nsIFind
[src]
pub unsafe fn GetFindBackwards(&self, aFindBackwards: *mut bool) -> nsresult
[src]
attribute boolean findBackwards;
pub unsafe fn SetFindBackwards(&self, aFindBackwards: bool) -> nsresult
[src]
attribute boolean findBackwards;
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 Find(
&self,
aPatText: *const int16_t,
aSearchRange: *const nsIDOMRange,
aStartPoint: *const nsIDOMRange,
aEndPoint: *const nsIDOMRange,
_retval: *mut *const nsIDOMRange
) -> nsresult
[src]
&self,
aPatText: *const int16_t,
aSearchRange: *const nsIDOMRange,
aStartPoint: *const nsIDOMRange,
aEndPoint: *const nsIDOMRange,
_retval: *mut *const nsIDOMRange
) -> nsresult
/**
* Find some text in the current context. The implementation is
* responsible for performing the find and highlighting the text.
*
* @param aPatText The text to search for.
* @param aSearchRange A Range specifying domain of search.
* @param aStartPoint A Range specifying search start point.
* If not collapsed, we'll start from
* end (forward) or start (backward).
* @param aEndPoint A Range specifying search end point.
* If not collapsed, we'll end at
* end (forward) or start (backward).
* @retval A range spanning the match that was found (or null).
*/
nsIDOMRange Find (in wstring aPatText, in nsIDOMRange aSearchRange, in nsIDOMRange aStartPoint, in nsIDOMRange aEndPoint);
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 nsIFind
[src]
const IID: nsIID
IID: nsIID = nsID(1084989712, 10838, 18040, [190, 144, 226, 193, 122, 154, 231, 215])
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 nsIFind
[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 nsIFind
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.