appletquickdraw.h

Go to the documentation of this file.
00001 
00002 /*  $Id: appletquickdraw.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 //#ifdef isFrontier
00008 //  #include "quickdraw.h"
00009 //#else
00010 #ifndef appletquickdrawinclude
00011 #define appletquickdrawinclude
00012 
00013 
00014 #ifndef appletdefsinclude
00015 
00016     #include "appletdefs.h"
00017     
00018 #endif
00019 
00020 
00021 extern RGBColor blackcolor, whitecolor, lightbluecolor, lightgraycolor, graycolor, darkgraycolor;
00022 
00023 extern RGBColor lightyellowcolor, lightgreencolor, lightpurplecolor, lightredcolor;
00024 
00025 extern RGBColor darkredcolor, darkbluecolor, darkgreencolor, mediumgraycolor, darkpurplecolor;
00026 
00027 
00028 
00029 boolean pushstyle (short, short, short);
00030 
00031 boolean popstyle (void);
00032 
00033 short getmenubarheight (void);
00034 
00035 void setrect (Rect *, short , short , short , short);
00036 
00037 void eraserect (Rect);
00038 
00039 void movepento (short, short);
00040 
00041 void pendrawline (short, short);
00042 
00043 void invalrect (Rect);
00044 
00045 void smashrect (Rect);
00046 
00047 void insetrect (Rect *, short, short);
00048 
00049 boolean equalpoints (Point, Point);
00050 
00051 boolean emptyrect (Rect);
00052 
00053 boolean rectlessthan (Rect, Rect);
00054 
00055 void dropshadowrect (Rect, short, boolean);
00056 
00057 void invaldropshadow (Rect, short);
00058 
00059 boolean equalcolors (RGBColor *, RGBColor *);
00060 
00061 boolean pushforecolor (const RGBColor *);
00062 
00063 boolean popforecolor (void);
00064 
00065 boolean pushbackcolor (const RGBColor *);
00066 
00067 boolean popbackcolor (void);
00068 
00069 boolean pushcolors (const RGBColor *, const RGBColor *);
00070 
00071 boolean popcolors (void);
00072 
00073 boolean pushgridcolor (RGBColor *);
00074 
00075 boolean pushhighlightcolor (RGBColor *);
00076 
00077 boolean systemhascolor (void);
00078 
00079 boolean getcolorpalette (WindowPtr);
00080 
00081 boolean openbitmap (Rect, WindowPtr);
00082 
00083 void closebitmap (WindowPtr);
00084 
00085 boolean plotsmallicon (Rect, short, short, boolean);
00086 
00087 boolean colorenabled (void);
00088 //Code change by Timothy Paustian Friday, May 5, 2000 10:44:55 PM
00089 //Changed to Opaque call for Carbon
00090 //probably a general bug. Carbon enforces consistancy here
00091 //GrafPtr cannot be WindowPtrs
00092 boolean constraintodesktop (WindowPtr, Rect *);
00093 
00094 void drawicon (Rect, short, Handle);
00095 
00096 //Code change by Timothy Paustian Friday, May 5, 2000 10:44:55 PM
00097 //Changed to Opaque call for Carbon
00098 //probably a general bug. Carbon enforces consistancy here
00099 //GrafPtr cannot be WindowPtrs
00100 void localtoglobalrect (WindowPtr, Rect *);
00101 
00102 short pointdist (Point, Point);
00103 
00104 boolean pushpen (void);
00105 
00106 boolean poppen (void);
00107 
00108 boolean pushmacport (GrafPtr);
00109 
00110 boolean popmacport (void);
00111 
00112 boolean pushclip (Rect);
00113 
00114 boolean popclip (void);
00115 
00116 void centerrect (Rect *, Rect);
00117 
00118 void ellipsize (Str255, short);
00119 
00120 #ifndef centerstring
00121 void centerstring (Rect, bigstring);
00122 #endif
00123 
00124 void centerwindow (WindowPtr, Rect);
00125 
00126 void grayrect (Rect);
00127 
00128 boolean pointinrect (Point, Rect);
00129 
00130 void validrect (Rect);
00131 
00132 boolean pushemptyclip (void);
00133 
00134 void globaltolocalpoint (WindowPtr, Point *);
00135 
00136 void localtoglobalpoint (WindowPtr, Point *);
00137 
00138 void zerorect (Rect *);
00139 
00140 boolean equalrects (Rect, Rect);
00141 
00142 void scrollrect (Rect, short, short);
00143 
00144 boolean oldclutconverter (short, RGBColor *);
00145 
00146 #endif
00147 

Generated on Wed May 31 18:19:44 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6