home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: newobject.c,v 1.6 1997/01/27 00:16:37 ldp Exp $
-
- Desc: Create a new BOOPSI object
- Lang: english
- */
- #define AROS_TAGRETURNTYPE APTR
-
- #include <intuition/classes.h>
- #include <intuition/intuitionbase.h>
- #include "alib_intern.h"
-
- extern struct IntuitionBase * IntuitionBase;
-
- /*****************************************************************************
-
- NAME */
- #include <intuition/classusr.h>
- #include <proto/intuition.h>
-
- APTR NewObject (
-
- /* SYNOPSIS */
- struct IClass * classPtr,
- UBYTE * classID,
- ULONG tag1,
- ... )
-
- /* FUNCTION
- Use this function to create BOOPSI objects (BOOPSI stands for
- "Basic Object Oriented Programming System for Intuition).
-
- You may specify a class either by it's name (if it's a public class)
- or by a pointer to its definition (if it's a private class). If
- classPtr is NULL, classID is used.
-
- INPUTS
- classPtr - Pointer to a private class (or a public class if you
- happen to have a pointer to it)
- classID - Name of a public class
- tagList - Initial attributes. Read the documentation of the class
- carefully to find out which attributes must be specified
- here and which can.
-
- RESULT
- A BOOPSI object which can be manipulated with general functions and
- which must be disposed with DisposeObject() later.
-
- NOTES
- This functions send OM_NEW to the dispatcher of the class.
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- DisposeObject(), SetAttrs(), GetAttr(), MakeClass(),
- "Basic Object-Oriented Programming System for Intuition" and
- "boopsi Class Reference" Dokument.
-
- INTERNALS
-
- HISTORY
- 29-10-95 digulla automatically created from
- intuition_lib.fd and clib/intuition_protos.h
-
- *****************************************************************************/
- {
- AROS_SLOWSTACKTAGS_PRE(tag1)
- retval = NewObjectA (classPtr, classID, AROS_SLOWSTACKTAGS_ARG(tag1));
- AROS_SLOWSTACKTAGS_POST
- } /* NewObject */
-