Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsRenderingContextMac.cpp File Reference
#include "nsIInterfaceRequestorUtils.h"
#include "nsIServiceManager.h"
#include "nsRenderingContextMac.h"
#include "nsDeviceContextMac.h"
#include "nsFontMetricsMac.h"
#include "nsIRegion.h"
#include "nsIEnumerator.h"
#include "nsRegionMac.h"
#include "nsGraphicState.h"
#include "nsTransform2D.h"
#include "nsVoidArray.h"
#include "nsGfxCIID.h"
#include "nsGfxUtils.h"
#include "nsCOMPtr.h"
#include "plhash.h"
#include <FixMath.h>
#include <Gestalt.h>
#include <Quickdraw.h>
#include "nsRegionPool.h"
#include "nsFontUtils.h"
#include "nsCarbonHelpers.h"

Go to the source code of this file.

Defines

#define STACK_THRESHOLD   1000
#define COLOR8TOCOLOR16(color8)   ((color8 << 8) | color8)

Functions

short pinToShort (nscoord value)
 A note about Quickdraw coordinates: When Apple designed Quickdraw, signed 16-bit coordinates were considered to be large enough.

Variables

static const Pattern dottedPattern = {0xaa,0x55,0xaa,0x55,0xaa,0x55,0xaa,0x55}
static const Pattern dashedPattern = {0xf0,0x78,0x3c,0x1e,0x0f,0x87,0xc3,0xe1}

Define Documentation

#define COLOR8TOCOLOR16 (   color8)    ((color8 << 8) | color8)
#define STACK_THRESHOLD   1000

Definition at line 71 of file nsRenderingContextMac.cpp.


Function Documentation

short pinToShort ( nscoord  value) [inline]

A note about Quickdraw coordinates: When Apple designed Quickdraw, signed 16-bit coordinates were considered to be large enough.

Although computer displays with > 65535 pixels in either dimension are still far off, most modern graphics systems allow at least 32-bit signed coordinates so we have to take extra care when converting from GFX coordinates to Quickdraw coordinates, especially when constructing rectangles.

Definition at line 989 of file nsRenderingContextMac.cpp.

       {
              if (value < -32768)
                     return -32768;
              if (value > 32767)
                     return 32767;
              return (short) value;
       }

Here is the caller graph for this function:


Variable Documentation

const Pattern dashedPattern = {0xf0,0x78,0x3c,0x1e,0x0f,0x87,0xc3,0xe1} [static]

Definition at line 872 of file nsRenderingContextMac.cpp.

const Pattern dottedPattern = {0xaa,0x55,0xaa,0x55,0xaa,0x55,0xaa,0x55} [static]

Definition at line 861 of file nsRenderingContextMac.cpp.