Public Member Functions

gfxContextAutoSaveRestore Class Reference

Sentry helper class for functions with multiple return points that need to call Save() on a gfxContext and have Restore() called automatically on the gfxContext before they return. More...

#include <gfxContext.h>

Collaboration diagram for gfxContextAutoSaveRestore:

List of all members.

Public Member Functions

 gfxContextAutoSaveRestore ()
 gfxContextAutoSaveRestore (gfxContext *aContext)
 ~gfxContextAutoSaveRestore ()
void SetContext (gfxContext *aContext)
void Reset (gfxContext *aContext)

Detailed Description

Sentry helper class for functions with multiple return points that need to call Save() on a gfxContext and have Restore() called automatically on the gfxContext before they return.


Constructor & Destructor Documentation

gfxContextAutoSaveRestore::gfxContextAutoSaveRestore (  )  [inline]
gfxContextAutoSaveRestore::gfxContextAutoSaveRestore ( gfxContext aContext  )  [inline]
gfxContextAutoSaveRestore::~gfxContextAutoSaveRestore (  )  [inline]

Member Function Documentation

void gfxContextAutoSaveRestore::Reset ( gfxContext aContext  )  [inline]
void gfxContextAutoSaveRestore::SetContext ( gfxContext aContext  )  [inline]

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