Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsRegionMac.cpp File Reference
#include "nsRegionMac.h"
#include "prmem.h"
#include "nsCarbonHelpers.h"
#include "nsRegionPool.h"

Go to the source code of this file.

Functions

static OSStatus AddRectToArrayProc (UInt16 message, RgnHandle rgn, const Rect *inRect, void *inArray)
static OSStatus CountRectProc (UInt16 message, RgnHandle rgn, const Rect *inRect, void *rectCount)

Variables

static RegionToRectsUPP sAddRectToArrayProc
static RegionToRectsUPP sCountRectProc

Function Documentation

static OSStatus AddRectToArrayProc ( UInt16  message,
RgnHandle  rgn,
const Rect *  inRect,
void inArray 
) [static]

Definition at line 48 of file nsRegionMac.cpp.

{
  if (message == kQDRegionToRectsMsgParse) {
    nsRegionRectSet* rects = NS_REINTERPRET_CAST(nsRegionRectSet*, inArray);
    nsRegionRect* rect = &rects->mRects[rects->mNumRects++];
    rect->x = inRect->left;
    rect->y = inRect->top;
    rect->width = inRect->right - inRect->left;
    rect->height = inRect->bottom - inRect->top;
    rects->mArea += rect->width * rect->height;
  }

  return noErr;
}

Here is the caller graph for this function:

static OSStatus CountRectProc ( UInt16  message,
RgnHandle  rgn,
const Rect *  inRect,
void rectCount 
) [static]

Definition at line 64 of file nsRegionMac.cpp.

{
  if (message == kQDRegionToRectsMsgParse)
    ++(*NS_REINTERPRET_CAST(long*, rectCount));

  return noErr;
}

Here is the caller graph for this function:


Variable Documentation

RegionToRectsUPP sAddRectToArrayProc [static]

Definition at line 44 of file nsRegionMac.cpp.

RegionToRectsUPP sCountRectProc [static]

Definition at line 45 of file nsRegionMac.cpp.