home *** CD-ROM | disk | FTP | other *** search
/ Kyūkyoku!! X68000 Emulator / X68000Book.dat / mac / OLS / X68000 / Ko-Window / kow142s.lzh / corlib / title.h < prev    next >
Text File  |  1991-08-01  |  1KB  |  88 lines

  1. /* corlib */
  2. /* 1991 Å¼è}î┤öÄöV */
  3.  
  4. /* from clip.h */
  5. typedef struct    {
  6.         int    x1,
  7.             y1,
  8.             x2,
  9.             y2;
  10.     } ClipPart;
  11.  
  12. typedef    struct    {
  13.         ClipPart    clip;
  14.     } ClipClass;
  15.  
  16.  
  17. /* from window.h */
  18. typedef    struct    {
  19.         int        type;
  20.         int        check;
  21.         int        client;
  22.         void        *clientp;
  23.         int        ownerid;
  24.         int        attr;
  25.         int        eventattr;
  26.         ClipClass    curclip;
  27.         int        hx,
  28.                 hy;
  29.         void        *parent;
  30.         void        *last,
  31.                 *next;
  32.         void        *childtop,
  33.                 *childbottom;
  34.         int        id;
  35.         int        (*event)();
  36.     } WindowPart;
  37.  
  38. typedef    struct    {
  39.         ClipPart    clip;
  40.         WindowPart    window;
  41.     } WindowClass;
  42.  
  43.  
  44. /* from simple.h */
  45. #define    SimpleType    1
  46.  
  47. typedef    struct    {
  48.         int    id,
  49.             (*event)();
  50.     } SimplePart;
  51.  
  52. typedef    struct    {
  53.         ClipPart    clip;
  54.         WindowPart    window;
  55.         SimplePart    simple;
  56.     } SimpleClass;
  57.  
  58.  
  59. /* from title.h */
  60. #define    TitleType    2
  61.  
  62. #define    MAX_LABEL_LEN    31
  63. #define    Close        1
  64. #define    Push        2
  65. #define    Icon        4
  66. #define    Resize        8
  67. #define    Zoom        16
  68.  
  69. typedef    struct    {
  70.         int        id,
  71.                 (*event)();
  72.         int        button;
  73.         unsigned char    label[MAX_LABEL_LEN+1];
  74.         ClipClass    close;
  75.         ClipClass    push;
  76.         ClipClass    icon;
  77.         ClipClass    resize;
  78.         ClipClass    zoom;
  79.     } TitlePart;
  80.  
  81. typedef    struct    {
  82.         ClipPart    clip;
  83.         WindowPart    window;
  84.         SimplePart    simple;
  85.         TitlePart    title;
  86.     } TitleClass;
  87.  
  88.