grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / intuition / menus.h
blobab68deab46f2d59a4add251687fcf17997b35426
1 #ifndef MENUS_H
2 #define MENUS_H
4 /*
5 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 $Id$
9 Message structure the MenuHandler gets from Intuition.
12 struct MenuMessage
14 struct Message msg;
15 WORD code;
16 struct Window *win;
17 struct InputEvent ie;
20 #define MMCODE_START 1
21 #define MMCODE_EVENT 2
22 #define MMCODE_STARTCLOCK 4
24 #define MENUS_ACTIVE (GetPrivIBase(IntuitionBase)->MenusActive)
26 #define IECLASS_MENU IECLASS_EVENT
27 #define IESUBCLASS_MENUSTOP 21
29 struct MenuMessage *AllocMenuMessage(struct IntuitionBase *IntuitionBase);
30 void FreeMenuMessage(struct MenuMessage *msg, struct IntuitionBase *IntuitionBase);
31 void SendMenuMessage(struct MenuMessage *msg, struct IntuitionBase *IntuitionBase);
32 struct MenuMessage *GetMenuMessage(struct MsgPort *port, struct IntuitionBase *IntuitionBase);
33 void ReplyMenuMessage(struct MenuMessage *msg, struct IntuitionBase *IntuitionBase);
35 void MH2Int_MakeMenusInactive(struct Window *win, UWORD menupick, struct IntuitionBase *IntuitionBase);
37 void GetMenuBox(struct Window *win, struct MenuItem *item,
38 WORD *xmin, WORD *ymin, WORD *xmax, WORD *ymax);
40 UWORD FindMenuShortCut(struct Menu *menu, UBYTE key, BOOL do_click_op,
41 struct IntuitionBase *IntuitionBase);
42 void CheckMenuItemWasClicked(struct MenuItem *item, UWORD itemnum, struct MenuItem *parentitem);
44 #endif /* MENUS_H */