Back to index

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


Utility class for saving, locking, and restoring pixel state More...

#include <nsGfxUtils.h>

List of all members.

Public Member Functions

 StPixelLocker (PixMapHandle thePixMap)
 ~StPixelLocker ()

Protected Attributes

PixMapHandle mPixMap
GWorldFlags mPixelState

Detailed Description


Utility class for saving, locking, and restoring pixel state

Definition at line 315 of file nsGfxUtils.h.


Constructor & Destructor Documentation

StPixelLocker::StPixelLocker ( PixMapHandle  thePixMap) [inline]

Definition at line 319 of file nsGfxUtils.h.

                                                                      :      mPixMap(thePixMap)
                                                                      ,      mPixelState(0)
                                                                      {
                                                                             if (mPixMap) {
                                                                             mPixelState = ::GetPixelsState(mPixMap);
                                                                             ::LockPixels(mPixMap);
                                                                      }
                                                                      }

Definition at line 329 of file nsGfxUtils.h.

                                                                      {
                                                                             if (mPixMap)
                                                                             ::SetPixelsState(mPixMap, mPixelState);
                                                                      }

Member Data Documentation

GWorldFlags StPixelLocker::mPixelState [protected]

Definition at line 339 of file nsGfxUtils.h.

PixMapHandle StPixelLocker::mPixMap [protected]

Definition at line 338 of file nsGfxUtils.h.


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