quickdraw.c File Reference

#include "frontier.h"
#include "standard.h"
#include "font.h"
#include "memory.h"
#include "ops.h"
#include "strings.h"
#include "quickdraw.h"
#include "frontierwindows.h"
#include "shell.h"
#include "byteorder.h"

Include dependency graph for quickdraw.c:

Go to the source code of this file.

Data Structures

struct  tystylerecord

Defines

#define qdfillrect(r, p)   FillRect (r, p)
#define checkdepth(top, maxtop)
#define ctports   20
#define ctclip   20
#define ctpens   4
#define ctstyle   5
#define ctforecolors   5
#define ctbackcolors   5

Functions

static short maxdepth (Rect *r)
short getmenubarheight (void)
GrafPtr getport (void)
CGrafPtr getwindowport (WindowPtr w)
void setport (GrafPtr port)
boolean pushport (CGrafPtr p)
boolean popport (void)
boolean pushscratchport (void)
boolean pushcliprgn (hdlregion rgnclip, boolean flomit)
boolean pushclip (Rect r)
boolean superpushclip (Rect r)
boolean pushvalidrgnclip (void)
boolean pushemptyclip (void)
boolean popclip (void)
boolean pushstyle (short fnum, short fsize, short fstyle)
boolean popstyle (void)
boolean pushforecolor (const RGBColor *rgb)
boolean popforecolor (void)
boolean pushbackcolor (const RGBColor *rgb)
boolean popbackcolor (void)
boolean pushcolors (const RGBColor *forecolor, const RGBColor *backcolor)
boolean popcolors (void)
boolean pushpen (void)
boolean poppen (void)
void getpenpoint (Point *pt)
boolean equalpoints (Point pt1, Point pt2)
short pointdist (Point pt1, Point pt2)
void movepento (short h, short v)
void pendrawline (short h, short v)
static void Drawstring (bigstring bs, boolean fldisabled)
void pendrawstring (bigstring bs)
void graydrawstring (bigstring bs)
short stringpixels (bigstring bs)
void centerrect (Rect *rcentered, Rect rcontains)
boolean havecolorquickdraw (void)
void getcurrentscreenbounds (Rect *r)
void getwindowscreenbounds (const Rect *rwindow, Rect *r)
void centerrectondesktop (Rect *r)
void centerbuttonstring (const Rect *r, bigstring bs, boolean fldisabled)
void grayrect (Rect r)
void zerorect (Rect *rzero)
boolean equalrects (Rect r1, Rect r2)
boolean issubrect (Rect r1, Rect r2)
void globaltolocalrgn (hdlregion rgn)
void localtoglobalrect (WindowPtr w, Rect *r)
void globaltolocalpoint (WindowPtr w, Point *pt)
void localtoglobalpoint (WindowPtr w, Point *pt)
void flashrect (Rect r, short ctflashes)
void dropshadowrect (Rect r, short width, boolean flerase)
void smashrect (Rect r)
void invalrect (Rect r)
void invalwindowrect (WindowPtr w, Rect r)
void validrect (Rect r)
void eraserect (Rect r)
void framerect (Rect r)
void drawthemeborder (Rect r, Rect rcontent)
void setgraypen (void)
void setthemepen (const short brush, Rect r, boolean flupdate)
void graydrawline (short h, short v)
void grayframerect (Rect r)
void grayframerrgn (hdlregion rgn)
void fillrect (Rect r, xppattern pat)
void frame3sides (Rect r)
void eraseandframerect (Rect r)
void invertrect (Rect r)
void setrect (Rect *rset, short top, short pleft, short bottom, short pright)
void insetrect (Rect *r, short dh, short dv)
void offsetrect (Rect *r, short dh, short dv)
boolean pointinrect (Point pt, Rect r)
void scrollrect (Rect r, short dh, short dv)
void scrollrectvert (Rect r, short dv)
void scrollrecthoriz (Rect r, short dh)
void unionrect (Rect r1, Rect r2, Rect *runion)
boolean intersectrect (Rect r1, Rect r2, Rect *rintersection)
void getdesktopbounds (Rect *r)
static boolean constraintorect (Rect *rconstrained, Rect rcontains, boolean flcenter)
static void accountfortitlebar (WindowPtr w, Rect *rconstrain)
boolean constraintodesktop (WindowPtr w, Rect *rparam)
boolean constraintoscreenbounds (WindowPtr w, boolean flcurrentscreen, Rect *rparam)
void getmainscreenrect (Rect *r)
void getsystemoriginrect (Rect *r)
boolean colorenabled (void)
short iscolorport (CGrafPtr pport)
void fillcolorrect (Rect r, short idppat)
boolean systemhascolor (void)
boolean rectinregion (Rect r, hdlregion rgn)
void initquickdraw (void)
void diskrecttorect (diskrect *rdisk, Rect *r)
void recttodiskrect (Rect *r, diskrect *rdisk)
void diskrgbtorgb (diskrgb *rgbdisk, RGBColor *r)
void rgbtodiskrgb (RGBColor *r, diskrgb *rgbdisk)

