home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / commod / sdark14s.lha / includes / tom_gadget.h < prev   
Text File  |  1993-03-20  |  1KB  |  60 lines

  1. #define    MAX_GADGET    20    /* Max number of gadget in a Window */
  2.  
  3. #define GD_ok                                  0
  4. #define GD_test                                1
  5. #define GD_cancel                              2
  6. #define GD_info                                3
  7.  
  8. #define GD_first                               4
  9.  
  10. typedef    enum{
  11.     END_LISTE,    /* This is to signal the end of the dark gadget list*/
  12.     BUTTON,        /* A simple button gadget                */
  13.     SLIDER,
  14.     CHECKBOX,
  15.     MX,
  16.     LISTVIEW,
  17.     OWN_GADGET,
  18.     CYCLE,
  19.     STRING,
  20.     INTEGER,
  21.     SCREEN,            /* A button to choose screen resolution */
  22.     DATA_STRING,        /* Data not show, only for saving    */
  23.     IMAGE,            /* It's to show an image structure     */
  24.     FONT            /* A button to choose a font        */
  25. }type_gadget;
  26.  
  27. #define    HORIZ    1
  28. #define    VERT    2
  29.     
  30. typedef    struct    own_init{
  31.     struct    Gadget    (*own_add)();
  32.     void    (*own_press)();
  33.     void    (*own_end)();
  34. };
  35.  
  36. typedef    struct    tom_gadget{
  37.     char    *GadgetText;
  38.     type_gadget    type_gadg;
  39.     short    int    LeftEdge,TopEdge;
  40.     short    int    Width,Height;
  41.     short    int    value;
  42.     short    int    d1,d2,d3;
  43.     char    *p_data;
  44.     struct    Gadget    *p_gadg;
  45.  
  46. };
  47.  
  48. typedef    struct    contexe{
  49.     struct    tom_gadget    *t_g;
  50.     struct    Window    *Wnd;
  51.     APTR        Visual;
  52.     struct Gadget        *GList;
  53.     int        flg_end;
  54.     int        flg_save;
  55.     char    *p_name;
  56. };
  57.  
  58. int    find_res(USHORT flg_depth,SHORT *p_depth,SHORT *p_tx,SHORT *p_ty,ULONG *p_d_id);
  59.  
  60.