home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 581a.lha / IntuitionSupLibrary_v2.0 / Gadgets / source.lzh / imports.h < prev    next >
C/C++ Source or Header  |  1991-10-20  |  4KB  |  84 lines

  1.         /*************************************
  2.          *                                   *
  3.          *            Gadgets v2.0           *
  4.          *   by Torsten Jürgeleit in 05/91   *
  5.          *                                   *
  6.          *              Imports              *
  7.          *                                   *
  8.          *************************************/
  9.  
  10.     /* Imports */
  11.  
  12. IMPORT ULONG dec_table[];    /* from texts.c */
  13.  
  14.     /* Static prototypes */
  15.  
  16. USHORT count_gadget_data_entries(struct GadgetData  *gd);
  17. ULONG  get_gadget_buffer_size(struct GadgetList  *gl);
  18. ULONG  get_image_buffer_size(struct GadgetList  *gl);
  19. VOID   init_gadgets(struct GadgetList  *gl, SHORT hoffset, SHORT voffset);
  20. BYTE   *init_extended_gadget(struct ExtendedGadget  *egad, BYTE *buffer,
  21.              struct GadgetList  *gl, USHORT data_entry, USHORT type,
  22.         USHORT left_edge, USHORT top_edge, USHORT width, USHORT height);
  23. BYTE   *init_gadget_border(BYTE *buffer, struct RenderInfo  *ri,
  24.                  struct ExtendedGadget  *egad, ULONG flags);
  25. USHORT init_gadget_text(struct ExtendedGadget  *egad, BYTE *text,
  26.                    USHORT width, USHORT height, ULONG flags,
  27.                            struct TextAttr  *text_attr);
  28. BYTE   *init_mx_text(struct ExtendedGadget  *egad, BYTE *buffer, BYTE *text,
  29.                    USHORT width, USHORT height, ULONG flags,
  30.                            struct TextAttr  *text_attr);
  31. BOOL   check_gadget_image(struct Image  *image);
  32. BYTE   *init_gadget_image(struct ExtendedGadget  *egad,
  33.                       struct GadgetData  *gd, BYTE *buffer);
  34. BYTE   *init_image_data(struct ExtendedGadget  *image, BYTE *buffer);
  35. VOID   refresh_gadget(struct ExtendedGadget  *egad);
  36. VOID   change_gadget(struct ExtendedGadget  *egad);
  37. VOID   change_count_gadget(struct ExtendedGadget  *egad);
  38. VOID   print_gadget_text(struct ExtendedGadget  *egad);
  39. VOID   print_cycle_text(struct ExtendedGadget  *egad);
  40. VOID   print_count_text(struct ExtendedGadget  *egad);
  41. VOID   print_list_view_text(struct ExtendedGadget  *egad);
  42. VOID   timer_delay(ULONG seconds, ULONG micros);
  43. USHORT calc_prop_body(ULONG max_num, ULONG size);
  44. USHORT calc_prop_pot(ULONG max_num, ULONG size, ULONG num);
  45. ULONG  get_prop_pos(ULONG max_num, ULONG size, USHORT pot_value);
  46. struct IntuiMessage    *perform_gadget_action(struct ExtendedGadget  *egad,
  47.                        struct IntuiMessage  *real_imsg);
  48. struct IntuiMessage    *perform_hot_key_action(struct ExtendedGadget  *egad,
  49.                        struct IntuiMessage  *real_imsg);
  50. struct IntuiMessage    *create_intui_message(struct IntuiMessage  *real_imsg,
  51.              struct GadgetList  *gl,USHORT data_entry, ULONG value);
  52. struct ExtendedGadget  *get_active_gadget(struct Window  *win);
  53. struct ExtendedGadget  *get_hot_key_gadget(struct Window  *win,
  54.                                 USHORT hot_key);
  55.  
  56.     /* Static pragmas */
  57.  
  58. #pragma regcall(count_gadget_data_entries(a0))
  59. #pragma regcall(get_gadget_buffer_size(a0))
  60. #pragma regcall(init_gadgets(a0,d0,d1))
  61. #pragma regcall(init_extended_gadget(a0,a1,a2,d0,d1,d2,d3,d4,d5))
  62. #pragma regcall(init_gadget_border(a0,a1,a2,d0))
  63. #pragma regcall(init_gadget_text(a0,a1,d0,d1,d2,a2))
  64. #pragma regcall(init_mx_text(a0,a1,a2,d0,d1,d2,a3))
  65. #pragma regcall(check_gadget_image(a0))
  66. #pragma regcall(init_gadget_image(a0,a1,a2))
  67. #pragma regcall(init_image_data(a0,a1))
  68. #pragma regcall(refresh_gadget(a0))
  69. #pragma regcall(change_gadget(a0))
  70. #pragma regcall(change_count_gadget(a0))
  71. #pragma regcall(print_gadget_text(a0))
  72. #pragma regcall(print_cycle_text(a0))
  73. #pragma regcall(print_count_text(a0))
  74. #pragma regcall(print_list_view_text(a0))
  75. #pragma regcall(timer_delay(d0,d1))
  76. #pragma regcall(calc_prop_body(d0,d1))
  77. #pragma regcall(calc_prop_pot(d0,d1,d2))
  78. #pragma regcall(get_prop_pos(d0,d1,d2))
  79. #pragma regcall(perform_gadget_action(a0,a1))
  80. #pragma regcall(perform_hot_key_action(a0,a1))
  81. #pragma regcall(create_intui_message(a0,a1,d0,d1))
  82. #pragma regcall(get_active_gadget(a0))
  83. #pragma regcall(get_hot_key_gadget(a0,d0))
  84.