home *** CD-ROM | disk | FTP | other *** search
/ Kyūkyoku!! X68000 Emulator / X68000Book.dat / mac / OLS / X68000 / Ko-Window / kow142s.lzh / corlib / MgButton.h < prev    next >
Text File  |  1994-05-04  |  1KB  |  67 lines

  1. /*    Copyright 1992 H.Ogasawara (COR.)    */
  2. /*        MenuButton é≡Æ╟ë┴ 1994 ébé`éa    */
  3. /*        TouchButton é≡Æ╟ë┴ 1994 ébé`éa    */
  4.  
  5. #define    PushButton    0
  6. #define    PushButtonStr    1
  7. #define    PushButtonSht    2
  8. #define    ToggleButton    3
  9. #define    MenuButton    4
  10. #define    TouchButton    5
  11.  
  12. typedef struct mb {
  13.     int    x1, y1, x2, y2;
  14.     struct mb *next;
  15.     int    type;
  16.     int    ret;
  17. } MgButton;
  18.  
  19. typedef struct mbs {
  20.     int    x1, y1, x2, y2;
  21.     struct mb *next;
  22.     int    type;
  23.     int    ret;
  24.     char    *str;
  25.     short    attr;
  26.     short    font;
  27.     short    h;
  28. } MgButtonStr;
  29.  
  30. typedef struct mbt {
  31.     int    x1, y1, x2, y2;
  32.     struct mb *next;
  33.     int    type;
  34.     int    ret;
  35.     Sheet    *shon, *shoff;
  36. } MgButtonSht;
  37.  
  38. typedef struct tbs {
  39.     int    x1, y1, x2, y2;
  40.     struct mb *next;
  41.     int    type;
  42.     int    ret;
  43.     int    *sw;
  44. } MgButtonTgl;
  45.  
  46. typedef struct mmb {
  47.     int    x1, y1, x2, y2;
  48.     struct mb *next;
  49.     int    type;
  50.     int    ret;
  51.     int    (*exec)();
  52.     int    opt;
  53. #if 0
  54.     char    **item;        /* â|âbâvâAâbâvâüâjâàü[è╓ÉöùpæIæ≡ìÇû┌ */
  55.     int    items;        /* æIæ≡ìÇû┌Éö */
  56.     int    font;        /* ò╢ÄÜâtâHâôâg */
  57. #endif
  58. } MgButtonMenu;
  59.  
  60. typedef struct tcb {
  61.     int    x1, y1, x2, y2;
  62.     struct mb *next;
  63.     int    type;
  64.     int    ret;
  65. } MgButtonTouch;
  66.  
  67.