Struct xpcom::interfaces::nsIAccessibilityService
[−]
[src]
#[repr(C)]pub struct nsIAccessibilityService { /* fields omitted */ }
interface nsIAccessibilityService : nsISupports
/**
* An interface for in-process accessibility clients wishing to get an
* nsIAccessible for a given DOM node. More documentation at:
* http://www.mozilla.org/projects/ui/accessibility
*/
Methods
impl nsIAccessibilityService
[src]
pub fn coerce<T: nsIAccessibilityServiceCoerce>(&self) -> &T
[src]
Cast this nsIAccessibilityService
to one of its base interfaces.
impl nsIAccessibilityService
[src]
pub unsafe fn GetApplicationAccessible(
&self,
_retval: *mut *const nsIAccessible
) -> nsresult
[src]
&self,
_retval: *mut *const nsIAccessible
) -> nsresult
/**
* Return application accessible.
*/
nsIAccessible getApplicationAccessible ();
pub unsafe fn GetAccessibleFor(
&self,
aNode: *const nsIDOMNode,
_retval: *mut *const nsIAccessible
) -> nsresult
[src]
&self,
aNode: *const nsIDOMNode,
_retval: *mut *const nsIAccessible
) -> nsresult
/**
* Return an nsIAccessible for a DOM node in pres shell 0.
* Create a new accessible of the appropriate type if necessary,
* or use one from the accessibility cache if it already exists.
* @param aNode The DOM node to get an accessible for.
* @return The nsIAccessible for the given DOM node.
*/
nsIAccessible getAccessibleFor (in nsIDOMNode aNode);
pub unsafe fn GetStringRole(
&self,
aRole: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aRole: uint32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Returns accessible role as a string.
*
* @param aRole - the accessible role constants.
*/
AString getStringRole (in unsigned long aRole);
pub unsafe fn GetStringStates(
&self,
aStates: uint32_t,
aExtraStates: uint32_t,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aStates: uint32_t,
aExtraStates: uint32_t,
_retval: *mut *const nsISupports
) -> nsresult
/**
* Returns list which contains accessible states as a strings.
*
* @param aStates - accessible states.
* @param aExtraStates - accessible extra states.
*/
nsISupports getStringStates (in unsigned long aStates, in unsigned long aExtraStates);
pub unsafe fn GetStringEventType(
&self,
aEventType: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aEventType: uint32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Get the type of accessible event as a string.
*
* @param aEventType - the accessible event type constant
* @return - accessible event type presented as human readable string
*/
AString getStringEventType (in unsigned long aEventType);
pub unsafe fn GetStringRelationType(
&self,
aRelationType: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aRelationType: uint32_t,
_retval: &mut nsAString
) -> nsresult
/**
* Get the type of accessible relation as a string.
*
* @param aRelationType - the accessible relation type constant
* @return - accessible relation type presented as human readable string
*/
AString getStringRelationType (in unsigned long aRelationType);
pub unsafe fn GetAccessibleFromCache(
&self,
aNode: *const nsIDOMNode,
_retval: *mut *const nsIAccessible
) -> nsresult
[src]
&self,
aNode: *const nsIDOMNode,
_retval: *mut *const nsIAccessible
) -> nsresult
/**
* Return an accessible for the given DOM node from the cache.
* @note the method is intended for testing purposes
*
* @param aNode [in] the DOM node to get an accessible for
*
* @return cached accessible for the given DOM node if any
*/
nsIAccessible getAccessibleFromCache (in nsIDOMNode aNode);
pub unsafe fn CreateAccessiblePivot(
&self,
aRoot: *const nsIAccessible,
_retval: *mut *const nsIAccessiblePivot
) -> nsresult
[src]
&self,
aRoot: *const nsIAccessible,
_retval: *mut *const nsIAccessiblePivot
) -> nsresult
/**
* Create a new pivot for tracking a position and traversing a subtree.
*
* @param aRoot [in] the accessible root for the pivot
* @return a new pivot
*/
nsIAccessiblePivot createAccessiblePivot (in nsIAccessible aRoot);
pub unsafe fn SetLogging(&self, aModules: &nsACString) -> nsresult
[src]
/**
* Enable logging for the given modules, all other modules aren't logged.
*
* @param aModules [in] list of modules, format is comma separated list
* like 'docload,doccreate'.
* @note Works on debug build only.
* @see Logging.cpp for list of possible values.
*/
void setLogging (in ACString aModules);
pub unsafe fn IsLogged(
&self,
aModule: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
aModule: &nsAString,
_retval: *mut bool
) -> nsresult
/**
* Return true if the given module is logged.
*/
boolean isLogged (in AString aModule);
pub unsafe fn GetConsumers(&self, _retval: &mut nsAString) -> nsresult
[src]
/**
* Get the current accessibility service consumers.
* @returns a JSON string representing the accessibility service consumers.
*/
AString getConsumers ();
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 nsIAccessibilityService
[src]
const IID: nsIID
IID: nsIID = nsID(562619296, 51342, 4583, [143, 26, 8, 0, 32, 12, 154, 102])
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 nsIAccessibilityService
[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 nsIAccessibilityService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.