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]
pub fn coerce<T: nsIDOMCanvasRenderingContext2DCoerce>(&self) -> &T
[src]
Cast this nsIDOMCanvasRenderingContext2D
to one of its base interfaces.
impl nsIDOMCanvasRenderingContext2D
[src]
pub const DRAWWINDOW_DRAW_CARET: i64
DRAWWINDOW_DRAW_CARET: i64 = 1
pub const DRAWWINDOW_DO_NOT_FLUSH: i64
DRAWWINDOW_DO_NOT_FLUSH: i64 = 2
pub const DRAWWINDOW_DRAW_VIEW: i64
DRAWWINDOW_DRAW_VIEW: i64 = 4
pub const DRAWWINDOW_USE_WIDGET_LAYERS: i64
DRAWWINDOW_USE_WIDGET_LAYERS: i64 = 8
pub const DRAWWINDOW_ASYNC_DECODE_IMAGES: i64
DRAWWINDOW_ASYNC_DECODE_IMAGES: i64 = 16
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 nsIDOMCanvasRenderingContext2D
[src]
const IID: nsIID
IID: nsIID = nsID(1142409911, 51179, 19980, [176, 10, 196, 56, 66, 240, 203, 168])
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 nsIDOMCanvasRenderingContext2D
[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 nsIDOMCanvasRenderingContext2D
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.