Variables

RGBColor whitecolor = {65535, 65535, 65535}
RGBColor blackcolor = {0, 0, 0}
RGBColor greencolor = {0, 32767, 0}
RGBColor lightbluecolor = {52428, 52428, 65535}
RGBColor darkbluecolor = {0, 0, 32767}
RGBColor darkgraycolor = {10922, 10922, 10922}
RGBColor graycolor = {32767, 32767, 32767}
RGBColor mediumgraycolor = {52428, 52428, 52428}
RGBColor lightgraycolor = {61166, 61166, 61166}
RGBColor lightyellowcolor = {65535, 65535, 52428}
RGBColor lightgreencolor = {52428, 65535, 52428}
RGBColor lightpurplecolor = {65535, 52428, 65535}
RGBColor darkpurplecolor = {16384, 0, 16384}
RGBColor lightredcolor = {65535, 52428, 52428}
RGBColor darkredcolor = {32767, 0, 0}
RGBColor darkgreencolor = {0, 32767, 0}
static short topport = 0
static short topclip = 0
static short toppen = 0
static short topstyle = 0
static short topforecolor = 0
static short topbackcolor = 0
static CGrafPtr portstack [ctports]
static hdlregion clipstack [ctclip]
static tystylerecord stylestack [ctstyle]
static hdlregion scratchrgn


Define Documentation

#define checkdepth top,
maxtop   ) 
 

Definition at line 115 of file quickdraw.c.

Referenced by pushcliprgn(), pushpen(), pushport(), pushstyle(), and superpushclip().

#define ctbackcolors   5
 

Definition at line 131 of file quickdraw.c.

Referenced by pushbackcolor().

#define ctclip   20
 

Definition at line 127 of file quickdraw.c.

Referenced by initquickdraw(), pushclip(), pushcliprgn(), and superpushclip().

#define ctforecolors   5
 

Definition at line 130 of file quickdraw.c.

Referenced by pushforecolor().

#define ctpens   4
 

Definition at line 128 of file quickdraw.c.

Referenced by pushpen().

#define ctports   20
 

Definition at line 126 of file quickdraw.c.

Referenced by pushmacport(), and pushport().

#define ctstyle   5
 

Definition at line 129 of file quickdraw.c.

Referenced by pushstyle().

#define qdfillrect r,
 )     FillRect (r, p)
 

Definition at line 105 of file quickdraw.c.

Referenced by fillrect().


Function Documentation

static void accountfortitlebar WindowPtr  w,
Rect rconstrain
[static]
 

Definition at line 2526 of file quickdraw.c.

References doctitlebarheight, and nil.

Referenced by constraintodesktop(), and constraintoscreenbounds().

void centerbuttonstring const Rect r,
bigstring  bs,
boolean  fldisabled
 

Definition at line 1283 of file quickdraw.c.

