2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Get an Attribute from a BOOPSI Class.
8 #include <proto/alib.h>
10 #include <clib/intuition_protos.h>
12 /*****************************************************************************
15 #include <intuition/classusr.h>
16 #include <proto/boopsi.h>
18 AROS_LH3(ULONG
, GetAttr
,
21 AROS_LHA(ULONG
, attrID
, D0
),
22 AROS_LHA(Object
*, object
, A0
),
23 AROS_LHA(IPTR
* , storagePtr
, A1
),
26 struct Library
*, BOOPSIBase
, 9, BOOPSI
)
29 Asks the specified object for the value of an attribute. This is not
30 possible for all attributes of an object. Read the documentation for
31 the class to find out which can be read and which can't.
34 attrID - ID of the attribute you want
35 object - Ask the attribute from this object
36 storagePtr - This is a pointer to memory which is large enough
37 to hold a copy of the attribute. Most classes will simply
38 put a copy of the value stored in the object here but this
39 behaviour is class specific. Therefore read the instructions
40 in the class description carefully.
43 Mostly TRUE if the method is supported for the specified attribute
44 and FALSE if it isn't or the attribute can't be read at this time.
45 See the classes documentation for details.
48 This function sends OM_GET to the object.
55 NewObject(), DisposeObject(), SetAttr(), MakeClass(),
56 "Basic Object-Oriented Programming System for Intuition" and
57 "boopsi Class Reference" Dokument.
63 29-10-95 digulla automatically created from
64 intuition_lib.fd and clib/intuition_protos.h
66 *****************************************************************************/
69 AROS_LIBBASE_EXT_DECL(struct Library
*,BOOPSIBase
)
72 get
.MethodID
= OM_GET
;
73 get
.opg_AttrID
= attrID
;
74 get
.opg_Storage
= storagePtr
;
76 return (DoMethodA (object
, (Msg
)&get
));