Struct xpcom::interfaces::nsIAccessiblePivot
[−]
[src]
#[repr(C)]pub struct nsIAccessiblePivot { /* fields omitted */ }
interface nsIAccessiblePivot : nsISupports
/**
* The pivot interface encapsulates a reference to a single place in an accessible
* subtree. The pivot is a point or a range in the accessible tree. This interface
* provides traversal methods to move the pivot to next/prev state that complies
* to a given rule.
*/
Methods
impl nsIAccessiblePivot
[src]
pub fn coerce<T: nsIAccessiblePivotCoerce>(&self) -> &T
[src]
Cast this nsIAccessiblePivot
to one of its base interfaces.
impl nsIAccessiblePivot
[src]
pub const CHAR_BOUNDARY: i64
CHAR_BOUNDARY: i64 = 0
pub const WORD_BOUNDARY: i64
WORD_BOUNDARY: i64 = 1
pub const LINE_BOUNDARY: i64
LINE_BOUNDARY: i64 = 2
pub const ATTRIBUTE_RANGE_BOUNDARY: i64
ATTRIBUTE_RANGE_BOUNDARY: i64 = 3
pub const REASON_NONE: i64
REASON_NONE: i64 = 0
pub const REASON_NEXT: i64
REASON_NEXT: i64 = 1
pub const REASON_PREV: i64
REASON_PREV: i64 = 2
pub const REASON_FIRST: i64
REASON_FIRST: i64 = 3
pub const REASON_LAST: i64
REASON_LAST: i64 = 4
pub const REASON_TEXT: i64
REASON_TEXT: i64 = 5
pub const REASON_POINT: i64
REASON_POINT: i64 = 6
pub unsafe fn GetPosition(
&self,
aPosition: *mut *const nsIAccessible
) -> nsresult
[src]
&self,
aPosition: *mut *const nsIAccessible
) -> nsresult
/**
* The accessible the pivot is currently pointed at.
*/
attribute nsIAccessible position;
pub unsafe fn SetPosition(&self, aPosition: *const nsIAccessible) -> nsresult
[src]
/**
* The accessible the pivot is currently pointed at.
*/
attribute nsIAccessible position;
pub unsafe fn GetRoot(&self, aRoot: *mut *const nsIAccessible) -> nsresult
[src]
/**
* The root of the subtree in which the pivot traverses.
*/
readonly attribute nsIAccessible root;
pub unsafe fn GetModalRoot(
&self,
aModalRoot: *mut *const nsIAccessible
) -> nsresult
[src]
&self,
aModalRoot: *mut *const nsIAccessible
) -> nsresult
/**
* The temporary modal root to which traversal is limited to.
*/
attribute nsIAccessible modalRoot;
pub unsafe fn SetModalRoot(&self, aModalRoot: *const nsIAccessible) -> nsresult
[src]
/**
* The temporary modal root to which traversal is limited to.
*/
attribute nsIAccessible modalRoot;
pub unsafe fn GetStartOffset(&self, aStartOffset: *mut int32_t) -> nsresult
[src]
/**
* The start offset of the text range the pivot points at, otherwise -1.
*/
readonly attribute long startOffset;
pub unsafe fn GetEndOffset(&self, aEndOffset: *mut int32_t) -> nsresult
[src]
/**
* The end offset of the text range the pivot points at, otherwise -1.
*/
readonly attribute long endOffset;
pub unsafe fn AddObserver(
&self,
aObserver: *const nsIAccessiblePivotObserver
) -> nsresult
[src]
&self,
aObserver: *const nsIAccessiblePivotObserver
) -> nsresult
/**
* Add an observer for pivot changes.
*
* @param aObserver [in] the observer object to be notified of pivot changes.
*/
void addObserver (in nsIAccessiblePivotObserver aObserver);
pub unsafe fn RemoveObserver(
&self,
aObserver: *const nsIAccessiblePivotObserver
) -> nsresult
[src]
&self,
aObserver: *const nsIAccessiblePivotObserver
) -> nsresult
/**
* Remove an observer for pivot changes.
*
* @param aObserver [in] the observer object to remove from being notified.
*/
void removeObserver (in nsIAccessiblePivotObserver aObserver);
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 nsIAccessiblePivot
[src]
const IID: nsIID
IID: nsIID = nsID(2180927812, 1435, 17115, [189, 58, 246, 206, 49, 88, 213, 233])
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 nsIAccessiblePivot
[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 nsIAccessiblePivot
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.