References tyFontInfo::ascent, tyFontInfo::descent, Drawstring(), ellipsize(), globalfontinfo, h, movepento(), popclip(), pushclip(), stringpixels(), and v.

Referenced by shelldrawbutton().

Here is the call graph for this function:

void centerrect Rect rcentered,
Rect  rcontains
 

Definition at line 1056 of file quickdraw.c.

void centerrectondesktop Rect r  ) 
 

Definition at line 1273 of file quickdraw.c.

References centerrect(), and getcurrentscreenbounds().

Referenced by loadconfigresource(), myMoof(), and pictgetnewwindowrect().

Here is the call graph for this function:

boolean colorenabled void   ) 
 

Definition at line 2777 of file quickdraw.c.

boolean constraintodesktop WindowPtr  w,
Rect rparam
 

Definition at line 2570 of file quickdraw.c.

static boolean constraintorect Rect rconstrained,
Rect  rcontains,
boolean  flcenter
[static]
 

Definition at line 2445 of file quickdraw.c.

References centerrect(), equalrects(), min, offsetrect(), and r.

Referenced by constraintodesktop(), and constraintoscreenbounds().

Here is the call graph for this function:

boolean constraintoscreenbounds WindowPtr  w,
boolean  flcurrentscreen,
Rect rparam
 

Definition at line 2592 of file quickdraw.c.

References accountfortitlebar(), constraintorect(), getglobalwindowrect(), getwindowscreenbounds(), and r.

Referenced by constrainwindowrect(), getnewwindow(), and shellzoomwindow().

Here is the call graph for this function:

void diskrecttorect diskrect rdisk,
Rect r
 

Definition at line 2972 of file quickdraw.c.

References diskrect::bottom, diskrect::left, diskrect::right, and diskrect::top.

Referenced by cccopywindowinfo(), ccgetwindowrect(), hashunpacktable(), langunpackvalue(), mesetupmenurecord(), opunpackversion2(), pictunpack(), tableunpackversion1formats(), unpackwordsolutionenginefile(), and wpunpack().

void diskrgbtorgb diskrgb rgbdisk,
RGBColor r
 

Definition at line 3008 of file quickdraw.c.

References r.

Referenced by hashunpacktable(), and langunpackvalue().

static void Drawstring bigstring  bs,
boolean  fldisabled
[static]
 

Definition at line 957 of file quickdraw.c.

References tyFontInfo::ascent, tyFontInfo::descent, globalfontinfo, tyFontInfo::leading, NULL, r, and stringlength.

Referenced by centerbuttonstring(), graydrawstring(), and pendrawstring().

void drawthemeborder Rect  r,
Rect  rcontent
 

Definition at line 1870 of file quickdraw.c.

References paintrect(), poppen(), pushpen(), and setthemepen().

Referenced by langerroractivate(), langerrorupdate(), and miniresize().

Here is the call graph for this function:

void dropshadowrect Rect  r,
short  width,
boolean  flerase
 

Definition at line 1619 of file quickdraw.c.

boolean equalpoints Point  pt1,
Point  pt2
 

Definition at line 902 of file quickdraw.c.

boolean equalrects Rect  r1,
Rect  r2
 

Definition at line 1422 of file quickdraw.c.

void eraseandframerect Rect  r  ) 
 

Definition at line 2164 of file quickdraw.c.

References eraserect(), and framerect().

Referenced by shelldrawbutton().

Here is the call graph for this function:

void eraserect Rect  r  ) 
 

Definition at line 1794 of file quickdraw.c.

void fillcolorrect Rect  r,
short  idppat
 

Definition at line 2823 of file quickdraw.c.

References hInst, and recttowinrect().

Referenced by drawbuttonbackground().

Here is the call graph for this function:

void fillrect Rect  r,
xppattern  pat
 

Definition at line 2058 of file quickdraw.c.

References qdfillrect, and recttowinrect().

Referenced by drawbuttonbackground(), and dropshadowrect().

