appletcolorpopup.c File Reference

#include "appletdefs.h"
#include "appletquickdraw.h"
#include "appletcursor.h"
#include "appletmemory.h"
#include "appletcolorpopup.h"

Include dependency graph for appletcolorpopup.c:

Go to the source code of this file.

Defines

#define mPopupMsg   3
#define PATCHSIZE   8
#define OUTSETSIZE   1
#define ITEMSIZE   (PATCHSIZE+OUTSETSIZE+1)

Functions

static void getitemrect (short item, Rect *ritem)
static void frameitem (short item, Rect menurect)
static void drawcolorpopup (Rect menurect)
static pascal void colormenuhandler (short msg, MenuHandle hmenu, Rect *menurect, Point pt, short *item)
static boolean initcolorpopup (void)
boolean clickcolorpopup (Point pt, RGBColor *rgb)

Variables

CSpecArray * ctable
MenuHandle colormenu
static boolean flpopupinit = false


Define Documentation

#define ITEMSIZE   (PATCHSIZE+OUTSETSIZE+1)
 

Definition at line 21 of file appletcolorpopup.c.

Referenced by colormenuhandler(), and getitemrect().

#define mPopupMsg   3
 

Definition at line 18 of file appletcolorpopup.c.

#define OUTSETSIZE   1
 

Definition at line 20 of file appletcolorpopup.c.

Referenced by colormenuhandler().

#define PATCHSIZE   8
 

Definition at line 19 of file appletcolorpopup.c.


Function Documentation

boolean clickcolorpopup Point  pt,
RGBColor rgb
 

Definition at line 233 of file appletcolorpopup.c.

References colormenu, cursorisarrow, flpopupinit, HiWord, initcolorpopup(), LoWord, pt, and setcursortype().

Here is the call graph for this function:

static pascal void colormenuhandler short  msg,
MenuHandle  hmenu,
Rect menurect,
Point  pt,
short item
[static]
 

Definition at line 109 of file appletcolorpopup.c.

References drawcolorpopup(), frameitem(), ITEMSIZE, mPopupMsg, OUTSETSIZE, and pt.

Here is the call graph for this function:

static void drawcolorpopup Rect  menurect  )  [static]
 

Definition at line 74 of file appletcolorpopup.c.

References blackcolor, ctable, getitemrect(), i, lightbluecolor, pushforecolor(), and r.

Referenced by colormenuhandler().

Here is the call graph for this function:

static void frameitem short  item,
Rect  menurect
[static]
 

Definition at line 49 of file appletcolorpopup.c.

References blackcolor, getitemrect(), popforecolor(), poppen(), pushforecolor(), pushpen(), and r.

Here is the call graph for this function:

static void getitemrect short  item,
Rect ritem
[static]
 

Definition at line 26 of file appletcolorpopup.c.

References ITEMSIZE, and r.

static boolean initcolorpopup void   )  [static]
 

Definition at line 173 of file appletcolorpopup.c.

References appnewhandle(), colormenu, colormenuhandler(), ctable, HLock, long, and systemhascolor().

Here is the call graph for this function:


Variable Documentation

MenuHandle colormenu
 

Definition at line 23 of file appletcolorpopup.c.

Referenced by clickcolorpopup(), colormenuclick(), and initcolorpopup().

CSpecArray* ctable
 

Definition at line 22 of file appletcolorpopup.c.

Referenced by colormenuclick(), colormenuhandler(), drawcolorpopup(), and initcolorpopup().

boolean flpopupinit = false [static]
 

Definition at line 170 of file appletcolorpopup.c.

Referenced by clickcolorpopup().


Generated on Wed May 31 20:12:17 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6