Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsCanvasPattern Class Reference
Inheritance diagram for nsCanvasPattern:
Inheritance graph
[legend]
Collaboration diagram for nsCanvasPattern:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsCanvasPattern (cairo_pattern_t *cpat, PRUint8 *dataToFree, nsIURI *URIForSecurityCheck, PRBool forceWriteOnly)
 ~nsCanvasPattern ()
void Apply (cairo_t *cairo)
nsIURIGetURI ()
PRBool GetForceWriteOnly ()

Protected Attributes

cairo_pattern_t * mPattern
PRUint8mData
nsCOMPtr< nsIURImURI
PRPackedBool mForceWriteOnly

Detailed Description

Definition at line 298 of file nsCanvasRenderingContext2D.cpp.


Constructor & Destructor Documentation

nsCanvasPattern::nsCanvasPattern ( cairo_pattern_t *  cpat,
PRUint8 dataToFree,
nsIURI URIForSecurityCheck,
PRBool  forceWriteOnly 
) [inline]

Definition at line 307 of file nsCanvasRenderingContext2D.cpp.

        : mPattern(cpat), mData(dataToFree), mURI(URIForSecurityCheck), mForceWriteOnly(forceWriteOnly)
    { }

Definition at line 312 of file nsCanvasRenderingContext2D.cpp.

                       {
        if (mPattern)
            cairo_pattern_destroy(mPattern);
        if (mData)
            nsMemory::Free(mData);
    }

Member Function Documentation

void nsCanvasPattern::Apply ( cairo_t *  cairo) [inline]

Definition at line 319 of file nsCanvasRenderingContext2D.cpp.

                               {
        cairo_set_source(cairo, mPattern);
    }

Here is the caller graph for this function:

Definition at line 324 of file nsCanvasRenderingContext2D.cpp.

{ return mForceWriteOnly; }

Here is the caller graph for this function:

Definition at line 323 of file nsCanvasRenderingContext2D.cpp.

{ return mURI; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 330 of file nsCanvasRenderingContext2D.cpp.

Definition at line 332 of file nsCanvasRenderingContext2D.cpp.

cairo_pattern_t* nsCanvasPattern::mPattern [protected]

Definition at line 329 of file nsCanvasRenderingContext2D.cpp.

Definition at line 331 of file nsCanvasRenderingContext2D.cpp.


The documentation for this class was generated from the following file: