Back to index

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


Utility class for saving, locking, and restoring handle state Ok with null handle More...

#include <nsGfxUtils.h>

List of all members.

Public Member Functions

 StHandleLocker (Handle theHandle)
 ~StHandleLocker ()

Protected Attributes

Handle mHandle
SInt8 mOldHandleState

Detailed Description


Utility class for saving, locking, and restoring handle state Ok with null handle

Definition at line 384 of file nsGfxUtils.h.


Constructor & Destructor Documentation

StHandleLocker::StHandleLocker ( Handle  theHandle) [inline]

Definition at line 388 of file nsGfxUtils.h.

                    :       mHandle(theHandle)
                    {
                      if (mHandle)
                      {
                       mOldHandleState = ::HGetState(mHandle);
                       ::HLock(mHandle);
                      }                                                                      
                    }

Definition at line 398 of file nsGfxUtils.h.

                    {
                      if (mHandle)
                        ::HSetState(mHandle, mOldHandleState);
                    }

Member Data Documentation

Handle StHandleLocker::mHandle [protected]

Definition at line 406 of file nsGfxUtils.h.

Definition at line 407 of file nsGfxUtils.h.


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