Back to index

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

List of all members.

Public Member Functions

 ContextState ()
 ContextState (const ContextState &other)
void SetColorStyle (int whichStyle, nscolor color)
void SetPatternStyle (int whichStyle, nsCanvasPattern *pat)
void SetGradientStyle (int whichStyle, nsCanvasGradient *grad)

Public Attributes

float globalAlpha
nscolor colorStyles [STYLE_MAX]
nsCOMPtr< nsCanvasGradientgradientStyles [STYLE_MAX]
nsCOMPtr< nsCanvasPatternpatternStyles [STYLE_MAX]

Detailed Description

Definition at line 436 of file nsCanvasRenderingContext2D.cpp.


Constructor & Destructor Documentation

Definition at line 438 of file nsCanvasRenderingContext2D.cpp.

: globalAlpha(1.0) { }

Definition at line 440 of file nsCanvasRenderingContext2D.cpp.

            : globalAlpha(other.globalAlpha)
        {
            for (int i = 0; i < STYLE_MAX; i++) {
                colorStyles[i] = other.colorStyles[i];
                gradientStyles[i] = other.gradientStyles[i];
                patternStyles[i] = other.patternStyles[i];
            }
        }

Member Function Documentation

Definition at line 450 of file nsCanvasRenderingContext2D.cpp.

                                                                 {
            colorStyles[whichStyle] = color;
            gradientStyles[whichStyle] = nsnull;
            patternStyles[whichStyle] = nsnull;
        }

Here is the caller graph for this function:

Definition at line 461 of file nsCanvasRenderingContext2D.cpp.

                                                                             {
            gradientStyles[whichStyle] = grad;
            patternStyles[whichStyle] = nsnull;
        }

Here is the caller graph for this function:

Definition at line 456 of file nsCanvasRenderingContext2D.cpp.

                                                                          {
            gradientStyles[whichStyle] = nsnull;
            patternStyles[whichStyle] = pat;
        }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 467 of file nsCanvasRenderingContext2D.cpp.

Definition at line 466 of file nsCanvasRenderingContext2D.cpp.

Definition at line 468 of file nsCanvasRenderingContext2D.cpp.

Definition at line 469 of file nsCanvasRenderingContext2D.cpp.


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