home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: getattr.c,v 1.5 1997/01/27 00:36:38 ldp Exp $
- $Log: getattr.c,v $
- Revision 1.5 1997/01/27 00:36:38 ldp
- Polish
-
- Revision 1.4 1996/12/10 14:00:03 aros
- Moved #include into first column to allow makedepend to see it.
-
- Revision 1.3 1996/11/08 11:28:02 aros
- All OS function use now Amiga types
-
- Moved intuition-driver protos to intuition_intern.h
-
- Revision 1.2 1996/10/24 15:51:19 aros
- Use the official AROS macros over the __AROS versions.
-
- Revision 1.1 1996/08/28 17:55:34 digulla
- Proportional gadgets
- BOOPSI
-
-
- Desc:
- Lang: english
- */
- #include <proto/alib.h>
- #include "intuition_intern.h"
-
- /*****************************************************************************
-
- NAME */
- #include <intuition/classusr.h>
- #include <proto/intuition.h>
-
- AROS_LH3(ULONG, GetAttr,
-
- /* SYNOPSIS */
- AROS_LHA(ULONG , attrID, D0),
- AROS_LHA(Object *, object, A0),
- AROS_LHA(IPTR * , storagePtr, A1),
-
- /* LOCATION */
- struct IntuitionBase *, IntuitionBase, 109, Intuition)
-
- /* FUNCTION
- Asks the specified object for the value of an attribute. This is not
- possible for all attributes of an object. Read the documentation for
- the class to find out which can be read and which can't.
-
- INPUTS
- attrID - ID of the attribute you want
- object - Ask the attribute from this object
- storagePtr - This is a pointer to memory which is large enough
- to hold a copy of the attribute. Most classes will simply
- put a copy of the value stored in the object here but this
- behaviour is class specific. Therefore read the instructions
- in the class description carefully.
-
- RESULT
- Mostly TRUE if the method is supported for the specified attribute
- and FALSE if it isn't or the attribute can't be read at this time.
- See the classes documentation for details.
-
- NOTES
- This function sends OM_GET to the object.
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- NewObject(), DisposeObject(), SetAttr(), MakeClass(),
- "Basic Object-Oriented Programming System for Intuition" and
- "boopsi Class Reference" Dokument.
-
-
- INTERNALS
-
- HISTORY
- 29-10-95 digulla automatically created from
- intuition_lib.fd and clib/intuition_protos.h
-
- *****************************************************************************/
- {
- AROS_LIBFUNC_INIT
- AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
- struct opGet get;
-
- get.MethodID = OM_GET;
- get.opg_AttrID = attrID;
- get.opg_Storage = storagePtr;
-
- return (DoMethodA (object, (Msg)&get));
- AROS_LIBFUNC_EXIT
- } /* GetAttr */
-