Struct xpcom::interfaces::nsIDragSession [] [src]

#[repr(C)]
pub struct nsIDragSession { /* fields omitted */ }

interface nsIDragSession : nsISupports

Methods

impl nsIDragSession
[src]

[src]

Cast this nsIDragSession to one of its base interfaces.

impl nsIDragSession
[src]

[src]

/**
    * Set the current state of the drag, whether it can be dropped or not.
    * usually the target "frame" sets this so the native system can render the correct feedback
    */

attribute boolean canDrop;

[src]

/**
    * Set the current state of the drag, whether it can be dropped or not.
    * usually the target "frame" sets this so the native system can render the correct feedback
    */

attribute boolean canDrop;

[src]

/**
   * Indicates if the drop event should be dispatched only to chrome.
   */

attribute boolean onlyChromeDrop;

[src]

/**
   * Indicates if the drop event should be dispatched only to chrome.
   */

attribute boolean onlyChromeDrop;

[src]

/**
    * Sets the action (copy, move, link, et.c) for the current drag
    */

attribute unsigned long dragAction;

[src]

/**
    * Sets the action (copy, move, link, et.c) for the current drag
    */

attribute unsigned long dragAction;

[src]

/**
    * Get the number of items that were dropped
    */

readonly attribute unsigned long numDropItems;

[src]

/**
    * The document where the drag was started, which will be null if the
    * drag originated outside the application. Useful for determining if a drop
    * originated in the same document.
    */

readonly attribute nsIDOMDocument sourceDocument;

[src]

/**
    * The dom node that was originally dragged to start the session, which will be null if the
    * drag originated outside the application.
    */

readonly attribute nsIDOMNode sourceNode;

[src]

/**
   * The data transfer object for the current drag.
   */

attribute nsIDOMDataTransfer dataTransfer;

[src]

/**
   * The data transfer object for the current drag.
   */

attribute nsIDOMDataTransfer dataTransfer;

[src]

/**
    * Get data from a Drag&Drop. Can be called while the drag is in process
    * or after the drop has completed.
    *
    * @param  aTransferable the transferable for the data to be put into
    * @param  aItemIndex which of multiple drag items, zero-based
    */

void getData (in nsITransferable aTransferable, in unsigned long aItemIndex);

[src]

/**
    * Check to set if any of the native data on the clipboard matches this data flavor
    */

boolean isDataFlavorSupported (in string aDataFlavor);

[src]

void userCancelled ();

[src]

void dragEventDispatchedToChildProcess ();

[src]

void updateDragEffect ();

[src]

void updateDragImage (in nsIDOMNode aImage, in long aImageX, in long aImageY);

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

IID: nsIID = nsID(633136951, 29680, 17351, [188, 32, 199, 16, 68, 167, 60, 90])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDragSession
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.