shellbuttons.c File Reference

#include "frontier.h"
#include "standard.h"
#include "cursor.h"
#include "memory.h"
#include "quickdraw.h"
#include "bitmaps.h"
#include "frontierconfig.h"
#include "font.h"
#include "mouse.h"
#include "scrollbar.h"
#include "sounds.h"
#include "strings.h"
#include "shell.h"
#include "shellbuttons.h"
#include "shellprivate.h"
#include "oplist.h"

Include dependency graph for shellbuttons.c:

Go to the source code of this file.

Defines

#define backgroundcolor   lightblueindex
#define backgroundpattern   128

Functions

static void shellgetbuttonlist (hdlwindowinfo hinfo, hdllistrecord *buttonlist)
static long shellgetbuttonlistcount (hdlwindowinfo hinfo)
static void shellrefreshbuttonstatus (void)
static boolean buttonenabled (short ix)
static boolean buttondisplayed (short ix)
static short getbuttonstyle (short ix)
static short countbuttons (void)
static short getbuttonwidth (void)
static short countdisplayedbefore (short ix)
void shellgetbuttonrect (short ix, Rect *rbutton)
static void drawbuttonbackground (Rect r)
void shelldrawbutton (short ix, boolean flpressed)
void shelldrawbuttons (void)
static void buttontracker (boolean flpressed)
void shellbuttonhit (Point pt)
void shellgetbuttonsrect (hdlwindowinfo hinfo, Rect *buttonsrect)
void shellinvalbuttons (void)
boolean shellgetbuttonstring (short ix, bigstring bs)
void shellbuttongetoptimalwidth (short *width)
void shellbuttonadjustcursor (Point pt)

Variables

static boolean flbuttonbitmap = false
static short mousebuttonnumber = 0


Define Documentation

#define backgroundcolor   lightblueindex
 

Definition at line 47 of file shellbuttons.c.

#define backgroundpattern   128
 

Definition at line 49 of file shellbuttons.c.

Referenced by drawbuttonbackground().


Function Documentation

static boolean buttondisplayed short  ix  )  [static]
 

Definition at line 139 of file shellbuttons.c.

Referenced by countbuttons(), countdisplayedbefore(), getbuttonwidth(), shelldrawbutton(), and shellgetbuttonrect().

static boolean buttonenabled short  ix  )  [static]
 

Definition at line 131 of file shellbuttons.c.

Referenced by shellbuttonhit(), and shelldrawbutton().

static void buttontracker boolean  flpressed  )  [static]
 

Definition at line 578 of file shellbuttons.c.

References mousebuttonnumber, popclip(), pushclip(), and shelldrawbutton().

Referenced by shellbuttonhit().

Here is the call graph for this function:

static short countbuttons void   )  [static]
 

Definition at line 183 of file shellbuttons.c.

References buttondisplayed(), ct, i, shellgetbuttonlist(), shellgetbuttonlistcount(), and shellwindowinfo.

Referenced by shellbuttongetoptimalwidth(), and shellgetbuttonrect().

Here is the call graph for this function:

static short countdisplayedbefore short  ix  )  [static]
 

Definition at line 252 of file shellbuttons.c.

References buttondisplayed(), ct, and i.

Referenced by shellgetbuttonrect().

Here is the call graph for this function:

static void drawbuttonbackground Rect  r  )  [static]
 

Definition at line 314 of file shellbuttons.c.

References backgroundpattern, colorenabled(), eraserect(), fillcolorrect(), and fillrect().

Referenced by shelldrawbutton(), and shelldrawbuttons().

Here is the call graph for this function:

static short getbuttonstyle short  ix  )  [static]
 

Definition at line 149 of file shellbuttons.c.

References normal.

Referenced by shelldrawbutton().

static short getbuttonwidth void   )  [static]
 

Definition at line 206 of file shellbuttons.c.

References bigstring, boldbuttonstyle, buttondisplayed(), buttonfont, buttonsize, ct, i, max, nil, opgetliststring(), pushstyle(), shellgetbuttonlist(), shellgetbuttonlistcount(), shellwindowinfo, and stringpixels().

Referenced by shellbuttongetoptimalwidth(), and shellgetbuttonrect().

Here is the call graph for this function:

void shellbuttonadjustcursor Point  pt  ) 
 

Definition at line 733 of file shellbuttons.c.

References cursorisarrow, and setcursortype().

Referenced by shelladjustcursor().

Here is the call graph for this function:

void shellbuttongetoptimalwidth short width  ) 
 

Definition at line 701 of file shellbuttons.c.

References countbuttons(), ct, getbuttonwidth(), pixelsbetweenbuttons, and shellrefreshbuttonstatus().

Referenced by scriptgetoutinesize().

Here is the call graph for this function:

void shellbuttonhit Point  pt  ) 
 

Definition at line 592 of file shellbuttons.c.

