Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Private Attributes
gfxASurface Class Reference

#include <gfxASurface.h>

Inheritance diagram for gfxASurface:
Inheritance graph

List of all members.

Public Member Functions

cairo_surface_t * CairoSurface ()

Protected Member Functions

void Init (cairo_surface_t *surface)
void Destroy ()
PRBool Destroyed ()
virtual ~gfxASurface ()

Private Attributes

cairo_surface_t * mSurface
PRBool mDestroyed

Detailed Description

Definition at line 45 of file gfxASurface.h.

Constructor & Destructor Documentation

virtual gfxASurface::~gfxASurface ( ) [inline, protected, virtual]

Definition at line 72 of file gfxASurface.h.

        if (!mDestroyed) {
            NS_WARNING("gfxASurface::~gfxASurface called, but cairo surface was not destroyed! (Did someone forget to call Destroy()?)");

Member Function Documentation

cairo_surface_t* gfxASurface::CairoSurface ( ) [inline]

Definition at line 50 of file gfxASurface.h.

{ return mSurface; }

Here is the caller graph for this function:

void gfxASurface::Destroy ( void  ) [inline, protected]

Definition at line 58 of file gfxASurface.h.

        if (mDestroyed) {
            NS_WARNING("Calling Destroy on an already-destroyed surface!");

        mDestroyed = PR_TRUE;

Here is the caller graph for this function:

PRBool gfxASurface::Destroyed ( ) [inline, protected]

Definition at line 68 of file gfxASurface.h.

        return mDestroyed;
void gfxASurface::Init ( cairo_surface_t *  surface) [inline, protected]

Definition at line 53 of file gfxASurface.h.

        mDestroyed = PR_FALSE;
        mSurface = surface;

Here is the caller graph for this function:

Member Data Documentation

Definition at line 79 of file gfxASurface.h.

cairo_surface_t* gfxASurface::mSurface [private]

Definition at line 78 of file gfxASurface.h.

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