graphics.library: In INVERSVID mode, don't clobber the GC's pens
[AROS.git] / compiler / alib / setsuperattrs.c
blob744442fe6e504879c87c4d9beced3100034f3b41
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Set attributes in a specific class
6 */
8 #define ALIB_NO_INLINE_STDARG
10 #define AROS_TAGRETURNTYPE IPTR
12 #include <intuition/classes.h>
13 #include <intuition/intuitionbase.h>
15 #include "alib_intern.h"
17 /*****************************************************************************
19 NAME */
20 #include <intuition/classusr.h>
21 #include <proto/alib.h>
23 IPTR SetSuperAttrs (
25 /* SYNOPSIS */
26 Class * class,
27 Object * object,
28 Tag tag1,
29 ...)
31 /* FUNCTION
32 Changes several attributes of an object at the same time. How the
33 object interprets the new attributes depends on the class.
35 INPUTS
36 class - Assume that the object is of this class.
37 object - Change the attributes of this object
38 tag1 - The first of a list of attribute/value-pairs. The last
39 attribute in this list must be TAG_END or TAG_DONE.
40 The value for this last attribute is not examined (ie.
41 you need not specify it).
43 RESULT
44 Depends in the class. For gadgets, this value is non-zero if
45 they need redrawing after the values have changed. Other classes
46 will define other return values.
48 NOTES
49 This function sends OM_SET to the object.
51 EXAMPLE
53 BUGS
55 SEE ALSO
56 boopsi.library/NewObjectA(), boopsi.library/DisposeObject(),
57 boopsi.library/GetAttr(), boopsi.library/MakeClass(),
58 "Basic Object-Oriented Programming System for Intuition" and
59 "boopsi Class Reference" Dokument.
61 INTERNALS
63 HISTORY
64 29-10-95 digulla automatically created from
65 intuition_lib.fd and clib/intuition_protos.h
67 *****************************************************************************/
69 struct opSet ops, *msg = &ops;
70 AROS_SLOWSTACKTAGS_PRE(tag1)
72 ops.MethodID = OM_SET;
73 ops.ops_AttrList = AROS_SLOWSTACKTAGS_ARG(tag1);
74 ops.ops_GInfo = NULL;
76 retval = DoSuperMethodA(class, object, (Msg)msg);
77 AROS_SLOWSTACKTAGS_POST
78 } /* SetSuperAttrs */