home *** CD-ROM | disk | FTP | other *** search
- /*****
- *
- * IconUtil.c
- *
- * This is a support file for "Grant's CGI Framework".
- * Please see the license agreement that accompanies the distribution package
- * for licensing details.
- *
- * Copyright ©1995,1996 by Grant Neufeld
- * grant@acm.com
- * http://arpp.carleton.ca/grant/
- *
- *****/
-
- #include "MyConfiguration.h"
- #if kCompileWithForeground
-
- #include <Icons.h>
-
- #include "compiler_stuff.h"
-
- #include "IconUtil.h"
-
-
- /*** FUNCTIONS ***/
-
- /* IM-MoreMTB: 5-10 */
- void
- IconDrawFromFamily ( short resID, Rect *destRect, Handle *iconSuiteHdl )
- {
- IconSelectorValue iconType;
- IconAlignmentType align;
- IconTransformType transform;
- OSErr theErr;
-
- if ( *iconSuiteHdl == NULL )
- {
- iconType = svAllAvailableData;
- theErr = GetIconSuite ( iconSuiteHdl, resID, iconType );
- }
-
- if ( *iconSuiteHdl != NULL )
- {
- align = atAbsoluteCenter;
- transform = ttNone;
- theErr = PlotIconSuite ( destRect, align, transform, *iconSuiteHdl );
- }
- } /* IconDrawFromFamily */
-
-
- #endif /* kCompileWithForeground */
-
- /***** EOF *****/
-