Back to index

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

#include <nsGfxUtils.h>

List of all members.

Public Member Functions

 StOriginSetter (WindowRef wind, const Point *newOrigin=nsnull)
 StOriginSetter (CGrafPtr grafPort, const Point *newOrigin=nsnull)
 ~StOriginSetter ()

Protected Attributes

Rect mSavePortRect

Detailed Description

Definition at line 197 of file nsGfxUtils.h.


Constructor & Destructor Documentation

StOriginSetter::StOriginSetter ( WindowRef  wind,
const Point *  newOrigin = nsnull 
) [inline]

Definition at line 201 of file nsGfxUtils.h.

  {
    ::GetWindowPortBounds(wind, &mSavePortRect);
    if (newOrigin)
      ::SetOrigin(newOrigin->h, newOrigin->v);
    else
      ::SetOrigin(0, 0);
  }
StOriginSetter::StOriginSetter ( CGrafPtr  grafPort,
const Point *  newOrigin = nsnull 
) [inline]

Definition at line 210 of file nsGfxUtils.h.

  {
    ::GetPortBounds(grafPort, &mSavePortRect);
    if (newOrigin)
      ::SetOrigin(newOrigin->h, newOrigin->v);
    else
      ::SetOrigin(0, 0);
  }

Definition at line 219 of file nsGfxUtils.h.

  {
    ::SetOrigin(mSavePortRect.left, mSavePortRect.top);
  }

Member Data Documentation

Definition at line 226 of file nsGfxUtils.h.


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