home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / intuition / disposeobject.c < prev    next >
C/C++ Source or Header  |  1997-01-27  |  2KB  |  84 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: disposeobject.c,v 1.4 1997/01/27 00:36:37 ldp Exp $
  4.     $Log: disposeobject.c,v $
  5.     Revision 1.4  1997/01/27 00:36:37  ldp
  6.     Polish
  7.  
  8.     Revision 1.3  1996/12/10 14:00:01  aros
  9.     Moved #include into first column to allow makedepend to see it.
  10.  
  11.     Revision 1.2  1996/10/24 15:51:18  aros
  12.     Use the official AROS macros over the __AROS versions.
  13.  
  14.     Revision 1.1  1996/08/28 17:55:34  digulla
  15.     Proportional gadgets
  16.     BOOPSI
  17.  
  18.  
  19.     Desc:
  20.     Lang: english
  21. */
  22. #include <intuition/classes.h>
  23. #include <proto/alib.h>
  24. #include "intuition_intern.h"
  25.  
  26. /*****************************************************************************
  27.  
  28.     NAME */
  29. #include <intuition/classusr.h>
  30. #include <proto/intuition.h>
  31.  
  32.     AROS_LH1(void, DisposeObject,
  33.  
  34. /*  SYNOPSIS */
  35.     AROS_LHA(APTR, object, A0),
  36.  
  37. /*  LOCATION */
  38.     struct IntuitionBase *, IntuitionBase, 107, Intuition)
  39.  
  40. /*  FUNCTION
  41.     Deletes a BOOPSI object. All memory associated with the object
  42.     is freed. The object must have been created with NewObject().
  43.     Some object contain other object which might be freed as well
  44.     when this function is used on the "parent" while others might
  45.     also contain children but won't free them. Read the documentation
  46.     of the class carefully to find out how it behaves.
  47.  
  48.     INPUTS
  49.     object - The result of a call to NewObject() or a similar function.
  50.  
  51.     RESULT
  52.     None.
  53.  
  54.     NOTES
  55.     This functions sends OM_DISPOSE to the oejct.
  56.  
  57.     EXAMPLE
  58.  
  59.     BUGS
  60.  
  61.     SEE ALSO
  62.     NewObject(), SetAttrs((), GetAttr(), MakeClass()
  63.     "Basic Object-Oriented Programming System for Intuition" and
  64.     "boopsi Class Reference" Dokument.
  65.  
  66.     INTERNALS
  67.  
  68.     HISTORY
  69.     29-10-95    digulla automatically created from
  70.                 intuition_lib.fd and clib/intuition_protos.h
  71.  
  72. *****************************************************************************/
  73. {
  74.     AROS_LIBFUNC_INIT
  75.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  76.     ULONG MethodID = OM_DISPOSE;
  77.  
  78.     OCLASS (object)->cl_ObjectCount --;
  79.  
  80.     DoMethodA (object, (Msg)&MethodID);
  81.  
  82.     AROS_LIBFUNC_EXIT
  83. } /* DisposeObject */
  84.