appletscrollbar.c File Reference

#include "appletinternal.h"
#include "appletops.h"
#include "appletquickdraw.h"
#include "appletmain.h"
#include "appletmsg.h"
#include "appletscrollbar.h"

Include dependency graph for appletscrollbar.c:

Go to the source code of this file.

Defines

#define idvertbar   256
#define idhorizbar   257
#define apphorizscrollUPP   &apphorizscroll
#define appvertscrollUPP   &appvertscroll

Functions

static boolean scrollbarpushclip (hdlscrollbar hscrollbar)
void validscrollbar (hdlscrollbar hscrollbar)
void invalscrollbar (hdlscrollbar hscrollbar)
boolean pointinscrollbar (Point pt, hdlscrollbar hscrollbar)
void disablescrollbar (hdlscrollbar hscrollbar)
void enablescrollbar (hdlscrollbar hscrollbar)
boolean scrollbarenabled (hdlscrollbar hscrollbar)
void activatescrollbar (hdlscrollbar hscrollbar, boolean flactivate)
void getscrollbarinfo (hdlscrollbar hscrollbar, short *minscroll, short *maxscroll, short *current)
short getscrollbarcurrent (hdlscrollbar hscrollbar)
void showscrollbar (hdlscrollbar hscrollbar)
void hidescrollbar (hdlscrollbar hscrollbar)
void drawscrollbar (hdlscrollbar hscrollbar)
void displayscrollbar (hdlscrollbar hscrollbar)
void setscrollbarinfo (hdlscrollbar hscrollbar, short minscroll, short maxscroll, short current)
void setscrollbarminmax (hdlscrollbar hscrollbar, short minscroll, short maxscroll)
void setscrollbarcurrent (hdlscrollbar hscrollbar, short current)
short getscrollbarwidth (void)
boolean newscrollbar (WindowPtr w, boolean flvert, hdlscrollbar *hscrollbar)
void disposescrollbar (hdlscrollbar hscrollbar)
void getscrollbarrect (hdlscrollbar hscrollbar, Rect *r)
void setscrollbarrect (hdlscrollbar hscrollbar, Rect r)
void scrollbarflushright (Rect r, hdlscrollbar hscrollbar)
void scrollbarflushbottom (Rect r, hdlscrollbar hscrollbar)
boolean findscrollbar (Point pt, WindowPtr w, hdlscrollbar *hscrollbar, short *scrollbarpart)
boolean scrollbarhit (hdlscrollbar hscrollbar, short part, boolean *flup, boolean *flpage)
void resizeappscrollbars (hdlappwindow appwindow)
void showappscrollbars (hdlappwindow appwindow)
void updateappscrollbars (hdlappwindow appwindow)
void activateappscrollbars (hdlappwindow appwindow, boolean flactivate)
tydirection scrolldirection (boolean flvert, boolean flup)
static pascal void apphorizscroll (hdlscrollbar ctrl, short part)
static pascal void appvertscroll (hdlscrollbar sb, short part)
void handlescrollbar (boolean flvert, hdlscrollbar sb, short part, Point pt)
boolean appdefaultresetscroll (void)
boolean appdefaultscroll (tydirection dir, boolean flpage, short ctscroll)
boolean scrollappwindow (tydirection dir, boolean flpage, short ctscroll)
boolean scrolltoappwindow (void)
void resetappscrollbars (hdlappwindow appwindow)
void installscroll (void)


Define Documentation

#define apphorizscrollUPP   &apphorizscroll
 

Definition at line 639 of file appletscrollbar.c.

Referenced by handlescrollbar().

#define appvertscrollUPP   &appvertscroll
 

Definition at line 640 of file appletscrollbar.c.

Referenced by handlescrollbar().

#define idhorizbar   257
 

Definition at line 17 of file appletscrollbar.c.

#define idvertbar   256
 

Definition at line 16 of file appletscrollbar.c.


Function Documentation

void activateappscrollbars hdlappwindow  appwindow,
boolean  flactivate
 

Definition at line 569 of file appletscrollbar.c.

References activatescrollbar(), app, tyappletrecord::horizscroll, and tyappletrecord::vertscroll.

Referenced by handleactivate(), and jugglervisit().

Here is the call graph for this function:

void activatescrollbar hdlscrollbar  hscrollbar,
boolean  flactivate
 

Definition at line 119 of file appletscrollbar.c.

References disablescrollbar(), enablescrollbar(), and h.

Referenced by activateappscrollbars().

Here is the call graph for this function:

boolean appdefaultresetscroll void   ) 
 

Definition at line 683 of file appletscrollbar.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, disablescrollbar(), enablescrollbar(), tyappletrecord::getcontentsizecallback, getscrollbarinfo(), and setscrollbarinfo().

