appletpopup.c File Reference

#include "appletmemory.h"
#include "appletstrings.h"
#include "appletfont.h"
#include "appletmouse.h"
#include "appletquickdraw.h"
#include "appletops.h"
#include "appletcursor.h"
#include "appletmenuops.h"
#include "appletpopup.h"

Include dependency graph for appletpopup.c:

Go to the source code of this file.

Defines

#define defaultpopupfontnum   geneva
#define defaultpopupfontsize   9
#define defaultpopupfontstyle   0

Functions

boolean initpopuprecord (typopuprecord *popup)
boolean pushpopupitem (typopuprecord *popup, bigstring bs, boolean flenabled)
static void displaypopupicon (Rect r, boolean flenabled)
void idealpopupsize (typopuprecord *popup, short *height, short *width)
void drawpopup (typopuprecord *popup)
static void icontracker (boolean flpressed)
static boolean arrowtracker (Rect r, popupcallback arrowcallback)
boolean popupclick (typopuprecord *popup)
boolean adjustpopupcursor (typopuprecord *popup)

Variables

static short trackericonnum
static Rect trackerrect


Define Documentation

#define defaultpopupfontnum   geneva
 

Definition at line 18 of file appletpopup.c.

Referenced by initpopuprecord().

#define defaultpopupfontsize   9
 

Definition at line 19 of file appletpopup.c.

Referenced by initpopuprecord().

#define defaultpopupfontstyle   0
 

Definition at line 20 of file appletpopup.c.

Referenced by initpopuprecord().


Function Documentation

boolean adjustpopupcursor typopuprecord popup  ) 
 

Definition at line 379 of file appletpopup.c.

References cursorispopup, tymouserecord::localpt, mousestatus, and setcursortype().

Here is the call graph for this function:

static boolean arrowtracker Rect  r,
popupcallback  arrowcallback
[static]
 

Definition at line 259 of file appletpopup.c.

References icontracker(), mousetrack(), and trackerrect.

Referenced by popupclick().

Here is the call graph for this function:

static void displaypopupicon Rect  r,
boolean  flenabled
[static]
 

Definition at line 74 of file appletpopup.c.

References plotsmallicon().

Here is the call graph for this function:

void drawpopup typopuprecord popup  ) 
 

Definition at line 148 of file appletpopup.c.

References bigstring, copystring(), tyFontInfo::descent, displaypopupicon(), ellipsize(), emptyrect(), globalfontinfo, nil, plotsmallicon(), popbackcolor(), popstyle(), popuparrowwidth, popupdrawinset, pushbackcolor(), pushstyle(), r, whitecolor, widthsmallicon, and zerorect().

Here is the call graph for this function:

static void icontracker boolean  flpressed  )  [static]
 

Definition at line 238 of file appletpopup.c.

References lightbluecolor, plotsmallicon(), popbackcolor(), pushbackcolor(), trackericonnum, and trackerrect.

Referenced by arrowtracker().

Here is the call graph for this function:

void idealpopupsize typopuprecord popup,
short height,
short width
 

Definition at line 95 of file appletpopup.c.

References tyFontInfo::ascent, bigstring, countmenuitems(), tyFontInfo::descent, getmenuitem(), globalfontinfo, h, i, and pushstyle().

Here is the call graph for this function:

boolean initpopuprecord typopuprecord popup  ) 
 

Definition at line 29 of file appletpopup.c.

References clearbytes(), defaultpopupfontnum, defaultpopupfontsize, defaultpopupfontstyle, and longsizeof.

Here is the call graph for this function:

boolean popupclick typopuprecord popup  ) 
 

Definition at line 276 of file appletpopup.c.

References arrowtracker(), cursorisarrow, geneva, HiWord, tymouserecord::localpt, LoWord, mousestatus, popstyle(), pt, pushstyle(), setcursortype(), trackericonnum, and uncheckallmenuitems().

Here is the call graph for this function:

boolean pushpopupitem typopuprecord popup,
bigstring  bs,
boolean  flenabled
 

Definition at line 49 of file appletpopup.c.

References bigstring, chspace, equalstrings(), isemptystring, and setstringwithchar.

Here is the call graph for this function:


Variable Documentation

short trackericonnum [static]
 

Definition at line 23 of file appletpopup.c.

Referenced by icontracker(), and popupclick().

Rect trackerrect [static]
 

Definition at line 25 of file appletpopup.c.

Referenced by arrowtracker(), and icontracker().


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