Here is the call graph for this function:

void flashrect Rect  r,
short  ctflashes
 

Definition at line 1591 of file quickdraw.c.

References ct, delayticks(), i, invertrect(), and pushclip().

Here is the call graph for this function:

void frame3sides Rect  r  ) 
 

Definition at line 2079 of file quickdraw.c.

References maxdepth, movepento(), paintrect(), pendrawline(), poppen(), pushpen(), setthemepen(), shellgetwindowrect(), and shellwindowinfo.

Referenced by meupdate(), and tableupdategridlines().

Here is the call graph for this function:

void framerect Rect  r  ) 
 

Definition at line 1820 of file quickdraw.c.

References darkgraycolor, isemptyrect, lightgraycolor, movepento(), pendrawline(), popforecolor(), pushforecolor(), and recttowinrect().

Referenced by claypredrawline(), drawpopup(), drawwindowmessage(), eraseandframerect(), langerrorframetext(), minidrawmsg(), minidrawtextitems(), opupdate(), scriptupdateserverpopup(), shelldrawgrowicon(), and zoomrect().

Here is the call graph for this function:

void getcurrentscreenbounds Rect r  ) 
 

Definition at line 1097 of file quickdraw.c.

References getdesktopbounds(), getmenubarheight(), havecolorquickdraw(), nil, pointinrect(), popport(), and pushport().

Referenced by centerrectondesktop(), getmainscreenrect(), getsystemoriginrect(), and positiondialogwindow().

Here is the call graph for this function:

void getdesktopbounds Rect r  ) 
 

Definition at line 2404 of file quickdraw.c.

References getlocalwindowrect(), getstatusbarheight(), localtoglobalrect(), and shellframewindow.

Referenced by constraintodesktop(), getcurrentscreenbounds(), and getwindowscreenbounds().

Here is the call graph for this function:

void getmainscreenrect Rect r  ) 
 

Definition at line 2691 of file quickdraw.c.

References getcurrentscreenbounds().

Here is the call graph for this function:

short getmenubarheight void   ) 
 

Definition at line 250 of file quickdraw.c.

void getpenpoint Point pt  ) 
 

Definition at line 888 of file quickdraw.c.

References pt.

GrafPtr getport void   ) 
 

Definition at line 261 of file quickdraw.c.

Referenced by displaypopupicon(), drawpopup(), FrontierOPWndProc(), getmousepoint(), getvisregion(), iscurrentportprintport(), newshellwindow(), pictdepatcher(), pictupdatepatcher(), popport(), pushport(), shellsetglobals(), shellupdatecontent(), tabledisplaytitle(), and wpnewpg().

void getsystemoriginrect Rect r  ) 
 

Definition at line 2706 of file quickdraw.c.

References getcurrentscreenbounds(), h, v, and winrecttorect().

Referenced by newaboutwindow().

Here is the call graph for this function:

CGrafPtr getwindowport WindowPtr  w  ) 
 

Definition at line 274 of file quickdraw.c.

void getwindowscreenbounds const Rect rwindow,
Rect r
 

Definition at line 1181 of file quickdraw.c.

References abs, getdesktopbounds(), and nil.

Referenced by constraintoscreenbounds(), and opgetoutinesize().

Here is the call graph for this function:

void globaltolocalpoint WindowPtr  w,
Point pt
 

Definition at line 1511 of file quickdraw.c.

void globaltolocalrgn hdlregion  rgn  ) 
 

Definition at line 1447 of file quickdraw.c.

References pt.

Referenced by pushvalidrgnclip(), and shellupdatecontent().

void graydrawline short  h,
short  v
 

Definition at line 1957 of file quickdraw.c.

References poppen(), pushpen(), and setgraypen().

Referenced by tableadjustcolwidth().

Here is the call graph for this function:

void graydrawstring bigstring  bs  ) 
 

Definition at line 1020 of file quickdraw.c.

References Drawstring().

Here is the call graph for this function:

