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]

[src]

Cast this nsIXULSortService to one of its base interfaces.

impl nsIXULSortService
[src]

SORT_COMPARECASE: i64 = 1

SORT_INTEGER: i64 = 256

[src]

/**
     * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIXULSortService
[src]

IID: nsIID = nsID(4069683400, 15333, 16454, [155, 87, 148, 90, 132, 223, 241, 50])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIXULSortService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.