Back to index

lightning-sunbird  0.9+nobinonly
Static Public Member Functions
nsGraphicsUtils Class Reference

#include <nsGfxUtils.h>

List of all members.

Static Public Member Functions

static void SafeSetPort (CGrafPtr newPort)
static void SafeSetPortWindowPort (WindowPtr window)
static void SetPortToKnownGoodPort ()

Detailed Description

Definition at line 103 of file nsGfxUtils.h.


Member Function Documentation

static void nsGraphicsUtils::SafeSetPort ( CGrafPtr  newPort) [inline, static]

Definition at line 113 of file nsGfxUtils.h.

  {
    ::SetGWorld(newPort, ::IsPortOffscreen(newPort) ? nsnull : ::GetMainDevice());
  }

Here is the caller graph for this function:

static void nsGraphicsUtils::SafeSetPortWindowPort ( WindowPtr  window) [inline, static]

Definition at line 124 of file nsGfxUtils.h.

  {
    SafeSetPort(::GetWindowPort(window));
  }

Here is the call graph for this function:

Here is the caller graph for this function:

static void nsGraphicsUtils::SetPortToKnownGoodPort ( ) [inline, static]

Definition at line 134 of file nsGfxUtils.h.

  {
    WindowPtr firstWindow = GetTheWindowList();
    if (firstWindow)
      ::SetGWorld(::GetWindowPort(firstWindow), ::GetMainDevice());
  }

Here is the call graph for this function:

Here is the caller graph for this function:


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