Struct xpcom::interfaces::nsIQueryContentEventResult
[−]
[src]
#[repr(C)]pub struct nsIQueryContentEventResult { /* fields omitted */ }
interface nsIQueryContentEventResult : nsISupports
/**
* The result of query content events. succeeded propery can be used always.
* Whether other properties can be used or not depends on the event.
* See nsIDOMWindowUtils.idl, which properites can be used was documented.
*/
Methods
impl nsIQueryContentEventResult
[src]
pub fn coerce<T: nsIQueryContentEventResultCoerce>(&self) -> &T
[src]
Cast this nsIQueryContentEventResult
to one of its base interfaces.
impl nsIQueryContentEventResult
[src]
pub unsafe fn GetOffset(&self, aOffset: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long offset;
pub unsafe fn GetTentativeCaretOffset(
&self,
aTentativeCaretOffset: *mut uint32_t
) -> nsresult
[src]
&self,
aTentativeCaretOffset: *mut uint32_t
) -> nsresult
readonly attribute unsigned long tentativeCaretOffset;
pub unsafe fn GetReversed(&self, aReversed: *mut bool) -> nsresult
[src]
readonly attribute boolean reversed;
pub unsafe fn GetLeft(&self, aLeft: *mut int32_t) -> nsresult
[src]
readonly attribute long left;
pub unsafe fn GetTop(&self, aTop: *mut int32_t) -> nsresult
[src]
readonly attribute long top;
pub unsafe fn GetWidth(&self, aWidth: *mut int32_t) -> nsresult
[src]
readonly attribute long width;
pub unsafe fn GetHeight(&self, aHeight: *mut int32_t) -> nsresult
[src]
readonly attribute long height;
pub unsafe fn GetText(&self, aText: &mut nsAString) -> nsresult
[src]
readonly attribute AString text;
pub unsafe fn GetCharacterRect(
&self,
offset: int32_t,
left: *mut int32_t,
top: *mut int32_t,
width: *mut int32_t,
height: *mut int32_t
) -> nsresult
[src]
&self,
offset: int32_t,
left: *mut int32_t,
top: *mut int32_t,
width: *mut int32_t,
height: *mut int32_t
) -> nsresult
void getCharacterRect (in long offset, out long left, out long top, out long width, out long height);
pub unsafe fn GetSucceeded(&self, aSucceeded: *mut bool) -> nsresult
[src]
readonly attribute boolean succeeded;
pub unsafe fn GetNotFound(&self, aNotFound: *mut bool) -> nsresult
[src]
readonly attribute boolean notFound;
pub unsafe fn GetTentativeCaretOffsetNotFound(
&self,
aTentativeCaretOffsetNotFound: *mut bool
) -> nsresult
[src]
&self,
aTentativeCaretOffsetNotFound: *mut bool
) -> nsresult
readonly attribute boolean tentativeCaretOffsetNotFound;
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 nsIQueryContentEventResult
[src]
const IID: nsIID
IID: nsIID = nsID(3804470798, 13407, 17690, [167, 178, 224, 35, 13, 85, 88, 71])
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 nsIQueryContentEventResult
[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 nsIQueryContentEventResult
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.