Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / datatypes / obtaindtdrawinfoa.c
blobce6285f672bd5b6a10dd85bcd83c12db334fec89
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #define USE_BOOPSI_STUBS
10 #include "datatypes_intern.h"
11 #include <proto/exec.h>
12 #include <proto/alib.h>
13 #include <utility/tagitem.h>
14 #include <datatypes/datatypesclass.h>
15 #include <intuition/classusr.h>
16 #include <clib/boopsistubs.h>
18 /*****************************************************************************
20 NAME */
22 AROS_LH2(APTR, ObtainDTDrawInfoA,
24 /* SYNOPSIS */
25 AROS_LHA(Object *, o , A0),
26 AROS_LHA(struct TagItem *, attrs, A1),
28 /* LOCATION */
29 struct Library *, DataTypesBase, 20, DataTypes)
31 /* FUNCTION
33 Prepare a data type object for drawing into a RastPort; this function
34 will send the DTM_OBTAINDRAWINFO method the object using an opSet
35 message.
37 INPUTS
39 o -- pointer to the data type object to obtain the drawinfo for;
40 may be NULL in which case nothing is done
41 attrs -- additional attributes
43 RESULT
45 A private handle that must be passed to ReleaseDTDrawInfo when the
46 application is done drawing the object, or NULL if failure.
48 TAGS
50 PDTA_Screen -- for pictureclass objects
51 ADTA_Screen -- for animationclass objects
53 NOTES
55 EXAMPLE
57 BUGS
59 SEE ALSO
61 DrawDTObjectA(), ReleaseDTDrawInfo()
63 INTERNALS
65 HISTORY
67 29.8.99 SDuvan implemented
69 *****************************************************************************/
71 AROS_LIBFUNC_INIT
73 struct opSet ops;
75 if(o == NULL)
76 return NULL;
78 ops.MethodID = DTM_OBTAINDRAWINFO;
79 ops.ops_AttrList = attrs;
80 ops.ops_GInfo = NULL;
82 return (APTR)DoMethodA(o, (Msg)&ops);
84 AROS_LIBFUNC_EXIT
85 } /* ObtainDTDrawInfoA */