Struct xpcom::interfaces::nsIAccessibleHyperLink
[−]
[src]
#[repr(C)]pub struct nsIAccessibleHyperLink { /* fields omitted */ }
interface nsIAccessibleHyperLink : nsISupports
/**
* A cross-platform interface that supports hyperlink-specific properties and
* methods. Anchors, image maps, xul:labels with class="text-link" implement this interface.
*/
Methods
impl nsIAccessibleHyperLink
[src]
pub fn coerce<T: nsIAccessibleHyperLinkCoerce>(&self) -> &T
[src]
Cast this nsIAccessibleHyperLink
to one of its base interfaces.
impl nsIAccessibleHyperLink
[src]
pub unsafe fn GetStartIndex(&self, aStartIndex: *mut int32_t) -> nsresult
[src]
/**
* Returns the offset of the link within the parent accessible.
*/
readonly attribute long startIndex;
pub unsafe fn GetEndIndex(&self, aEndIndex: *mut int32_t) -> nsresult
[src]
/**
* Returns the end index of the link within the parent accessible.
*
* @note The link itself is represented by one embedded character within the
* parent text, so the endIndex should be startIndex + 1.
*/
readonly attribute long endIndex;
pub unsafe fn GetValid(&self, aValid: *mut bool) -> nsresult
[src]
/**
* Determines whether the link is valid (e. g. points to a valid URL).
*
* @note XXX Currently only used with ARIA links, and the author has to
* specify that the link is invalid via the aria-invalid="true" attribute.
* In all other cases, TRUE is returned.
*/
readonly attribute boolean valid;
pub unsafe fn GetAnchorCount(&self, aAnchorCount: *mut int32_t) -> nsresult
[src]
/**
* The numbber of anchors within this Hyperlink. Is normally 1 for anchors.
* This anchor is, for example, the visible output of the html:a tag.
* With an Image Map, reflects the actual areas within the map.
*/
readonly attribute long anchorCount;
pub unsafe fn GetURI(
&self,
index: int32_t,
_retval: *mut *const nsIURI
) -> nsresult
[src]
&self,
index: int32_t,
_retval: *mut *const nsIURI
) -> nsresult
/**
* Returns the URI at the given index.
*
* @note ARIA hyperlinks do not have an URI to point to, since clicks are
* processed via JavaScript. Therefore this property does not work on ARIA
* links.
*
* @param index The 0-based index of the URI to be returned.
*
* @return the nsIURI object containing the specifications for the URI.
*/
nsIURI getURI (in long index);
pub unsafe fn GetAnchor(
&self,
index: int32_t,
_retval: *mut *const nsIAccessible
) -> nsresult
[src]
&self,
index: int32_t,
_retval: *mut *const nsIAccessible
) -> nsresult
/**
* Returns a reference to the object at the given index.
*
* @param index The 0-based index whose object is to be returned.
*
* @return the nsIAccessible object at the desired index.
*/
nsIAccessible getAnchor (in long index);
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 nsIAccessibleHyperLink
[src]
const IID: nsIID
IID: nsIID = nsID(2285257684, 37797, 20274, [146, 44, 111, 6, 224, 19, 99, 193])
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 nsIAccessibleHyperLink
[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 nsIAccessibleHyperLink
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.