popup.c File Reference

#include "frontier.h"
#include "standard.h"
#include "quickdraw.h"
#include "font.h"
#include "cursor.h"
#include "menu.h"
#include "mouse.h"
#include "bitmaps.h"
#include "strings.h"
#include "smallicon.h"
#include "popup.h"
#include "frontierwindows.h"
#include "windowlayout.h"
#include "shell.h"

Include dependency graph for popup.c:

Go to the source code of this file.

Defines

#define initpopupfont()   ((void *) 0)

Functions

boolean pushpopupitem (hdlmenu hmenu, bigstring bs, boolean flenabled, short commandid)
static short handlepopup (hdlmenu hmenu, Rect r, short item)
boolean popupmenuhit (Rect r, boolean flgeneva9, fillpopupcallback fillpopuproutine, popupselectcallback popupselectroutine)
boolean drawpopup (Rect rpopup, bigstring bs, boolean flbitmap)
boolean adjustpopupcursor (Point pt, Rect r)


Define Documentation

 
#define initpopupfont  )     ((void *) 0)
 

Definition at line 293 of file popup.c.

Referenced by drawpopup().


Function Documentation

boolean adjustpopupcursor Point  pt,
Rect  r
 

Definition at line 414 of file popup.c.

References cursorispopup, pointinrect(), pt, and setcursortype().

Here is the call graph for this function:

boolean drawpopup Rect  rpopup,
bigstring  bs,
boolean  flbitmap
 

Definition at line 330 of file popup.c.

References closebitmap(), tyFontInfo::descent, displaypopupicon(), ellipsize(), eraserect(), framerect(), getport(), globalfontinfo, h, initpopupfont, insetrect(), movepento(), newtexthandle(), nil, openbitmap(), pendrawline(), pendrawstring(), popstyle(), popuparrowwidth, popupfont, popupfontsize, pushstyle(), r, and setrect().

Here is the call graph for this function:

static short handlepopup hdlmenu  hmenu,
Rect  r,
short  item
[static]
 

Definition at line 62 of file popup.c.

References cursorisarrow, getfrontwindow(), HiWord, localtoglobalpoint(), LoWord, mousestatus, nil, noErr, NULL, pt, rightmousebuttonaction, setcursortype(), shellframewindow, UINT, and tymouserecord::whichbutton.

Referenced by popupmenuhit().

Here is the call graph for this function:

boolean popupmenuhit Rect  r,
boolean  flgeneva9,
fillpopupcallback  fillpopuproutine,
popupselectcallback  popupselectroutine
 

Definition at line 173 of file popup.c.

References checkmenuitem(), disposemenu(), fl, fontgetnumber(), getresourcemenu(), handlepopup(), inserthierarchicmenu(), insetrect(), Newmenu(), nil, removemenu(), and sysbeep.

Referenced by ccagentpopuphit(), mecmdkeypopup(), minipopuphit(), scriptmousedown(), tableclienttitlepopuphit(), tablekindpopuphit(), and tablesortpopuphit().

Here is the call graph for this function:

boolean pushpopupitem hdlmenu  hmenu,
bigstring  bs,
boolean  flenabled,
short  commandid
 

Definition at line 45 of file popup.c.

References countmenuitems(), disablemenuitem(), and pushmenuitem().

Here is the call graph for this function:


Generated on Fri Jun 9 23:29:22 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6