void grayframerect Rect  r  ) 
 

Definition at line 1996 of file quickdraw.c.

References poppen(), pushpen(), recttowinrect(), and setgraypen().

Referenced by claydrawtext(), medisplayscriptbutton(), medrawseparatorline(), opdefaultdrawtext(), and tabledrawcell().

Here is the call graph for this function:

void grayframerrgn hdlregion  rgn  ) 
 

Definition at line 2022 of file quickdraw.c.

References poppen(), pushpen(), and setgraypen().

Referenced by wpframeselection().

Here is the call graph for this function:

void grayrect Rect  r  ) 
 

Definition at line 1327 of file quickdraw.c.

boolean havecolorquickdraw void   ) 
 

Definition at line 1083 of file quickdraw.c.

References gHasColorQD.

Referenced by getcurrentscreenbounds(), and getnewwindow().

void initquickdraw void   ) 
 

Definition at line 2921 of file quickdraw.c.

References assert, clipstack, ctclip, and NewRgn.

Referenced by shellinit().

void insetrect Rect r,
short  dh,
short  dv
 

Definition at line 2203 of file quickdraw.c.

boolean intersectrect Rect  r1,
Rect  r2,
Rect rintersection
 

Definition at line 2376 of file quickdraw.c.

References recttowinrect(), and winrecttorect().

Referenced by opeditdrawtext(), opgettextbufferrect(), oploadeditbuffer(), oppushclip(), opseteditbufferrect(), and pictupdate().

Here is the call graph for this function:

void invalrect Rect  r  ) 
 

Definition at line 1730 of file quickdraw.c.

void invalwindowrect WindowPtr  w,
Rect  r
 

Definition at line 1758 of file quickdraw.c.

References invalrect(), popport(), and pushport().

Referenced by miniinvalicon(), scriptinvalbuttonsvisit(), shellinvalbuttons(), and windowinval().

Here is the call graph for this function:

void invertrect Rect  r  ) 
 

Definition at line 2172 of file quickdraw.c.

References recttowinrect().

Referenced by drawlabeledicon(), flashrect(), medrawseparatorline(), minidrawmsg(), opdefaultdrawtext(), opdrawicon(), plotsmallicon(), tabledrawcell(), and tableinverttitle().

Here is the call graph for this function:

short iscolorport CGrafPtr  pport  ) 
 

Definition at line 2805 of file quickdraw.c.

Referenced by drawgrid(), and pictupdatepatcher().

boolean issubrect Rect  r1,
Rect  r2
 

Definition at line 1431 of file quickdraw.c.

References equalrects(), and unionrect().

Referenced by getdefaultwindowrect().

Here is the call graph for this function:

void localtoglobalpoint WindowPtr  w,
Point pt
 

Definition at line 1548 of file quickdraw.c.

void localtoglobalrect WindowPtr  w,
Rect r
 

Definition at line 1460 of file quickdraw.c.

static short maxdepth Rect r  )  [static]
 

void movepento short  h,
short  v
 

Definition at line 919 of file quickdraw.c.

void offsetrect Rect r,
short  dh,
short  dv
 

Definition at line 2219 of file quickdraw.c.

References recttowinrect(), and winrecttorect().

Referenced by claygeticonrect(), claygettextrect(), constraintorect(), getdefaultwindowrect(), localtoglobalrect(), localtoscreenrect(), medisplayscriptbutton(), newchildwindow(), pictprint(), pictupdate(), shellcalcgrowiconrect(), shelldrawbutton(), shellmovewindow(), shellmovewindowhidden(), and wpnewrecord().

Here is the call graph for this function:

void pendrawline short  h,
short  v
 

Definition at line 937 of file quickdraw.c.

void pendrawstring bigstring  bs  ) 
 

Definition at line 1004 of file quickdraw.c.

References Drawstring().

