Metropoli BBS
VIEWER: gui.h MODE: TEXT (ASCII)
/*/
bits 0-15  = Generic Flags
bits 16-31 = Special Flags per object
/*/

//  Object/Window Flags
#define GUI_HIDDEN        0x1      //is object visable
#define GUI_ENABLED       0x2      //is object selectable
#define GUI_3D            0x4      //special border

//  Button Flags

//  Window Flags
#define GUI_NOTOP         0x10000  //window has no top bar (for name)

#ifdef __cplusplus
  extern "C" {
#endif

extern dword GUI_Init(char *);
extern dword GUI_CreateWindow(char *n,word x1,word y1,word x2,word y2,byte font,dword flgs);
extern dword GUI_AddButton(dword wnd,char *n,word x1,word y1,word x2,word y2,byte font,dword flgs);
extern void GUI_SetColor(byte,dword);
extern dword GUI_SetFont(byte,void *);
extern dword GUI_Update(void);
extern void GUI_SetActive(dword);

extern byte gui_error;

#ifdef __cplusplus
  }
#endif

#define GUI_ERROR_NOMOUSE 0x1
#define GUI_ERROR_NORAM   0x2
#define GUI_ERROR_FILE    0x3
[ RETURN TO DIRECTORY ]