Back to index

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

Utility class stack-based handle ownership More...

#include <nsGfxUtils.h>

List of all members.

Public Member Functions

 StHandleOwner (Handle inHandle)
 ~StHandleOwner ()
Handle GetHandle ()
void ClearHandle (Boolean disposeIt=false)

Protected Attributes

Handle mHandle

Detailed Description

Utility class stack-based handle ownership

Definition at line 349 of file nsGfxUtils.h.

Constructor & Destructor Documentation

StHandleOwner::StHandleOwner ( Handle  inHandle) [inline]

Definition at line 352 of file nsGfxUtils.h.

                    : mHandle(inHandle)

Definition at line 357 of file nsGfxUtils.h.

                      if (mHandle)

Member Function Documentation

void StHandleOwner::ClearHandle ( Boolean  disposeIt = false) [inline]

Definition at line 365 of file nsGfxUtils.h.

                      if (disposeIt)
                      mHandle = nsnull;
Handle StHandleOwner::GetHandle ( ) [inline]

Definition at line 363 of file nsGfxUtils.h.

{ return mHandle; }

Member Data Documentation

Handle StHandleOwner::mHandle [protected]

Definition at line 375 of file nsGfxUtils.h.

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