2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
7 #include <exec/ports.h>
8 #include "gadtools_intern.h"
10 /*********************************************************************
13 #include <exec/types.h>
14 #include <proto/gadtools.h>
15 #include <intuition/intuition.h>
16 #include <utility/tagitem.h>
18 AROS_LH4(LONG
, GT_GetGadgetAttrsA
,
21 AROS_LHA(struct Gadget
*, gad
, A0
),
22 AROS_LHA(struct Window
*, win
, A1
),
23 AROS_LHA(struct Requester
*, req
, A2
),
24 AROS_LHA(struct TagItem
*, taglist
, A3
),
27 struct Library
*, GadToolsBase
, 29, GadTools
)
30 Get a list of attributes from a specific gadget.
33 gad - the gadget from which to get attributes.
34 may be null. if so, this function returns 0.
35 win - the window, in which the gadget is
36 req - the requester, in which the gadget is, or NULL
37 taglist - the list of attributes to get. ti_Tag specifies the attribute
38 and ti_Data is a pointer to an IPTR, where the data is to be
42 The number of attributes, which were filled correctly.
51 GT_SetGadgetAttrsA(), intuition.library/GetAttr()
55 ***************************************************************************/
61 struct TagItem
*mytags
= taglist
;
63 if (gad
== NULL
|| taglist
== NULL
)
66 while ((tag
= NextTagItem(&mytags
)))
67 if (GetAttr(tag
->ti_Tag
, (Object
*)gad
, (IPTR
*)tag
->ti_Data
))
74 } /* GT_GetGadgetAttrsA */