home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / alib / setattrs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  1.7 KB  |  67 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: setattrs.c,v 1.6 1997/01/27 00:16:38 ldp Exp $
  4.  
  5.     Desc: Change the attributes of a BOOPSI object
  6.     Lang: english
  7. */
  8. #include <intuition/classes.h>
  9. #include <intuition/intuitionbase.h>
  10. #include "alib_intern.h"
  11.  
  12. extern struct IntuitionBase * IntuitionBase;
  13.  
  14. /*****************************************************************************
  15.  
  16.     NAME */
  17. #include <intuition/classusr.h>
  18. #include <proto/intuition.h>
  19.  
  20.     IPTR SetAttrs (
  21.  
  22. /*  SYNOPSIS */
  23.     APTR  object,
  24.     ULONG tag1,
  25.     ...)
  26.  
  27. /*  FUNCTION
  28.     Changes several attributes of an object at the same time. How the
  29.     object interprets the new attributes depends on the class.
  30.  
  31.     INPUTS
  32.     object - Change the attributes of this object
  33.     tag1 - The first of a list of attribute/value-pairs. The last
  34.         attribute in this list must be TAG_END or TAG_DONE.
  35.         The value for this last attribute is not examined (ie.
  36.         you need not specify it).
  37.  
  38.     RESULT
  39.     Depends in the class. For gadgets, this value is non-zero if
  40.     they need redrawing after the values have changed. Other classes
  41.     will define other return values.
  42.  
  43.     NOTES
  44.     This function sends OM_SET to the object.
  45.  
  46.     EXAMPLE
  47.  
  48.     BUGS
  49.  
  50.     SEE ALSO
  51.     NewObject(), DisposeObject(), GetAttr(), MakeClass(),
  52.     "Basic Object-Oriented Programming System for Intuition" and
  53.     "boopsi Class Reference" Dokument.
  54.  
  55.     INTERNALS
  56.  
  57.     HISTORY
  58.     29-10-95    digulla automatically created from
  59.                 intuition_lib.fd and clib/intuition_protos.h
  60.  
  61. *****************************************************************************/
  62. {
  63.     AROS_SLOWSTACKTAGS_PRE(tag1)
  64.     retval = SetAttrsA (object, AROS_SLOWSTACKTAGS_ARG(tag1));
  65.     AROS_SLOWSTACKTAGS_POST
  66. } /* SetAttrs */
  67.