forgotten commit. disabled until egl is adapted.
[AROS-Contrib.git] / scalos / libraries / popupmenu / pmfind.h
blob0ed3ed8dde59b6856cddaf296e51e1ed967d5d5a
1 //
2 // pmfind.h
3 //
4 // PopupMenu Library - Menu item searching
5 //
6 // Copyright (C)2000 Henrik Isaksson <henrik@boing.nu>
7 // All Rights Reserved.
8 //
10 #ifndef PM_FIND_H
11 #define PM_FIND_H
13 struct PM_Window;
15 #ifndef LIBRARIES_POPUPMENU_H
16 struct PopupMenu;
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,
42 D1, ULONG, ID,
43 A6, struct PopupMenuBase *, l);
45 // Exported PM_FindID
46 LIBFUNC_P3_PROTO(struct PopupMenu *, LIBPM_FindItem,
47 A1, struct PopupMenu *, menu,
48 D1, ULONG, ID,
49 A6, struct PopupMenuBase *, l);
51 struct PopupMenu *PM_FindSortedInsertPoint(struct PopupMenu *pm, struct PopupMenu *fm);
53 #endif /* PM_FIND_H */