Subversion Repositories pentevo

Rev

Rev 796 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?

  1. #pragma once
  2.  
  3. struct MENUITEM
  4. {
  5.    const char *text;
  6.    enum FLAGS { DISABLED = 1, LEFT = 2, RIGHT = 4, CENTER = 8 } flags;
  7. };
  8.  
  9. struct MENUDEF
  10. {
  11.    MENUITEM *items;
  12.    unsigned n_items;
  13.    const char *title;
  14.    unsigned pos;
  15. };
  16.  
  17. extern unsigned char txtscr[80*30*2];
  18. extern char str[0x80];
  19. extern unsigned nfr;
  20.  
  21. void filledframe(unsigned x, unsigned y, unsigned dx, unsigned dy, unsigned char color = FFRAME_INSIDE);
  22. void fillattr(unsigned x, unsigned y, unsigned dx, unsigned char color = FFRAME_INSIDE);
  23. void tprint(unsigned x, unsigned y, const char *str, unsigned char attr);
  24. void tprint_fg(unsigned x, unsigned y, const char *str, unsigned char attr);
  25. unsigned inputhex(unsigned x, unsigned y, unsigned sz, bool hex);
  26. int input2(unsigned x, unsigned y, unsigned val);
  27. int input4(unsigned x, unsigned y, unsigned val);
  28. void debugflip();
  29. char handle_menu(MENUDEF *menu);
  30. void frame(unsigned x, unsigned y, unsigned dx, unsigned dy, unsigned char attr);
  31.