/* 
Copyright (c) 1991-2000 UserLand Software, Inc. 

Permission is hereby granted, free of charge, to any person obtaining a 
copy of this software and associated documentation files (the 
"Software"), to deal in the Software without restriction, including 
without limitation the rights to use, copy, modify, merge, publish, 
distribute, sublicense, and/or sell copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to the 
following conditions: 

The above copyright notice and this permission notice shall be 
included in all copies or substantial portions of the Software. 

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
*/ 


#define quickdrawinclude


#ifndef appletdefsinclude

	#include "appletdefs.h"
	
#endif


extern RGBColor blackcolor, whitecolor, lightbluecolor, lightgraycolor, graycolor, darkgraycolor;

extern RGBColor lightyellowcolor, lightgreencolor, lightpurplecolor, lightredcolor;

extern RGBColor darkredcolor, darkbluecolor, darkgreencolor, mediumgraycolor, darkpurplecolor;



boolean pushstyle (short, short, short);

boolean popstyle (void);

short getmenubarheight (void);

void setrect (Rect *, short , short , short , short);

void eraserect (Rect);

void movepento (short, short);

void pendrawline (short, short);

void invalrect (Rect);

void smashrect (Rect);

void insetrect (Rect *, short, short);

boolean equalpoints (Point, Point);

boolean emptyrect (Rect);

boolean rectlessthan (Rect, Rect);

void dropshadowrect (Rect, short, boolean);

void invaldropshadow (Rect, short);

boolean equalcolors (RGBColor *, RGBColor *);

boolean pushforecolor (RGBColor *);

boolean popforecolor (void);

boolean pushbackcolor (RGBColor *);

boolean popbackcolor (void);

boolean pushcolors (RGBColor *, RGBColor *);

boolean popcolors (void);

boolean pushgridcolor (RGBColor *);

boolean pushhighlightcolor (RGBColor *);

boolean systemhascolor (void);

boolean getcolorpalette (WindowPtr);

boolean openbitmap (Rect, WindowPtr);

void closebitmap (WindowPtr);

boolean plotsmallicon (Rect, short, short, boolean);

boolean colorenabled (void);

void constraintodesktop (Rect *);

void drawicon (Rect, short, Handle);

void localtoglobalrect (Rect *);

short pointdist (Point, Point);

boolean pushpen (void);

boolean poppen (void);

boolean pushmacport (GrafPtr);

boolean popmacport (void);

boolean pushclip (Rect);

boolean popclip (void);

void centerrect (Rect *, Rect);

void ellipsize (Str255, short);

void centerstring (Rect, bigstring);

void centerwindow (WindowPtr, Rect);

void grayrect (Rect);

boolean pointinrect (Point, Rect);

void validrect (Rect);

boolean pushemptyclip (void);

void globaltolocalpoint (WindowPtr, Point *);

void localtoglobalpoint (WindowPtr, Point *);

void zerorect (Rect *);

boolean equalrects (Rect, Rect);

void scrollrect (Rect, short, short);

boolean oldclutconverter (short, RGBColor *);