Referenced by installscroll().

Here is the call graph for this function:

boolean appdefaultscroll tydirection  dir,
boolean  flpage,
short  ctscroll
 

Definition at line 756 of file appletscrollbar.c.

References app, tyappletrecord::appwindow, ct, down, getfontheight(), getscrollbarinfo(), left, max, min, optionkeydown(), popclip(), r, right, scrollbarenabled(), scrollbarpushclip(), scrolltoappwindow(), and up.

Referenced by installscroll().

Here is the call graph for this function:

static pascal void apphorizscroll hdlscrollbar  ctrl,
short  part
[static]
 

Definition at line 602 of file appletscrollbar.c.

References scrollappwindow(), scrollbarhit(), and scrolldirection().

Here is the call graph for this function:

static pascal void appvertscroll hdlscrollbar  sb,
short  part
[static]
 

Definition at line 616 of file appletscrollbar.c.

References scrollappwindow(), scrollbarhit(), and scrolldirection().

Here is the call graph for this function:

void disablescrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 72 of file appletscrollbar.c.

References h, nil, popclip(), scrollbarpushclip(), and validscrollbar().

Here is the call graph for this function:

void displayscrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 218 of file appletscrollbar.c.

References disablescrollbar(), drawscrollbar(), enablescrollbar(), getscrollbarinfo(), h, tyscrollinfo::max, tyscrollinfo::min, and nil.

Here is the call graph for this function:

void disposescrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 345 of file appletscrollbar.c.

References DisposeHandle, h, and nil.

void drawscrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 201 of file appletscrollbar.c.

References grabthreadglobals(), h, nil, popclip(), releasethreadglobals(), scrollbarpushclip(), and validscrollbar().

Here is the call graph for this function:

void enablescrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 89 of file appletscrollbar.c.

References disablescrollbar(), h, nil, popclip(), scrollbarpushclip(), and validscrollbar().

Here is the call graph for this function:

boolean findscrollbar Point  pt,
WindowPtr  w,
hdlscrollbar hscrollbar,
short scrollbarpart
 

Definition at line 416 of file appletscrollbar.c.

References nil, and pt.

short getscrollbarcurrent hdlscrollbar  hscrollbar  ) 
 

Definition at line 157 of file appletscrollbar.c.

References tyscrollinfo::cur, and getscrollbarinfo().

Here is the call graph for this function:

void getscrollbarinfo hdlscrollbar  hscrollbar,
short minscroll,
short maxscroll,
short current
 

Definition at line 138 of file appletscrollbar.c.

References h, and nil.

void getscrollbarrect hdlscrollbar  hscrollbar,
Rect r
 

Definition at line 354 of file appletscrollbar.c.

References h, nil, and zerorect().

Here is the call graph for this function:

short getscrollbarwidth void   ) 
 

Definition at line 314 of file appletscrollbar.c.

References config, and tyconfigrecord::flwindoidscrollbars.

void handlescrollbar boolean  flvert,
hdlscrollbar  sb,
short  part,
Point  pt
 

Definition at line 644 of file appletscrollbar.c.

References apphorizscrollUPP, appvertscrollUPP, getscrollbarcurrent(), invalscrollbar(), nil, popclip(), pt, scrollbarpushclip(), and scrolltoappwindow().

Referenced by handlecontent().

Here is the call graph for this function:

void hidescrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 184 of file appletscrollbar.c.

References FALSE, grabthreadglobals(), h, invalrect(), nil, popclip(), releasethreadglobals(), and scrollbarpushclip().

Here is the call graph for this function:

void installscroll void   ) 
 

Definition at line 938 of file appletscrollbar.c.

References app, appdefaultresetscroll(), appdefaultscroll(), tyappletrecord::horizscroll, nil, tyappletrecord::resetscrollcallback, tyappletrecord::scrollcallback, and tyappletrecord::vertscroll.

Referenced by checknilcallbacks().

Here is the call graph for this function:

void invalscrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 52 of file appletscrollbar.c.

References h, invalrect(), and nil.

Referenced by adjustaftergrow(), handlescrollbar(), and zoomappwindow().

Here is the call graph for this function:

boolean newscrollbar WindowPtr  w,
boolean  flvert,
hdlscrollbar hscrollbar
 

Definition at line 320 of file appletscrollbar.c.

References config, tyconfigrecord::flwindoidscrollbars, h, idhorizbar, idhorizbaroid, idvertbar, idvertbaroid, NewHandle, nil, and NULL.

boolean pointinscrollbar Point  pt,
hdlscrollbar  hscrollbar
 

Definition at line 61 of file appletscrollbar.c.

References h, nil, pointinrect(), and pt.

Here is the call graph for this function:

