19 #ifndef __QDOFFSCREEN__
20 #define __QDOFFSCREEN__
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
57 useDistantHdwrMemBit = 4,
58 useLocalHdwrMemBit = 5,
59 pixelsPurgeableBit = 6,
74 pixPurge = 1L << pixPurgeBit,
75 noNewDevice = 1L << noNewDeviceBit,
76 useTempMem = 1L << useTempMemBit,
77 keepLocal = 1L << keepLocalBit,
78 useDistantHdwrMem = 1L << useDistantHdwrMemBit,
79 useLocalHdwrMem = 1L << useLocalHdwrMemBit,
80 pixelsPurgeable = 1L << pixelsPurgeableBit,
81 pixelsLocked = 1L << pixelsLockedBit,
82 kAllocDirectDrawSurface = 1L << 14,
83 mapPix = 1L << mapPixBit,
84 newDepth = 1L << newDepthBit,
85 alignPix = 1L << alignPixBit,
86 newRowBytes = 1L << newRowBytesBit,
87 reallocPix = 1L << reallocPixBit,
88 clipPix = 1L << clipPixBit,
89 stretchPix = 1L << stretchPixBit,
90 ditherPix = 1L << ditherPixBit,
91 gwFlagErr = 1L << gwFlagErrBit
94 typedef unsigned long GWorldFlags;
114 deviceIsIndirect = (1L << 0),
115 deviceNeedsLock = (1L << 1),
116 deviceIsStatic = (1L << 2),
117 deviceIsExternalBuffer = (1L << 3),
118 deviceIsDDSurface = (1L << 4),
119 deviceIsDCISurface = (1L << 5),
120 deviceIsGDISurface = (1L << 6),
121 deviceIsAScreen = (1L << 7),
122 deviceIsOverlaySurface = (1L << 8)
126 #if CALL_NOT_IN_CARBON
160 GDHandle aGDevice, GWorldFlags flags,
void *newHBITMAP,
178 GWorldFlags flags, Ptr newBuffer,
long rowBytes);
619 #if PRAGMA_STRUCT_ALIGN
620 #pragma options align = reset
621 #elif PRAGMA_STRUCT_PACKPUSH
623 #elif PRAGMA_STRUCT_PACK
627 #ifdef PRAGMA_IMPORT_OFF
@ cTable
Definition: AERegistry.h:116
unsigned char Boolean
Definition: MacTypes.h:318
QDErr NewGWorldFromPtr(GWorldPtr *offscreenGWorld, unsigned long PixelFormat, const Rect *boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags, Ptr newBuffer, long rowBytes)
void DisposeGWorld(GWorldPtr offscreenGWorld)
Dispose of a GDevice structure and substructures.
QDErr NewScreenBuffer(const Rect *globalRect, Boolean purgeable, GDHandle *gdh, PixMapHandle *offscreenPixMap)
void UnlockPixels(PixMapHandle pm)
Unlock the buffer used by an offscreen graphics world.
void CTabChanged(CTabHandle ctab)
Get a new seed (a unique identifier) for the color table.
QDErr NewGWorld(GWorldPtr *offscreenGWorld, short PixelDepth, const Rect *boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags)
void GetGWorld(CGrafPtr *port, GDHandle *gdh)
Get the current graphics world.
void DisposeScreenBuffer(PixMapHandle offscreenPixMap)
DisposeScreenBuffer Dispose of memory for offscreen buffer and color table.
Boolean LockPixels(PixMapHandle pm)
Lock the offscreen buffer in memory for duration of a draw.
void PixPatChanged(PixPatHandle ppat)
Set the patXValid flag to -1.
void SetPixelsState(PixMapHandle pm, GWorldFlags state)
Set state of the pixel map's offscreen buffer.
void SetGWorld(CGrafPtr port, GDHandle gdh)
Set the current graphics world.
GWorldFlags GetPixelsState(PixMapHandle pm)
Get state of the pixel map's offscreen buffer.
PixMapHandle GetGWorldPixMap(GWorldPtr offscreenGWorld)
Get a handle to the pixel map for an offscreen graphics world.
GDHandle GetGWorldDevice(GWorldPtr offscreenGWorld)
Get a handle to the device attached to the offscreen world.
GWorldFlags UpdateGWorld(GWorldPtr *offscreenGWorld, short pixelDepth, const Rect *boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags)
QDErr NewTempScreenBuffer(const Rect *globalRect, Boolean purgeable, GDHandle *gdh, PixMapHandle *offscreenPixMap)
void PortChanged(GrafPtr port)
Notify QuickDraw of a change.
Boolean PixMap32Bit(PixMapHandle pmHandle)
Determine if PixMap requires 32-bit addr mode to access its pixels.
Ptr GetPixBaseAddr(PixMapHandle pm)
Get a pointer to the beginning of the pixel map's pixels.
void GDeviceChanged(GDHandle gdh)
Notify QuickDraw of a graphics device record change.
Boolean QDDone(GrafPtr port)
Ensure that all drawing is done.
void NoPurgePixels(PixMapHandle pm)
Mark the pixel map's offscreen buffer as unpurgeable.
long GetPixRowBytes(PixMapHandle pm)
void AllowPurgePixels(PixMapHandle pm)
AllowPurgePixels Mark the pixel map's offscreen buffer as purgeable.
long OffscreenVersion(void)
Interface to Quickdraw Graphics.
Definition: Quickdraw.h:2261
Definition: Quickdraw.h:1968
Definition: Quickdraw.h:2178
Definition: Quickdraw.h:1648
Definition: Quickdraw.h:2064
Definition: Quickdraw.h:2091
Definition: PPCToolbox.h:168
Definition: MacTypes.h:527