home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / intuition / setattrsa.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: setattrsa.c,v 1.4 1997/01/27 00:36:43 ldp Exp $
  4.     $Log: setattrsa.c,v $
  5.     Revision 1.4  1997/01/27 00:36:43  ldp
  6.     Polish
  7.  
  8.     Revision 1.3  1996/12/10 14:00:08  aros
  9.     Moved #include into first column to allow makedepend to see it.
  10.  
  11.     Revision 1.2  1996/10/24 15:51:24  aros
  12.     Use the official AROS macros over the __AROS versions.
  13.  
  14.     Revision 1.1  1996/08/28 17:55:36  digulla
  15.     Proportional gadgets
  16.     BOOPSI
  17.  
  18.  
  19.     Desc:
  20.     Lang: english
  21. */
  22. #include <proto/alib.h>
  23. #include "intuition_intern.h"
  24.  
  25. /*****************************************************************************
  26.  
  27.     NAME */
  28. #include <intuition/classusr.h>
  29. #include <proto/intuition.h>
  30.  
  31.     AROS_LH2(ULONG, SetAttrsA,
  32.  
  33. /*  SYNOPSIS */
  34.     AROS_LHA(APTR            , object, A0),
  35.     AROS_LHA(struct TagItem *, tagList, A1),
  36.  
  37. /*  LOCATION */
  38.     struct IntuitionBase *, IntuitionBase, 108, Intuition)
  39.  
  40. /*  FUNCTION
  41.     Changes several attributes of an object at the same time. How the
  42.     object interprets the new attributes depends on the class.
  43.  
  44.     INPUTS
  45.     object - Change the attributes of this object
  46.     tagList - This is a list of attribute/value-pairs
  47.  
  48.     RESULT
  49.     Depends in the class. For gadgets, this value is non-zero if
  50.     they need redrawing after the values have changed. Other classes
  51.     will define other return values.
  52.  
  53.     NOTES
  54.     This function sends OM_SET to the object.
  55.  
  56.     EXAMPLE
  57.  
  58.     BUGS
  59.  
  60.     SEE ALSO
  61.     NewObject(), DisposeObject(), GetAttr(), MakeClass(),
  62.     "Basic Object-Oriented Programming System for Intuition" and
  63.     "boopsi Class Reference" Dokument.
  64.  
  65.     INTERNALS
  66.  
  67.     HISTORY
  68.     29-10-95    digulla automatically created from
  69.                 intuition_lib.fd and clib/intuition_protos.h
  70.  
  71. *****************************************************************************/
  72. {
  73.     AROS_LIBFUNC_INIT
  74.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  75.     struct opSet ops;
  76.  
  77.     ops.MethodID     = OM_SET;
  78.     ops.ops_AttrList = tagList;
  79.     ops.ops_GInfo    = NULL;
  80.  
  81.     return (DoMethodA (object, (Msg)&ops));
  82.     AROS_LIBFUNC_EXIT
  83. } /* SetAttrsA */
  84.