void resetappscrollbars hdlappwindow  appwindow  ) 
 

Definition at line 922 of file appletscrollbar.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, tyappletrecord::resetscrollcallback, and setappwindow().

Referenced by adjustaftergrow(), moveappwindow(), newappwindow(), prepareandshowwindow(), and resetdirtyscrollbarsvisit().

Here is the call graph for this function:

void resizeappscrollbars hdlappwindow  appwindow  ) 
 

Definition at line 481 of file appletscrollbar.c.

References app, appsetmessagerect(), getscrollbarwidth(), tyappletrecord::hasmessagearea, tyappletrecord::horizscroll, invalrect(), r, scrollbarflushbottom(), scrollbarflushright(), and tyappletrecord::vertscroll.

Referenced by adjustaftergrow(), moveappwindow(), and newappwindow().

Here is the call graph for this function:

boolean scrollappwindow tydirection  dir,
boolean  flpage,
short  ctscroll
 

Definition at line 894 of file appletscrollbar.c.

References app, apppostcallback(), appprecallback(), fl, and tyappletrecord::scrollcallback.

Referenced by apphorizscroll(), appvertscroll(), and scrollwindowverb().

Here is the call graph for this function:

boolean scrollbarenabled hdlscrollbar  hscrollbar  ) 
 

Definition at line 113 of file appletscrollbar.c.

Referenced by appdefaultscroll().

void scrollbarflushbottom Rect  r,
hdlscrollbar  hscrollbar
 

Definition at line 398 of file appletscrollbar.c.

References getscrollbarwidth(), h, and nil.

Here is the call graph for this function:

void scrollbarflushright Rect  r,
hdlscrollbar  hscrollbar
 

Definition at line 380 of file appletscrollbar.c.

References getscrollbarwidth(), h, and nil.

Here is the call graph for this function:

boolean scrollbarhit hdlscrollbar  hscrollbar,
short  part,
boolean flup,
boolean flpage
 

Definition at line 424 of file appletscrollbar.c.

References getscrollbarinfo(), h, and nil.

Here is the call graph for this function:

static boolean scrollbarpushclip hdlscrollbar  hscrollbar  )  [static]
 

Definition at line 25 of file appletscrollbar.c.

References pushclip(), and r.

Here is the call graph for this function:

tydirection scrolldirection boolean  flvert,
boolean  flup
 

Definition at line 581 of file appletscrollbar.c.

References down, left, right, and up.

boolean scrolltoappwindow void   ) 
 

Definition at line 908 of file appletscrollbar.c.

References app, apppostcallback(), appprecallback(), fl, and tyappletrecord::scrolltocallback.

Referenced by appdefaultscroll(), and handlescrollbar().

Here is the call graph for this function:

void setscrollbarcurrent hdlscrollbar  hscrollbar,
short  current
 

Definition at line 299 of file appletscrollbar.c.

References h, nil, popclip(), and scrollbarpushclip().

Here is the call graph for this function:

void setscrollbarinfo hdlscrollbar  hscrollbar,
short  minscroll,
short  maxscroll,
short  current
 

Definition at line 242 of file appletscrollbar.c.

References displayscrollbar(), getscrollbarinfo(), h, nil, popclip(), and pushemptyclip().

Here is the call graph for this function:

void setscrollbarminmax hdlscrollbar  hscrollbar,
short  minscroll,
short  maxscroll
 

Definition at line 282 of file appletscrollbar.c.

References getscrollbarinfo(), h, nil, and setscrollbarinfo().

Here is the call graph for this function:

void setscrollbarrect hdlscrollbar  hscrollbar,
Rect  r
 

Definition at line 365 of file appletscrollbar.c.

References h, and nil.

void showappscrollbars hdlappwindow  appwindow  ) 
 

Definition at line 537 of file appletscrollbar.c.

References app, tyappletrecord::horizscroll, showscrollbar(), and tyappletrecord::vertscroll.

Referenced by newappwindow(), and prepareandshowwindow().

Here is the call graph for this function:

void showscrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 167 of file appletscrollbar.c.

References grabthreadglobals(), h, nil, popclip(), releasethreadglobals(), scrollbarpushclip(), and TRUE.

Here is the call graph for this function:

void updateappscrollbars hdlappwindow  appwindow  ) 
 

Definition at line 549 of file appletscrollbar.c.

References app, drawscrollbar(), tyappletrecord::horizscroll, showscrollbar(), and tyappletrecord::vertscroll.

Referenced by updateappwindow().

Here is the call graph for this function:

void validscrollbar hdlscrollbar  hscrollbar  ) 
 

Definition at line 43 of file appletscrollbar.c.

References assert, h, nil, and validrect().

Here is the call graph for this function:


Generated on Wed May 31 21:43:51 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6