Rules for Tools/struct Accessory
struct Accessory
The Accessory structure. Each Accessory has one of these, very similar to the
ToolMaster structure.
struct Accessory {
struct Accessory *next; /* Next accessory in this list. */
long id; /* Accessory ID. */
struct Image *image; /* Icon for this accessory. */
struct Image *onimage; /* Icon for when selected. */
char name[100]; /* Name. */
char filename[100]; /* Where it is stored on disk. */
struct Window *window;
unsigned short left,top; /* Position of edit window. */
unsigned short width,height;/* Size of edit window. */
unsigned short x,y; /* Position in access box. */
long (*remove)();
long (*edit)(); /* Routine to edit accessory. */
long (*open)(); /* Routine to open window. */
long (*close)(); /* Routine to close window. */
long (*size)(); /* Routine to size for save. */
long (*save)(); /* Save routine. */
long (*load)(); /* Load routine. */
long (*install)(); /* Install environment. */
long (*clear)(); /* Clear environment. */
long (*expandc)(); /* Future routine? */
long segment; /* This accessory's segment list. */
long altsegment;
char selected; /* Icon selected flag. */
};