Fixed compiler warnings.
[AROS.git] / compiler / alib / setgadgetattrs.c
blob99d50630451ff19c440240c73bf4c21643171ac3
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Change the attributes of a BOOPSI gadget
6 Lang: english
7 */
9 #define AROS_TAGRETURNTYPE IPTR
11 #include <intuition/classes.h>
12 #include <intuition/intuitionbase.h>
13 #include "alib_intern.h"
15 extern struct IntuitionBase * IntuitionBase;
17 /*****************************************************************************
19 NAME */
20 #include <intuition/classusr.h>
21 #include <intuition/intuition.h>
22 #define NO_INLINE_STDARG /* turn off inline def */
23 #include <proto/intuition.h>
25 IPTR SetGadgetAttrs (
27 /* SYNOPSIS */
28 struct Gadget * Gadget,
29 struct Window * Window,
30 struct Requester * Requester,
31 Tag tag1,
32 ...)
34 /* FUNCTION
35 Changes several attributes of a gadget at the same time. How the
36 gadget interprets the new attributes depends on the class.
38 INPUTS
39 Gadget - Change the attributes of this object
40 Window - The window the gadget is in
41 Requester - The Requester the gadget is in, may be NULL
42 tag1 - The first of a list of attribute/value-pairs. The last
43 attribute in this list must be TAG_END or TAG_DONE.
44 The value for this last attribute is not examined (ie.
45 you need not specify it).
47 RESULT
48 This value is non-zero if the gadget needs redrawing after the
49 values have changed.
51 NOTES
52 This function sends OM_SET to the object.
54 EXAMPLE
56 BUGS
58 SEE ALSO
59 NewObject(), SetAttrs(),
60 "Basic Object-Oriented Programming System for Intuition" and
61 "boopsi Class Reference" documentation.
63 INTERNALS
65 HISTORY
67 *****************************************************************************/
69 AROS_SLOWSTACKTAGS_PRE(tag1)
70 retval = SetGadgetAttrsA (Gadget, Window, Requester, AROS_SLOWSTACKTAGS_ARG(tag1));
71 AROS_SLOWSTACKTAGS_POST
72 } /* SetGadgetAttrs */