Upon leaving IRQ check whether the code will go back to user mode (or system mode...
[AROS.git] / rom / dosboot / gadgets.h
blobad517880550a640bac8fe0cc39d0261b3c881386
1 #ifndef BOOTMENU_GADGETS_H
2 #define BOOTMENU_GADGETS_H
4 #include <intuition/classusr.h>
5 #include <intuition/intuition.h>
7 struct DOSBootBase;
9 struct ButtonGadget {
10 struct Gadget *gadget;
11 WORD XY1[6];
12 WORD XY2[6];
13 struct Border uborder1;
14 struct Border uborder2;
15 struct Border sborder1;
16 struct Border sborder2;
19 struct MainGadgets {
20 struct ButtonGadget *boot;
21 struct ButtonGadget *bootnss;
22 struct ButtonGadget *bootopt;
23 struct ButtonGadget *displayopt;
24 struct ButtonGadget *expboarddiag;
25 struct ButtonGadget *use;
26 struct ButtonGadget *cancel;
29 #define BUTTON_BOOT 1
30 #define BUTTON_BOOT_WNSS 2
31 #define BUTTON_BOOT_OPTIONS 3
32 #define BUTTON_DISPLAY_OPTIONS 4
33 #define BUTTON_EXPBOARDDIAG 5
34 #define BUTTON_USE 6
35 #define BUTTON_CANCEL 7
36 #define BUTTON_CONTINUE 8
38 struct ButtonGadget *createButton(ULONG, ULONG, ULONG, ULONG, struct Gadget *, STRPTR, UWORD, struct DOSBootBase *);
39 void freeButtonGadget(struct ButtonGadget *, struct DOSBootBase *);
40 #endif