2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
7 #include <proto/intuition.h>
8 #include <proto/muimaster.h>
11 #include "muimaster_intern.h"
13 /* #define MYDEBUG 1 */
16 /*****************************************************************************
19 AROS_LH2(Object
*, MUI_NewObjectA
,
22 AROS_LHA(ClassID
, classid
, A0
),
23 AROS_LHA(struct TagItem
*, tags
, A1
),
26 struct Library
*, MUIMasterBase
, 5, MUIMaster
)
29 Create object from MUI class.
32 classid - case sensitive name/ID string of a MUI class.
33 taglist - attribute/value pairs for the new object.
36 Pointer to object. NULL means failure.
45 MUI_DisposeObject(), intuition.library/SetAttrsA()
46 intuition.library/GetAttr()
50 *****************************************************************************/
56 cl
= MUI_GetClass(classid
);
59 Object
*obj
= NewObjectA(cl
, NULL
, tags
);
63 bug("*** Could not create object of %s\n", classid
);
67 bug("*** Couldn't find %s\n", classid
);
72 } /* MUIA_NewObjectA */