4 // PopupMenu Library - Menu item searching
6 // Copyright (C)2000 Henrik Isaksson <henrik@boing.nu>
7 // All Rights Reserved.
15 #ifndef LIBRARIES_POPUPMENU_H
17 #endif /* LIBRARIES_POPUPMENU_H */
19 // Find a selectable item in a menu, no submenu recursion, but group recursion.
20 struct PopupMenu
*PM_FindNextSelectable(struct PM_Window
*a
, struct PopupMenu
*pm
, BOOL
*found
);
21 struct PopupMenu
*PM_FindFirstSelectable(struct PopupMenu
*pm
);
22 struct PopupMenu
*PM_FindPrevSelectable(struct PM_Window
*a
, struct PopupMenu
*pm
, BOOL
*found
);
23 struct PopupMenu
*PM_FindLastSelectable(struct PopupMenu
*pm
);
25 // Find item 'ID' in menu 'base'. Recursive.
26 struct PopupMenu
*PM_FindID(struct PopupMenu
*base
, ULONG ID
);
28 // Find last item in a menu. Recursive.
29 struct PopupMenu
*PM_FindLast(struct PopupMenu
*base
);
31 // Find item with command key 'key' in menu 'base'. Recursive.
32 struct PopupMenu
*PM_FindItemCommKey(struct PopupMenu
*base
, UBYTE key
);
34 // Find item before item 'ID' in menu 'base'. Recursive.
35 struct PopupMenu
*PM_FindBeforeID(struct PopupMenu
*base
, ULONG ID
);
37 // Find item before item 'item' :) in menu 'base'. Recursive.
38 struct PopupMenu
*PM_FindBefore(struct PopupMenu
*base
, struct PopupMenu
*item
);
40 LIBFUNC_P3_PROTO(BOOL
, LIBPM_ItemChecked
,
41 A1
, struct PopupMenu
*, pm
,
43 A6
, struct PopupMenuBase
*, l
);
46 LIBFUNC_P3_PROTO(struct PopupMenu
*, LIBPM_FindItem
,
47 A1
, struct PopupMenu
*, menu
,
49 A6
, struct PopupMenuBase
*, l
);
51 struct PopupMenu
*PM_FindSortedInsertPoint(struct PopupMenu
*pm
, struct PopupMenu
*fm
);
53 #endif /* PM_FIND_H */