2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "gadtools_intern.h"
10 /*********************************************************************
13 #include <exec/types.h>
14 #include <proto/gadtools.h>
15 #include <intuition/intuition.h>
17 AROS_LH3(BOOL
, LayoutMenuItemsA
,
20 AROS_LHA(struct MenuItem
*, menuitem
, A0
),
21 AROS_LHA(APTR
, vi
, A1
),
22 AROS_LHA(struct TagItem
*, tagList
, A2
),
25 struct Library
*, GadToolsBase
, 10, GadTools
)
30 menuitem - Menu item to be layouted.
31 vi - Visual info to layout the menu item for.
32 tagList - Additional tags.
35 FALSE, if an error occured.
44 LayoutMenusA(), GetVisualInfoA()
50 ***************************************************************************/
54 struct VisualInfo
*vinfo
= (struct VisualInfo
*)vi
;
55 struct MenuItem
*item
= menuitem
;
57 /* First layout subitems */
61 if (NULL
!= item
->SubItem
)
63 if (FALSE
== layoutsubitems(item
,
69 item
= item
->NextItem
;
73 ** Process all menu items and subitems
75 if (FALSE
== layoutmenuitems(menuitem
,
86 } /* LayoutMenuItemsA */