Referenced by aboutsetmiscstring(), ccdrawabout(), ccdrawmainwindowtext(), ccdrawmsg(), claydrawtext(), claypostdrawline(), drawabout(), drawline(), drawpopup(), opdefaultdrawtext(), statsline(), tabledefaultdrawcell(), tabledisplaytitle(), tabledrawcellcallback(), and tabledrawtitlecallback().

Here is the call graph for this function:

short pointdist Point  pt1,
Point  pt2
 

Definition at line 913 of file quickdraw.c.

boolean pointinrect Point  pt,
Rect  r
 

Definition at line 2235 of file quickdraw.c.

boolean popbackcolor void   ) 
 

Definition at line 802 of file quickdraw.c.

boolean popclip void   ) 
 

Definition at line 584 of file quickdraw.c.

boolean popcolors void   ) 
 

Definition at line 835 of file quickdraw.c.

boolean popforecolor void   ) 
 

Definition at line 735 of file quickdraw.c.

boolean poppen void   ) 
 

Definition at line 861 of file quickdraw.c.

boolean popport void   ) 
 

Definition at line 349 of file quickdraw.c.

References BIGSTRING, getport(), globalfontinfo, idportstackempty, nil, portstack, setport(), shellinternalerror, and topport.

Referenced by aboutsetmiscstring(), boldenbutton(), browsernewwindow(), drawwindowmessage(), getcurrentscreenbounds(), getmousewindowpos(), globaltolocalpoint(), graywindow(), invalwindowrect(), langfunctionvalue(), localtoglobalpoint(), localtoglobalrect(), mescriptwindowclosed(), mezoomdownwindow(), newchildwindow(), newfilewindow(), opunpackversion2(), popmacport(), shellcopyprintinfo(), shelldrawgrowicon(), shellinvalcontent(), shellsetselectioninfo(), shellupdatewindow(), tableunpacktable(), windowsetcolor(), wpnewrecord(), wppopdraw(), zoomwindowfrom(), and zoomwindowto().

Here is the call graph for this function:

boolean popstyle void   ) 
 

Definition at line 632 of file quickdraw.c.

boolean pushbackcolor const RGBColor rgb  ) 
 

Definition at line 761 of file quickdraw.c.

boolean pushclip Rect  r  ) 
 

Definition at line 451 of file quickdraw.c.

boolean pushcliprgn hdlregion  rgnclip,
boolean  flomit
 

Definition at line 412 of file quickdraw.c.

References BIGSTRING, checkdepth, clipstack, ctclip, idregionstackfull, rgn, SectRgn, shellinternalerror, and topclip.

Referenced by pushclip(), pushemptyclip(), pushvalidrgnclip(), shellupdatecontent(), and shellupdatewindow().

boolean pushcolors const RGBColor forecolor,
const RGBColor backcolor
 

Definition at line 827 of file quickdraw.c.

boolean pushemptyclip void   ) 
 

Definition at line 560 of file quickdraw.c.

boolean pushforecolor const RGBColor rgb  ) 
 

Definition at line 695 of file quickdraw.c.

boolean pushpen void   ) 
 

Definition at line 842 of file quickdraw.c.

boolean pushport CGrafPtr  p  ) 
 

Definition at line 312 of file quickdraw.c.

References BIGSTRING, checkdepth, ctports, getport(), globalfontinfo, nil, portstack, setport(), shellinternalerror, and topport.

Referenced by aboutsetmiscstring(), boldenbutton(), drawwindowmessage(), getcurrentscreenbounds(), getmousewindowpos(), globaltolocalpoint(), graywindow(), invalwindowrect(), langfunctionvalue(), localtoglobalpoint(), localtoglobalrect(), mescriptwindowclosed(), mezoomdownwindow(), myMoof(), newchildwindow(), newfilewindow(), pushmacport(), pushscratchport(), shellcopyprintinfo(), shelldrawgrowicon(), shellinvalcontent(), shellsetselectioninfo(), shellupdatewindow(), windowsetcolor(), wppushdraw(), zoomwindowfrom(), and zoomwindowto().

Here is the call graph for this function:

