Struct xpcom::interfaces::nsIAccessibleSelectable
[−]
[src]
#[repr(C)]pub struct nsIAccessibleSelectable { /* fields omitted */ }
interface nsIAccessibleSelectable : nsISupports
/**
* An accessibility interface for selectable widgets.
*/
Methods
impl nsIAccessibleSelectable
[src]
pub fn coerce<T: nsIAccessibleSelectableCoerce>(&self) -> &T
[src]
Cast this nsIAccessibleSelectable
to one of its base interfaces.
impl nsIAccessibleSelectable
[src]
pub unsafe fn GetSelectedItems(
&self,
aSelectedItems: *mut *const nsIArray
) -> nsresult
[src]
&self,
aSelectedItems: *mut *const nsIArray
) -> nsresult
/**
* Return an nsIArray of selected items within the widget.
*/
readonly attribute nsIArray selectedItems;
pub unsafe fn GetSelectedItemCount(
&self,
aSelectedItemCount: *mut uint32_t
) -> nsresult
[src]
&self,
aSelectedItemCount: *mut uint32_t
) -> nsresult
/**
* Return the number of currently selected items.
*/
readonly attribute unsigned long selectedItemCount;
pub unsafe fn GetSelectedItemAt(
&self,
index: uint32_t,
_retval: *mut *const nsIAccessible
) -> nsresult
[src]
&self,
index: uint32_t,
_retval: *mut *const nsIAccessible
) -> nsresult
/**
* Return a nth selected item within the widget.
*/
nsIAccessible getSelectedItemAt (in unsigned long index);
pub unsafe fn IsItemSelected(
&self,
index: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
index: uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Return true if the given item is selected.
*/
boolean isItemSelected (in unsigned long index);
pub unsafe fn AddItemToSelection(&self, index: uint32_t) -> nsresult
[src]
/**
* Adds the specified item to the widget's selection.
*/
void addItemToSelection (in unsigned long index);
pub unsafe fn RemoveItemFromSelection(&self, index: uint32_t) -> nsresult
[src]
/**
* Removes the specified item from the widget's selection.
*/
void removeItemFromSelection (in unsigned long index);
pub unsafe fn SelectAll(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Select all items.
*
* @return false if the object does not accept multiple selection,
* otherwise true.
*/
boolean selectAll ();
pub unsafe fn UnselectAll(&self) -> nsresult
[src]
/**
* Unselect all items.
*/
void unselectAll ();
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 nsIAccessibleSelectable
[src]
const IID: nsIID
IID: nsIID = nsID(2398815188, 4948, 18549, [148, 207, 38, 19, 54, 5, 118, 38])
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 nsIAccessibleSelectable
[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 nsIAccessibleSelectable
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.