Welcome, Guest. Please login or register.

Author Topic: .info file structure  (Read 1672 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline 23JULTopic starter

  • Newbie
  • *
  • Join Date: Mar 2002
  • Posts: 32
    • Show only replies by 23JUL
    • http://amiga.name
.info file structure
« on: May 07, 2004, 04:34:31 PM »
Well, I am interested in the .info file format.
I recently googled for it, but I couldn't find it.
Can someone point me to a description of the file structure of an .info file?
 

  • Guest
Re: .info file structure
« Reply #1 on: May 07, 2004, 05:11:18 PM »
http://netpbm.sourceforge.net/doc/infotopam.html

At the bottom. There's source code obviously in the "infotopam" tool from NetPBM :)
 

Offline Steady

Re: .info file structure
« Reply #2 on: May 07, 2004, 05:11:32 PM »
I believe it's this from workbench/workbench.h include file:

struct DrawerData {
    struct NewWindow   dd_NewWindow;   /* args to open window */
    LONG      dd_CurrentX;   /* current x coordinate of origin */
    LONG      dd_CurrentY;   /* current y coordinate of origin */
};

struct DiskObject {
    UWORD      do_Magic; /* a magic number at the start of the file */
    UWORD      do_Version; /* a version number, so we can change it */
    struct Gadget   do_Gadget;   /* a copy of in core gadget */
    UBYTE      do_Type;
    char *      do_DefaultTool;
    char **      do_ToolTypes;
    LONG      do_CurrentX;
    LONG      do_CurrentY;
    struct DrawerData * do_DrawerData;
    char *      do_ToolWindow;   /* only applies to tools */
    LONG      do_StackSize;   /* only applies to tools */

};



Get the SDK for all the details you might need.
 

Offline Georg

  • Jr. Member
  • **
  • Join Date: Feb 2002
  • Posts: 90
    • Show only replies by Georg
Re: .info file structure
« Reply #3 on: May 07, 2004, 06:29:32 PM »
Quote
Get the SDK for all the details you might need


Or look at AROS icon.library sources. There you'll also find out about AOS 3.5 style icons (have a palette like NewIcons) and MOS/AROS/PowerIcons style PNG icons.

There's also an ANSI C tool (compilable/runnable anywhere) called ilbmtoicon in there which can convert  1 or 2 IFF ILBM images to an Amiga Icon, with the possibility to specify special icon attributes like tooltypes, default tool, stack size, in a text file which is examined during conversion.