revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / reqtools / boopsigads.h
blob8a4f777e1f26e73d694d7a73e278e3a2e9ec4781
1 struct KeyButtonInfo
3 /* You must initialize these! */
4 struct Window *win;
5 struct Gadget *glist;
6 struct Gadget *lastgad;
8 /* read this if you want to know if a button is already pressed down */
9 UWORD lastcode;
13 #define BUTTON_MAGIC_LONGWORD (('O' << 24L) + ('o' << 16L) + ('p' << 8L) + 's')
15 struct InitData
17 struct Gadget *idata_Gadget; /* NULL for sole images */
18 struct TextAttr *idata_TextAttr;
19 const char *idata_Label;
20 APTR idata_VisualInfo;
21 ULONG idata_Underscore;
24 /* AROS: taken from boopsigads.i */
26 struct LocalObjData
28 struct InitData lod_IData;
29 UWORD lod_UnderOff;
30 UWORD lod_UnderWidth;
31 UWORD lod_UnderY;
32 UWORD lod_RestLen;
35 #define KEYB_SHORTCUT 1
36 #define FILESTR_CHANGED 2
38 #define RAWKEY_UP 0x4C
39 #define RAWKEY_DOWN 0x4D
41 struct StrGadUserData
43 ULONG flags;
44 struct Process *proc;
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 *);