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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: setsuperattrs.c,v 1.2 1997/01/27 00:16:39 ldp Exp $
  4.  
  5.     Desc: Set attributes in a specific class
  6.     Lang: english
  7. */
  8. #include <intuition/classes.h>
  9. #include <intuition/intuitionbase.h>
  10. #include "alib_intern.h"
  11.  
  12. /*****************************************************************************
  13.  
  14.     NAME */
  15. #include <intuition/classusr.h>
  16. #include <proto/alib.h>
  17.  
  18.     ULONG SetSuperAttrs (
  19.  
  20. /*  SYNOPSIS */
  21.     Class *  class,
  22.     Object * object,
  23.     ULONG     tag1,
  24.     ...)
  25.  
  26. /*  FUNCTION
  27.     Changes several attributes of an object at the same time. How the
  28.     object interprets the new attributes depends on the class.
  29.  
  30.     INPUTS
  31.     class - Assume that the object is of this class.
  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.     struct opSet ops;
  64.  
  65.     AROS_SLOWSTACKTAGS_PRE(tag1)
  66.  
  67.     ops.MethodID     = OM_SET;
  68.     ops.ops_AttrList = AROS_SLOWSTACKTAGS_ARG(tag1);
  69.     ops.ops_GInfo    = NULL;
  70.  
  71.     retval = DoSuperMethodA (class
  72.     , object
  73.     , (Msg)&ops
  74.     );
  75.  
  76.     AROS_SLOWSTACKTAGS_POST
  77. } /* SetSuperAttrs */
  78.