Struct xpcom::interfaces::nsIXULSortService
[−]
[src]
#[repr(C)]pub struct nsIXULSortService { /* fields omitted */ }
interface nsIXULSortService : nsISupports
/**
* A service used to sort the contents of a XUL widget.
*/
Methods
impl nsIXULSortService
[src]
pub fn coerce<T: nsIXULSortServiceCoerce>(&self) -> &T
[src]
Cast this nsIXULSortService
to one of its base interfaces.
impl nsIXULSortService
[src]
pub const SORT_COMPARECASE: i64
SORT_COMPARECASE: i64 = 1
pub const SORT_INTEGER: i64
SORT_INTEGER: i64 = 256
pub unsafe fn Sort(
&self,
aNode: *const nsIDOMNode,
aSortKey: &nsAString,
aSortHints: &nsAString
) -> nsresult
[src]
&self,
aNode: *const nsIDOMNode,
aSortKey: &nsAString,
aSortHints: &nsAString
) -> nsresult
/**
* Sort the contents of the widget containing <code>aNode</code>
* using <code>aSortKey</code> as the comparison key, and
* <code>aSortDirection</code> as the direction.
*
* @param aNode A node in the XUL widget whose children are to be sorted.
* @param aSortKey The value to be used as the comparison key.
* @param aSortHints One or more hints as to how to sort:
*
* ascending: to sort the contents in ascending order
* descending: to sort the contents in descending order
* comparecase: perform case sensitive comparisons
* integer: treat values as integers, non-integers are compared as strings
* twostate: don't allow the natural (unordered state)
*/
void sort (in nsIDOMNode aNode, in AString aSortKey, in AString aSortHints);
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 nsIXULSortService
[src]
const IID: nsIID
IID: nsIID = nsID(4069683400, 15333, 16454, [155, 87, 148, 90, 132, 223, 241, 50])
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 nsIXULSortService
[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 nsIXULSortService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.