appletpalette.c File Reference

#include "applet.h"

Include dependency graph for appletpalette.c:

Go to the source code of this file.

Defines

#define drawinset   3
#define ctperline   2
#define heightpaletteicon   (heightsmallicon + 6)
#define widthpaletteicon   (widthsmallicon + 6)
#define breakpixels   4

Functions

static void geticonrect (hdlpaletterecord hpal, short iconnum, Rect *ricon)
void getpalettesize (hdlpaletterecord hpal, short *height, short *width)
static void oldgeticonrect (hdlpaletterecord hpal, short iconnum, Rect *ricon)
hdlpaletterecord newpalette (WindowPtr macwindow, short cticons)
void disposepalette (hdlpaletterecord hpal)
static void centersmallicon (Rect r, short iconlist, short iconnum, boolean flinvert)
void paletteupdate (hdlpaletterecord hpal)
void invalpalette (hdlpaletterecord hpal)
void invalpaletteitem (hdlpaletterecord hpal, short itemnum)
void palettemousedown (hdlpaletterecord hpal)
void paletteactivate (hdlpaletterecord hpal, boolean flactivate)
void paletteselectitem (hdlpaletterecord hpal, short itemnum)


Define Documentation

#define breakpixels   4
 

Definition at line 14 of file appletpalette.c.

Referenced by geticonrect(), and oldgeticonrect().

#define ctperline   2
 

Definition at line 11 of file appletpalette.c.

#define drawinset   3
 

Definition at line 10 of file appletpalette.c.

#define heightpaletteicon   (heightsmallicon + 6)
 

Definition at line 12 of file appletpalette.c.

#define widthpaletteicon   (widthsmallicon + 6)
 

Definition at line 13 of file appletpalette.c.

Referenced by newpalette().


Function Documentation

static void centersmallicon Rect  r,
short  iconlist,
short  iconnum,
boolean  flinvert
[static]
 

Definition at line 146 of file appletpalette.c.

References heightsmallicon, plotsmallicon(), and widthsmallicon.

Referenced by paletteupdate().

Here is the call graph for this function:

void disposepalette hdlpaletterecord  hpal  ) 
 

Definition at line 140 of file appletpalette.c.

References disposehandle().

Referenced by disposeappwindow(), and newappwindow().

Here is the call graph for this function:

static void geticonrect hdlpaletterecord  hpal,
short  iconnum,
Rect ricon
[static]
 

Definition at line 18 of file appletpalette.c.

References breakpixels, i, and r.

Referenced by getpalettesize(), invalpaletteitem(), palettemousedown(), and paletteupdate().

void getpalettesize hdlpaletterecord  hpal,
short height,
short width
 

Definition at line 71 of file appletpalette.c.

References typaletterecord::cticons, drawinset, geticonrect(), and r.

Referenced by zoomappwindow().

Here is the call graph for this function:

void invalpalette hdlpaletterecord  hpal  ) 
 

Definition at line 201 of file appletpalette.c.

void invalpaletteitem hdlpaletterecord  hpal,
short  itemnum
 

Definition at line 207 of file appletpalette.c.

References geticonrect(), and r.

Referenced by paletteselectitem().

Here is the call graph for this function:

hdlpaletterecord newpalette WindowPtr  macwindow,
short  cticons
 

Definition at line 123 of file appletpalette.c.

References drawinset, longsizeof, typaletterecord::macwindow, newclearhandle(), nil, and widthpaletteicon.

Referenced by newappwindow().

Here is the call graph for this function:

static void oldgeticonrect hdlpaletterecord  hpal,
short  iconnum,
Rect ricon
[static]
 

Definition at line 88 of file appletpalette.c.

References breakpixels, i, and r.

void paletteactivate hdlpaletterecord  hpal,
boolean  flactivate
 

Definition at line 240 of file appletpalette.c.

void palettemousedown hdlpaletterecord  hpal  ) 
 

Definition at line 217 of file appletpalette.c.

References geticonrect(), i, tymouserecord::localpt, mousestatus, and r.

Referenced by handlecontent().

Here is the call graph for this function:

void paletteselectitem hdlpaletterecord  hpal,
short  itemnum
 

Definition at line 244 of file appletpalette.c.

References i, invalpaletteitem(), and maxpaletteitems.

Here is the call graph for this function:

void paletteupdate hdlpaletterecord  hpal  ) 
 

Definition at line 156 of file appletpalette.c.

References centersmallicon(), geticonrect(), i, lightbluecolor, popbackcolor(), pushbackcolor(), r, and whitecolor.

Referenced by updateappwindow().

Here is the call graph for this function:


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