Struct xpcom::interfaces::nsIDOMCanvasRenderingContext2D [] [src]

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

interface nsIDOMCanvasRenderingContext2D : nsISupports

/**
 * This interface remains only for the constants, for a context, use the
 * WebIDL/Paris bindings instead (CanvasRenderingContext2D.webidl).
 * The constants are used by CanvasRenderingContext2D::DrawWindow and are
 * used in WindowsPreviewPerTab.jsm and some extensions. The constants can
 * be referenced directly via a canvas context 2d rather than this interface,
 * and that should be preferred in new code.
 */

Methods

impl nsIDOMCanvasRenderingContext2D
[src]

[src]

Cast this nsIDOMCanvasRenderingContext2D to one of its base interfaces.

impl nsIDOMCanvasRenderingContext2D
[src]

DRAWWINDOW_DRAW_CARET: i64 = 1

DRAWWINDOW_DO_NOT_FLUSH: i64 = 2

DRAWWINDOW_DRAW_VIEW: i64 = 4

DRAWWINDOW_USE_WIDGET_LAYERS: i64 = 8

DRAWWINDOW_ASYNC_DECODE_IMAGES: i64 = 16

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

IID: nsIID = nsID(1142409911, 51179, 19980, [176, 10, 196, 56, 66, 240, 203, 168])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMCanvasRenderingContext2D
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.