2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <proto/intuition.h>
9 #include <intuition/intuition.h>
10 #include "datatypes_intern.h" /* Must be after <intuition/intuition.h> */
12 /*****************************************************************************
15 #include <proto/datatypes.h>
17 AROS_LH4(LONG
, AddDTObject
,
20 AROS_LHA(struct Window
*, win
, A0
),
21 AROS_LHA(struct Requester
*, req
, A1
),
22 AROS_LHA(Object
*, obj
, A2
),
23 AROS_LHA(LONG
, pos
, D0
),
26 struct Library
*, DataTypesBase
, 12, DataTypes
)
30 Add an object to the window 'win' or requester 'req' at the position
31 in the gadget list specified by the 'pos' argument.
35 win -- window the object should be added to; may be NULL in which case
37 req -- requester the object should be added to
38 obj -- the object to add; may be NULL in which case nothing is done
39 pos -- the position of the object in the list
44 The position where the object was added (may be different from what
49 The object will receice a GM_LAYOUT message with the gpl_Initial field
50 set to 1 when the object is added.
58 RemoveDTObject(), intuition.library/AddGList()
64 *****************************************************************************/
67 AROS_LIBBASE_EXT_DECL(struct Library
*,DataTypesBase
)
69 if(obj
== NULL
|| win
== NULL
)
72 return AddGList(win
, (struct Gadget
*)obj
, pos
, 1, req
);