icon.c File Reference

#include "frontier.h"
#include "standard.h"
#include "quickdraw.h"
#include "font.h"
#include "cursor.h"
#include "mouse.h"
#include "ops.h"
#include "icon.h"
#include "shellprint.h"
#include "strings.h"
#include "file.h"
#include "resources.h"
#include "launch.h"
#include "byteorder.h"

Include dependency graph for icon.c:

Go to the source code of this file.

Defines

#define shrunkenwindoidicon   133
#define menubaricon   134
#define depressedshrunkenwindoidicon   135
#define windoidwithtexticon   137
#define windoidwithnotexticon   138

Functions

boolean ploticonresource (const Rect *r, short align, short transform, short resid)
boolean ploticoncustom (const Rect *r, short align, short transform, bigstring bsiconname)
boolean ploticon (const Rect *r, short id)
void drawlabeledicon (const Rect *r, short resnum, bigstring bslabel, boolean flinverted)
void drawlabeledwindoidicon (Rect r, bigstring bslabel, boolean flhastext, boolean flpressed)
boolean trackicon (Rect r, void(*displayiconcallback)(boolean))


Define Documentation

#define depressedshrunkenwindoidicon   135
 

Definition at line 64 of file icon.c.

Referenced by drawlabeledwindoidicon().

#define menubaricon   134
 

Definition at line 63 of file icon.c.

#define shrunkenwindoidicon   133
 

Definition at line 62 of file icon.c.

#define windoidwithnotexticon   138
 

Definition at line 66 of file icon.c.

Referenced by drawlabeledwindoidicon().

#define windoidwithtexticon   137
 

Definition at line 65 of file icon.c.

Referenced by drawlabeledwindoidicon().


Function Documentation

void drawlabeledicon const Rect r,
short  resnum,
bigstring  bslabel,
boolean  flinverted
 

Definition at line 620 of file icon.c.

References tyFontInfo::ascent, centerrect(), centerstring, tyFontInfo::descent, geneva, globalfontinfo, invertrect(), ploticon(), popstyle(), and pushstyle().

Referenced by drawlabeledwindoidicon().

Here is the call graph for this function:

void drawlabeledwindoidicon Rect  r,
bigstring  bslabel,
boolean  flhastext,
boolean  flpressed
 

Definition at line 716 of file icon.c.

References tyFontInfo::ascent, centerstring, depressedshrunkenwindoidicon, tyFontInfo::descent, drawlabeledicon(), geneva, globalfontinfo, nil, popstyle(), pushstyle(), windoidwithnotexticon, and windoidwithtexticon.

Referenced by langerrordrawicon(), medisplayscriptbutton(), minidrawicon(), and tabledrawzoombutton().

Here is the call graph for this function:

boolean ploticon const Rect r,
short  id
 

Definition at line 575 of file icon.c.

References nil, ploticonresource(), and systemhascolor().

Referenced by drawabout(), drawlabeledicon(), and plotsmallicon().

Here is the call graph for this function:

boolean ploticoncustom const Rect r,
short  align,
short  transform,
bigstring  bsiconname
 

Definition at line 325 of file icon.c.

References BIGSTRING, bigstring, copyptocstring(), copystring(), customicongetrnum(), eraserect(), iscurrentportprintport(), NULL, ploticonresource(), pushstring(), and shellinstance.

Referenced by opdrawheadiconcustom().

Here is the call graph for this function:

boolean ploticonresource const Rect r,
short  align,
short  transform,
short  resid
 

Definition at line 70 of file icon.c.

References eraserect(), iscurrentportprintport(), nil, noErr, NULL, PlotIconID(), and shellinstance.

Here is the call graph for this function:

boolean trackicon Rect  r,
void(*)(boolean displayiconcallback
 

Definition at line 783 of file icon.c.

References cursorisarrow, mousetrack(), and setcursortype().

Referenced by aboutmousedown(), mescriptitemhit(), minimousedown(), tabletitleclick(), tabletitleclickcallback(), and tablezoombuttonhit().

Here is the call graph for this function:


Generated on Fri Jun 2 03:58:09 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6