boolean pushscratchport void   ) 
 

Definition at line 387 of file quickdraw.c.

References pushport().

Referenced by browsernewwindow(), opunpackversion2(), tableunpacktable(), and wpnewrecord().

Here is the call graph for this function:

boolean pushstyle short  fnum,
short  fsize,
short  fstyle
 

Definition at line 606 of file quickdraw.c.

boolean pushvalidrgnclip void   ) 
 

Definition at line 519 of file quickdraw.c.

References CopyRgn, getcurrentwindow(), globaltolocalrgn(), pushcliprgn(), quickdrawglobal, and rgn.

Referenced by wpactivate().

Here is the call graph for this function:

boolean rectinregion Rect  r,
hdlregion  rgn
 

Definition at line 2905 of file quickdraw.c.

References recttowinrect().

Referenced by shellrectneedsupdate().

Here is the call graph for this function:

void recttodiskrect Rect r,
diskrect rdisk
 

Definition at line 2991 of file quickdraw.c.

References diskrect::bottom, diskrect::left, diskrect::right, short, and diskrect::top.

Referenced by cccopywindowinfo(), ccinitwindowinfo(), ccupdatewindowinfo(), hashpackvisit(), langpackvalue(), mesavemenurecord(), oppack(), pictpack(), pictunpack(), and wppackheader().

void rgbtodiskrgb RGBColor r,
diskrgb rgbdisk
 

Definition at line 3022 of file quickdraw.c.

References diskrgb::blue, diskrgb::green, diskrgb::red, and short.

Referenced by hashpackvisit(), and langpackvalue().

void scrollrect Rect  r,
short  dh,
short  dv
 

Definition at line 2253 of file quickdraw.c.

void scrollrecthoriz Rect  r,
short  dh
 

Definition at line 2345 of file quickdraw.c.

References scrollrect().

Here is the call graph for this function:

void scrollrectvert Rect  r,
short  dv
 

Definition at line 2339 of file quickdraw.c.

References scrollrect().

Here is the call graph for this function:

void setgraypen void   ) 
 

Definition at line 1921 of file quickdraw.c.

References assert, and toppen.

Referenced by aboutupdate(), graydrawline(), grayframerect(), grayframerrgn(), langerrorframetext(), medrawseparatorline(), tableupdategridlines(), and zoomrect().

void setport GrafPtr  port  ) 
 

Definition at line 280 of file quickdraw.c.

References NULL.

Referenced by newshellwindow(), popport(), pushport(), and shellsetglobals().

void setrect Rect rset,
short  top,
short  pleft,
short  bottom,
short  pright
 

Definition at line 2189 of file quickdraw.c.

void setthemepen const short  brush,
Rect  r,
boolean  flupdate
 

Definition at line 1947 of file quickdraw.c.

References maxdepth.

Referenced by drawthemeborder(), frame3sides(), frameedittextrect(), and tabledisplaytitle().

void smashrect Rect  r  ) 
 

Definition at line 1702 of file quickdraw.c.

short stringpixels bigstring  bs  ) 
 

Definition at line 1026 of file quickdraw.c.

References tyFontInfo::ascent, tyFontInfo::descent, globalfontinfo, tyFontInfo::leading, r, and stringlength.

Referenced by ccdrawmainwindowtext(), centerbuttonstring(), claydrawtext(), claypostdrawline(), drawabout(), ellipsize(), getbuttonwidth(), opmeasuretext(), setcomputedfields(), shellzoomwindow(), tablecellcontentwidth(), tableclienttitlepopuphit(), tablegetmaxcolwidthvisit(), tabletitleclick(), and tabletitleclickcallback().

boolean superpushclip Rect  r  ) 
 

Definition at line 471 of file quickdraw.c.

References BIGSTRING, checkdepth, clipstack, ctclip, idclipstackfull, rgn, shellinternalerror, and topclip.

Referenced by scrollbarpushclip().

boolean systemhascolor void   ) 
 

