home *** CD-ROM | disk | FTP | other *** search
- /*
- IconLib.h - routines over and above RISC_OSLib and DeskLib.
- */
- /*
-
- ##### # #
- # # # # #
- # # #
- # ## #### #### # ## ####
- # # # # # # # # # #
- # # # # # ### # # # #
- # # # # # # # # # #
- # ### # # # #### ##### ### ####
-
- -----------------------------------------------------------------------------
-
- This is source for use with the 'DeskLib' Wimp C programming library for
- Risc OS. I currently use v1.04 of DeskLib. This source is FreeWare, which
- means you can use it to write commercial applications, but you may not charge
- *in any way* for the distribution of this source. I (Tim Browse) retain
- all copyright on this source.
-
- This source is provided 'as is' and I offer no guarantees that is useful,
- bug-free, commented, that it will compile, or even that it exists.
-
- If it breaks in half, you own both pieces.
-
- All source © Tim Browse 1993
-
- -----------------------------------------------------------------------------
-
- */
-
- /* DeskLib includes */
- #include "DeskLib.Wimp.h"
-
- /* The following are used when examining icon flags/data. A simple macro is
- provide to find the type of an icon. */
-
- #define NO_ICON_DATA 0
- #define TXT_ONLY 1
- #define SPR_ONLY 2
- #define TXT_AND_SPR 3
-
- #define ICON_TYPE(flags) ((flags) & 3)
-
- void IconLib_DisposeIndData(icon_data *data, icon_flags flags);
- /*
- This will free any indirected data for this icon. It uses free(), so
- obviously expects that malloc() was used to get the memory in the first
- place, so make sure this is the case if you use this function.
- */
-