Sindbad~EG File Manager

Current Path : /usr/home/beeson/MathXpert/
Upload File :
Current File : /usr/home/beeson/MathXpert/cmdmenus.h

/*______________________________________________________________________*/
/* menu data structure.  A menu is created in a window; the choices are
written starting at the top of the text area of the window.  Any header
and footer are handled through the window data structure, not the
menu itself. */

#ifndef _MENU_DEFINED
#define _MENU_DEFINED

typedef struct
   { unsigned nitems:5;  /* no more than 32 items */
     unsigned text_visible: 1;
     unsigned kind: 2;   /* see 'text' below */
     int width:7;
     unsigned needed: 1;  /* for use by MATHPERT; is this menu needed now? */
     void *text; /* character-attribute buffer of menu text (kind==0) */
                 /* double array of characters only (if kind ==1) */
                 /* array of strings (if kind==2) */
                 /* not including title and footer, just the choices */
     unsigned char item;  /* items are numbered starting from 1 */
     unsigned char item_height;   /* definite integration menus have
                                       choices requiring more than one line */
   }  menu;
#endif

void menus_needed(int,term);
int menu_of_menus(void);
void setup_menus(void);
menu *get_menus(void);  /* returns base of menus array */

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists