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 >
Wrap
C/C++ Source or Header
|
1991-10-20
|
4KB
|
84 lines
/*************************************
* *
* Gadgets v2.0 *
* by Torsten Jürgeleit in 05/91 *
* *
* Imports *
* *
*************************************/
/* Imports */
IMPORT ULONG dec_table[]; /* from texts.c */
/* Static prototypes */
USHORT count_gadget_data_entries(struct GadgetData *gd);
ULONG get_gadget_buffer_size(struct GadgetList *gl);
ULONG get_image_buffer_size(struct GadgetList *gl);
VOID init_gadgets(struct GadgetList *gl, SHORT hoffset, SHORT voffset);
BYTE *init_extended_gadget(struct ExtendedGadget *egad, BYTE *buffer,
struct GadgetList *gl, USHORT data_entry, USHORT type,
USHORT left_edge, USHORT top_edge, USHORT width, USHORT height);
BYTE *init_gadget_border(BYTE *buffer, struct RenderInfo *ri,
struct ExtendedGadget *egad, ULONG flags);
USHORT init_gadget_text(struct ExtendedGadget *egad, BYTE *text,
USHORT width, USHORT height, ULONG flags,
struct TextAttr *text_attr);
BYTE *init_mx_text(struct ExtendedGadget *egad, BYTE *buffer, BYTE *text,
USHORT width, USHORT height, ULONG flags,
struct TextAttr *text_attr);
BOOL check_gadget_image(struct Image *image);
BYTE *init_gadget_image(struct ExtendedGadget *egad,
struct GadgetData *gd, BYTE *buffer);
BYTE *init_image_data(struct ExtendedGadget *image, BYTE *buffer);
VOID refresh_gadget(struct ExtendedGadget *egad);
VOID change_gadget(struct ExtendedGadget *egad);
VOID change_count_gadget(struct ExtendedGadget *egad);
VOID print_gadget_text(struct ExtendedGadget *egad);
VOID print_cycle_text(struct ExtendedGadget *egad);
VOID print_count_text(struct ExtendedGadget *egad);
VOID print_list_view_text(struct ExtendedGadget *egad);
VOID timer_delay(ULONG seconds, ULONG micros);
USHORT calc_prop_body(ULONG max_num, ULONG size);
USHORT calc_prop_pot(ULONG max_num, ULONG size, ULONG num);
ULONG get_prop_pos(ULONG max_num, ULONG size, USHORT pot_value);
struct IntuiMessage *perform_gadget_action(struct ExtendedGadget *egad,
struct IntuiMessage *real_imsg);
struct IntuiMessage *perform_hot_key_action(struct ExtendedGadget *egad,
struct IntuiMessage *real_imsg);
struct IntuiMessage *create_intui_message(struct IntuiMessage *real_imsg,
struct GadgetList *gl,USHORT data_entry, ULONG value);
struct ExtendedGadget *get_active_gadget(struct Window *win);
struct ExtendedGadget *get_hot_key_gadget(struct Window *win,
USHORT hot_key);
/* Static pragmas */
#pragma regcall(count_gadget_data_entries(a0))
#pragma regcall(get_gadget_buffer_size(a0))
#pragma regcall(init_gadgets(a0,d0,d1))
#pragma regcall(init_extended_gadget(a0,a1,a2,d0,d1,d2,d3,d4,d5))
#pragma regcall(init_gadget_border(a0,a1,a2,d0))
#pragma regcall(init_gadget_text(a0,a1,d0,d1,d2,a2))
#pragma regcall(init_mx_text(a0,a1,a2,d0,d1,d2,a3))
#pragma regcall(check_gadget_image(a0))
#pragma regcall(init_gadget_image(a0,a1,a2))
#pragma regcall(init_image_data(a0,a1))
#pragma regcall(refresh_gadget(a0))
#pragma regcall(change_gadget(a0))
#pragma regcall(change_count_gadget(a0))
#pragma regcall(print_gadget_text(a0))
#pragma regcall(print_cycle_text(a0))
#pragma regcall(print_count_text(a0))
#pragma regcall(print_list_view_text(a0))
#pragma regcall(timer_delay(d0,d1))
#pragma regcall(calc_prop_body(d0,d1))
#pragma regcall(calc_prop_pot(d0,d1,d2))
#pragma regcall(get_prop_pos(d0,d1,d2))
#pragma regcall(perform_gadget_action(a0,a1))
#pragma regcall(perform_hot_key_action(a0,a1))
#pragma regcall(create_intui_message(a0,a1,d0,d1))
#pragma regcall(get_active_gadget(a0))
#pragma regcall(get_hot_key_gadget(a0,d0))