Back to index

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

#include <nsGfxUtils.h>

List of all members.

Public Member Functions

 StGWorldPortSetter (GWorldPtr destGWorld)
 ~StGWorldPortSetter ()

Protected Attributes

GWorldPtr mOldPort
GDHandle mOldDevice

Detailed Description

Definition at line 237 of file nsGfxUtils.h.

Constructor & Destructor Documentation

StGWorldPortSetter::StGWorldPortSetter ( GWorldPtr  destGWorld) [inline]

Definition at line 240 of file nsGfxUtils.h.

         NS_ASSERTION(::IsPortOffscreen(destGWorld), "StGWorldPortSetter should only be used for GWorlds");
         ::GetGWorld(&mOldPort, &mOldDevice);
              ::SetGWorld(destGWorld, nsnull);

Definition at line 247 of file nsGfxUtils.h.

    ::SetGWorld(mOldPort, mOldDevice);
         NS_ASSERTION(ValidateDrawingState(), "Bad drawing state");

Here is the call graph for this function:

Member Data Documentation

GDHandle StGWorldPortSetter::mOldDevice [protected]

Definition at line 255 of file nsGfxUtils.h.

GWorldPtr StGWorldPortSetter::mOldPort [protected]

Definition at line 254 of file nsGfxUtils.h.

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