Struct xpcom::interfaces::nsIAccessibleHyperText
[−]
[src]
#[repr(C)]pub struct nsIAccessibleHyperText { /* fields omitted */ }
interface nsIAccessibleHyperText : nsISupports
/**
* A cross-platform interface that deals with text which contains hyperlinks.
* Each link is an embedded object representing exactly 1 character within
* the hypertext.
*
* Current implementation assumes every embedded object is a link.
*/
Methods
impl nsIAccessibleHyperText
[src]
pub fn coerce<T: nsIAccessibleHyperTextCoerce>(&self) -> &T
[src]
Cast this nsIAccessibleHyperText
to one of its base interfaces.
impl nsIAccessibleHyperText
[src]
pub unsafe fn GetLinkCount(&self, aLinkCount: *mut int32_t) -> nsresult
[src]
/**
* Return the number of links contained within this hypertext object.
*/
readonly attribute long linkCount;
pub unsafe fn GetLinkAt(
&self,
index: int32_t,
_retval: *mut *const nsIAccessibleHyperLink
) -> nsresult
[src]
&self,
index: int32_t,
_retval: *mut *const nsIAccessibleHyperLink
) -> nsresult
/**
* Return link accessible at the given index.
*
* @param index [in] 0-based index of the link that is to be retrieved
*
* @return link accessible or null if there is no link at that index
*/
nsIAccessibleHyperLink getLinkAt (in long index);
pub unsafe fn GetLinkIndex(
&self,
link: *const nsIAccessibleHyperLink,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
link: *const nsIAccessibleHyperLink,
_retval: *mut int32_t
) -> nsresult
/**
* Return index of the given link.
*
* @param link [in] link accessible the index is requested for
*
* @return index of the given link or null if there's no link within
* hypertext accessible
*/
long getLinkIndex (in nsIAccessibleHyperLink link);
pub unsafe fn GetLinkIndexAtOffset(
&self,
offset: int32_t,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
offset: int32_t,
_retval: *mut int32_t
) -> nsresult
long getLinkIndexAtOffset (in long offset);
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 nsIAccessibleHyperText
[src]
const IID: nsIID
IID: nsIID = nsID(3006694626, 2316, 19997, [163, 217, 244, 180, 111, 66, 55, 185])
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 nsIAccessibleHyperText
[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 nsIAccessibleHyperText
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.