appleticons.c File Reference

#include <Icons.h>
#include "appletdefs.h"
#include "appletmemory.h"
#include "appleticons.h"

Include dependency graph for appleticons.c:

Go to the source code of this file.

Defines

#define svAllAvailableData   0xFFFFFFFF

Functions

pascal OSErr NewIconSuite (Handle *iconsuite)
pascal OSErr AddIconToSuite (Handle iconbits, Handle iconsuite, ResType resid)
pascal OSErr DisposeIconSuite (Handle iconsuite, Boolean disposeData)
pascal OSErr PlotIconSuite (const Rect *r, short align, short transform, Handle iconsuite)
pascal OSErr GetIconFromSuite (Handle *iconbits, Handle iconsuite, ResType resid)
pascal OSErr PlotIconID (Rect *r, short align, short transform, short resid)
pascal OSErr GetIconSuite (Handle *theSuite, short theID, long theSelector)
boolean geticonsuite (short id, Handle *iconsuite)
boolean newiconsuite (Handle *iconsuite)
boolean addicontosuite (Handle iconbits, Handle iconsuite, ResType resid)
boolean disposeiconsuite (Handle iconsuite, Boolean disposeData)
boolean ploticonsuite (Rect *r, short align, short transform, Handle iconsuite)
boolean geticonfromsuite (Handle *iconbits, Handle iconsuite, ResType resid)
boolean ploticonresource (Rect *r, short align, short transform, short resid)
ResType icontypetorestype (short icontype)
static boolean packone (Handle iconsuite, ResType type, Handle hpacked)
boolean packiconsuite (Handle iconsuite, Handle *hpacked)
boolean unpackiconsuite (Handle hpacked, Handle *iconsuite)

Variables

unsigned short ttLabel [8] = {0x0000, 0x0100, 0x0200, 0x0300, 0x0400, 0x0500, 0x0600, 0x0700}


Define Documentation

#define svAllAvailableData   0xFFFFFFFF
 

Definition at line 15 of file appleticons.c.

Referenced by geticonsuite().


Function Documentation

boolean addicontosuite Handle  iconbits,
Handle  iconsuite,
ResType  resid
 

Definition at line 72 of file appleticons.c.

References AddIconToSuite(), and noErr.

Referenced by unpackiconsuite().

Here is the call graph for this function:

pascal OSErr AddIconToSuite Handle  iconbits,
Handle  iconsuite,
ResType  resid
 

Referenced by addicontosuite().

boolean disposeiconsuite Handle  iconsuite,
Boolean  disposeData
 

Definition at line 78 of file appleticons.c.

References DisposeIconSuite(), nil, and noErr.

Referenced by unpackiconsuite().

Here is the call graph for this function:

pascal OSErr DisposeIconSuite Handle  iconsuite,
Boolean  disposeData
 

Referenced by disposeiconsuite().

boolean geticonfromsuite Handle iconbits,
Handle  iconsuite,
ResType  resid
 

Definition at line 93 of file appleticons.c.

References GetIconFromSuite(), and noErr.

Referenced by packone().

Here is the call graph for this function:

pascal OSErr GetIconFromSuite Handle iconbits,
Handle  iconsuite,
ResType  resid
 

Referenced by geticonfromsuite().

boolean geticonsuite short  id,
Handle iconsuite
 

Definition at line 60 of file appleticons.c.

References GetIconSuite(), noErr, and svAllAvailableData.

Here is the call graph for this function:

pascal OSErr GetIconSuite Handle theSuite,
short  theID,
long  theSelector
 

Referenced by geticonsuite().

ResType icontypetorestype short  icontype  ) 
 

Definition at line 143 of file appleticons.c.

boolean newiconsuite Handle iconsuite  ) 
 

Definition at line 66 of file appleticons.c.

References NewIconSuite(), and noErr.

Referenced by unpackiconsuite().

Here is the call graph for this function:

pascal OSErr NewIconSuite Handle iconsuite  ) 
 

Referenced by newiconsuite().

boolean packiconsuite Handle  iconsuite,
Handle hpacked
 

Definition at line 195 of file appleticons.c.

References disposehandle(), error, h, newclearhandle(), and packone().

Here is the call graph for this function:

static boolean packone Handle  iconsuite,
ResType  type,
Handle  hpacked
[static]
 

Definition at line 175 of file appleticons.c.

References enlargehandle(), GetHandleSize, geticonfromsuite(), longsizeof, and pushhandleonhandle().

Referenced by packiconsuite().

Here is the call graph for this function:

pascal OSErr PlotIconID Rect r,
short  align,
short  transform,
short  resid
 

Referenced by ploticonresource().

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

Definition at line 99 of file appleticons.c.

References nil, noErr, and PlotIconID().

Here is the call graph for this function:

boolean ploticonsuite Rect r,
short  align,
short  transform,
Handle  iconsuite
 

Definition at line 87 of file appleticons.c.

References noErr, and PlotIconSuite().

Here is the call graph for this function:

pascal OSErr PlotIconSuite const Rect r,
short  align,
short  transform,
Handle  iconsuite
 

Referenced by ploticonsuite().

boolean unpackiconsuite Handle  hpacked,
Handle iconsuite
 

Definition at line 232 of file appleticons.c.

References addicontosuite(), disposeiconsuite(), error, GetHandleSize, lockhandle(), longsizeof, newfilledhandle(), newiconsuite(), and unlockhandle().

Here is the call graph for this function:


Variable Documentation

unsigned short ttLabel[8] = {0x0000, 0x0100, 0x0200, 0x0300, 0x0400, 0x0500, 0x0600, 0x0700}
 

Definition at line 12 of file appleticons.c.


Generated on Wed May 31 20:49:34 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6