Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsDrawingSurfaceMac.cpp File Reference
#include <MacMemory.h>
#include "nsDrawingSurfaceMac.h"
#include "nsGraphicState.h"
#include "nsRegionPool.h"

Go to the source code of this file.

Functions

static NS_DEFINE_IID (kIDrawingSurfaceIID, NS_IDRAWING_SURFACE_IID)
static NS_DEFINE_IID (kIDrawingSurfaceMacIID, NS_IDRAWING_SURFACE_MAC_IID)
static OSStatus CreatePathFromRectsProc (UInt16 aMessage, RgnHandle aRegion, const Rect *aRect, void *aData)

Function Documentation

static OSStatus CreatePathFromRectsProc ( UInt16  aMessage,
RgnHandle  aRegion,
const Rect *  aRect,
void aData 
) [static]

Definition at line 345 of file nsDrawingSurfaceMac.cpp.

{
  CGContextRef context = NS_STATIC_CAST(CGContextRef, aData);

  if (aMessage == kQDRegionToRectsMsgParse)
  {
    CGRect rect = ::CGRectMake(aRect->left, aRect->top,
                               aRect->right - aRect->left,
                               aRect->bottom - aRect->top);
    ::CGContextAddRect(context, rect);
  }

  return noErr;
}
static NS_DEFINE_IID ( kIDrawingSurfaceIID  ,
NS_IDRAWING_SURFACE_IID   
) [static]
static NS_DEFINE_IID ( kIDrawingSurfaceMacIID  ,
NS_IDRAWING_SURFACE_MAC_IID   
) [static]