References buttonenabled(), tyshellglobals::buttonroutine, buttontracker(), ct, i, mousebuttonnumber, mousetrack(), ouch(), pointinrect(), pt, shellgetbuttonlist(), shellgetbuttonlistcount(), shellgetbuttonrect(), shellglobals, shellrefreshbuttonstatus(), and shellwindowinfo.

Referenced by shellhandlemouse().

Here is the call graph for this function:

void shelldrawbutton short  ix,
boolean  flpressed
 

Definition at line 403 of file shellbuttons.c.

References bigstring, buttondisplayed(), buttonenabled(), buttonfont, buttonsize, centerbuttonstring(), closebitmap(), copystring(), drawbuttonbackground(), dropshadowrect(), eraseandframerect(), flbuttonbitmap, getbuttonstyle(), h, newtexthandle(), nil, offsetrect(), openbitmap(), opgetliststring(), popbackcolor(), popstyle(), pushbackcolor(), pushstyle(), shellgetbuttonlist(), shellgetbuttonrect(), shellwindow, and shellwindowinfo.

Referenced by buttontracker(), and shelldrawbuttons().

Here is the call graph for this function:

void shelldrawbuttons void   ) 
 

Definition at line 519 of file shellbuttons.c.

References closebitmap(), drawbuttonbackground(), flbuttonbitmap, i, movepento(), nil, opcountlistitems(), openbitmap(), pendrawline(), r, shelldrawbutton(), shellgetbuttonlist(), shellrefreshbuttonstatus(), shellwindow, and shellwindowinfo.

Referenced by scriptinvalbuttonsvisit(), shellactivatewindow(), and shellupdatewindow().

Here is the call graph for this function:

static void shellgetbuttonlist hdlwindowinfo  hinfo,
hdllistrecord buttonlist
[static]
 

Definition at line 64 of file shellbuttons.c.

References tyshellglobals::buttonlist, and shellglobals.

Referenced by countbuttons(), getbuttonwidth(), shellbuttonhit(), shelldrawbutton(), shelldrawbuttons(), shellgetbuttonlistcount(), shellgetbuttonrect(), shellgetbuttonstring(), and shellrefreshbuttonstatus().

static long shellgetbuttonlistcount hdlwindowinfo  hinfo  )  [static]
 

Definition at line 80 of file shellbuttons.c.

References nil, opcountlistitems(), and shellgetbuttonlist().

Referenced by countbuttons(), getbuttonwidth(), shellbuttonhit(), and shellrefreshbuttonstatus().

Here is the call graph for this function:

void shellgetbuttonrect short  ix,
Rect rbutton
 

Definition at line 266 of file shellbuttons.c.

References buttonbottominset, buttondisplayed(), buttontopinset, countbuttons(), countdisplayedbefore(), ct, getbuttonwidth(), max, pixelsbetweenbuttons, r, shellgetbuttonlist(), shellwindowinfo, and zerorect().

Referenced by shellbuttonhit(), and shelldrawbutton().

Here is the call graph for this function:

void shellgetbuttonsrect hdlwindowinfo  hinfo,
Rect buttonsrect
 

Definition at line 646 of file shellbuttons.c.

References r, and shellgetwindowrect().

Referenced by shellresetwindowrects().

Here is the call graph for this function:

boolean shellgetbuttonstring short  ix,
bigstring  bs
 

Definition at line 689 of file shellbuttons.c.

References nil, opgetliststring(), shellgetbuttonlist(), and shellwindowinfo.

Referenced by scriptnewprocess().

Here is the call graph for this function:

void shellinvalbuttons void   ) 
 

Definition at line 666 of file shellbuttons.c.

References tywindowinfo::buttonsenabled, invalwindowrect(), shellrefreshbuttonstatus(), shellwindow, and shellwindowinfo.

Referenced by opverblinkcode(), scriptdirtyhook(), and scriptinvalbuttonsvisit().

Here is the call graph for this function:

static void shellrefreshbuttonstatus void   )  [static]
 

Definition at line 97 of file shellbuttons.c.

References tyshellglobals::buttonstatusroutine, ct, tybuttonstatus::fldisplay, tybuttonstatus::flenabled, i, shellgetbuttonlist(), shellgetbuttonlistcount(), shellglobals, and shellwindowinfo.

Referenced by shellbuttongetoptimalwidth(), shellbuttonhit(), shelldrawbuttons(), and shellinvalbuttons().

Here is the call graph for this function:


Variable Documentation

boolean flbuttonbitmap = false [static]
 

Definition at line 59 of file shellbuttons.c.

Referenced by shelldrawbutton(), and shelldrawbuttons().

short mousebuttonnumber = 0 [static]
 

Definition at line 61 of file shellbuttons.c.

Referenced by buttontracker(), and shellbuttonhit().


Generated on Tue Jun 13 00:43:20 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6