3 /* You must initialize these! */
6 struct Gadget
*lastgad
;
8 /* read this if you want to know if a button is already pressed down */
13 #define BUTTON_MAGIC_LONGWORD (('O' << 24L) + ('o' << 16L) + ('p' << 8L) + 's')
17 struct Gadget
*idata_Gadget
; /* NULL for sole images */
18 struct TextAttr
*idata_TextAttr
;
20 APTR idata_VisualInfo
;
21 ULONG idata_Underscore
;
24 /* AROS: taken from boopsigads.i */
28 struct InitData lod_IData
;
35 #define KEYB_SHORTCUT 1
36 #define FILESTR_CHANGED 2
38 #define RAWKEY_UP 0x4C
39 #define RAWKEY_DOWN 0x4D
45 struct MsgPort
*msgport
;
46 struct IntuiMessage fakeimsg
;
49 #define USERFLAG_UP_DOWN_ARROW 0x1
50 #define USERFLAG_MATCH_FILE 0x2
52 extern int REGARGS
CatStrLen (char *);
53 extern char REGARGS
KeyFromStr (char *, char);
54 extern struct Gadget
* REGARGS
my_CreateButtonGadget(struct Gadget
*, ULONG
, struct NewGadget
*);
55 extern struct Gadget
* REGARGS
my_CreateIntegerGadget(struct Gadget
*, struct NewGadget
*, int, LONG
, ULONG
);
56 extern struct Gadget
* REGARGS
my_CreateStringGadget (struct Gadget
*, struct NewGadget
*, int, char *);
57 extern void REGARGS
my_SetStringGadget (struct Window
*, struct Gadget
*, char *);
58 extern void REGARGS
my_SetIntegerGadget (struct Window
*, struct Gadget
*, long);
59 extern void REGARGS
my_FreeGadgets (struct Gadget
*);
60 extern void REGARGS
my_SelectGadget (struct Gadget
*, struct Window
*);
61 extern struct Gadget
*REGARGS
my_GetKeyGadget (UBYTE
, struct Gadget
*);
62 /* convert rawkey to ascii and check if gadget down/up. Returns gadgetid if up. */
63 extern ULONG REGARGS
CheckGadgetKey (int code
, int qual
,
64 char *, struct KeyButtonInfo
*);
65 /* press gadget down, if key (code) comes up gadget will pop up! */
66 extern void REGARGS
my_DownGadget (struct Gadget
*, UWORD
, struct KeyButtonInfo
*);
68 struct Image
* REGARGS
my_CreateGadgetLabelImage (struct Image
*, struct NewGadget
*, char *, WORD
, WORD
, UWORD
);
69 void REGARGS
my_FreeLabelImages (struct Image
*);