Definition at line 2890 of file quickdraw.c.

void unionrect Rect  r1,
Rect  r2,
Rect runion
 

Definition at line 2351 of file quickdraw.c.

References recttowinrect(), and winrecttorect().

Referenced by issubrect(), and opdefaultgetfullrect().

Here is the call graph for this function:

void validrect Rect  r  ) 
 

Definition at line 1777 of file quickdraw.c.

void zerorect Rect rzero  ) 
 

Definition at line 1414 of file quickdraw.c.


Variable Documentation

RGBColor blackcolor = {0, 0, 0}
 

Definition at line 74 of file quickdraw.c.

hdlregion clipstack[ctclip] [static]
 

Definition at line 141 of file quickdraw.c.

Referenced by initquickdraw(), popclip(), pushclip(), pushcliprgn(), and superpushclip().

RGBColor darkbluecolor = {0, 0, 32767}
 

Definition at line 80 of file quickdraw.c.

RGBColor darkgraycolor = {10922, 10922, 10922}
 

Definition at line 82 of file quickdraw.c.

RGBColor darkgreencolor = {0, 32767, 0}
 

Definition at line 102 of file quickdraw.c.

RGBColor darkpurplecolor = {16384, 0, 16384}
 

Definition at line 96 of file quickdraw.c.

RGBColor darkredcolor = {32767, 0, 0}
 

Definition at line 100 of file quickdraw.c.

RGBColor graycolor = {32767, 32767, 32767}
 

Definition at line 84 of file quickdraw.c.

RGBColor greencolor = {0, 32767, 0}
 

Definition at line 76 of file quickdraw.c.

RGBColor lightbluecolor = {52428, 52428, 65535}
 

Definition at line 78 of file quickdraw.c.

RGBColor lightgraycolor = {61166, 61166, 61166}
 

Definition at line 88 of file quickdraw.c.

RGBColor lightgreencolor = {52428, 65535, 52428}
 

Definition at line 92 of file quickdraw.c.

RGBColor lightpurplecolor = {65535, 52428, 65535}
 

Definition at line 94 of file quickdraw.c.

RGBColor lightredcolor = {65535, 52428, 52428}
 

Definition at line 98 of file quickdraw.c.

RGBColor lightyellowcolor = {65535, 65535, 52428}
 

Definition at line 90 of file quickdraw.c.

RGBColor mediumgraycolor = {52428, 52428, 52428}
 

Definition at line 86 of file quickdraw.c.

CGrafPtr portstack[ctports] [static]
 

Definition at line 140 of file quickdraw.c.

Referenced by popmacport(), popport(), pushmacport(), and pushport().

hdlregion scratchrgn [static]
 

Definition at line 159 of file quickdraw.c.

tystylerecord stylestack[ctstyle] [static]
 

Definition at line 142 of file quickdraw.c.

Referenced by popstyle(), and pushstyle().

short topbackcolor = 0 [static]
 

Definition at line 138 of file quickdraw.c.

Referenced by eraserect(), popbackcolor(), and pushbackcolor().

short topclip = 0 [static]
 

Definition at line 134 of file quickdraw.c.

Referenced by popclip(), pushclip(), pushcliprgn(), and superpushclip().

short topforecolor = 0 [static]
 

Definition at line 137 of file quickdraw.c.

Referenced by popforecolor(), and pushforecolor().

short toppen = 0 [static]
 

Definition at line 135 of file quickdraw.c.

Referenced by poppen(), pushforecolor(), pushpen(), and setgraypen().

short topport = 0 [static]
 

Definition at line 133 of file quickdraw.c.

Referenced by popmacport(), popport(), pushmacport(), and pushport().

short topstyle = 0 [static]
 

Definition at line 136 of file quickdraw.c.

Referenced by popstyle(), and pushstyle().

RGBColor whitecolor = {65535, 65535, 65535}
 

Definition at line 72 of file quickdraw.c.


Generated on Sat Jun 10 02:27:14 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6