/*********************************************************/
/* This source code copyright (c) 1991-2001, Aaron Giles */
/* See the Read Me file for licensing information.       */
/* Contact email: mac@aarongiles.com                     */
/*********************************************************/

#ifndef __CDRAWINGAREA__
#define __CDRAWINGAREA__

pascal OSErr DrawingAreaAccessor(DescType classWanted, AEDesc *container, 
	DescType containerClass, DescType keyForm, AEDesc *keyData, 
	AEDesc *resultToken, long theRefCon);
pascal OSErr DrawPropertyAccessor(DescType classWanted, AEDesc *container, 
	DescType containerClass, DescType keyForm, AEDesc *keyData, 
	AEDesc *resultToken, long theRefCon);
OSErr GetDrawingAreaData(WindowPtr theWindow, DescType typeWanted, AEDesc *theData);
OSErr GetDrawPropertyData(WindowPtr theWindow, DescType theProperty, DescType typeWanted, 
	AEDesc *theData);
OSErr SetDrawPropertyData(WindowPtr theWindow, DescType theProperty, AEDesc *theData);
OSErr MakeDrawingAreaObject(WindowPtr theWindow, AEDesc *theObject);
OSErr MakeDrawPropertyObject(WindowPtr theWindow, DescType theProperty, AEDesc *theObject);
OSErr DoSetColorTable(WindowPtr theWindow, CTabHandle theColors);
OSErr DoSetPalette(WindowPtr theWindow, DescType thePalette);
OSErr DoSetImageDither(ImageHandle theImage, Boolean dither);
OSErr DoSetImageQuality(ImageHandle theImage, DescType theQuality);
extern OSErr DoSetDrawBounds(ImageHandle theImage, Rect *theRect);

#endif
