2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
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 /*****************************************************************************
22 AROS_LH2(APTR
, ObtainDTDrawInfoA
,
25 AROS_LHA(Object
*, o
, A0
),
26 AROS_LHA(struct TagItem
*, attrs
, A1
),
29 struct Library
*, DataTypesBase
, 20, DataTypes
)
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
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
45 A private handle that must be passed to ReleaseDTDrawInfo when the
46 application is done drawing the object, or NULL if failure.
60 DrawDTObjectA(), ReleaseDTDrawInfo()
66 29.8.99 SDuvan implemented
68 *****************************************************************************/
77 ops
.MethodID
= DTM_OBTAINDRAWINFO
;
78 ops
.ops_AttrList
= attrs
;
81 return (APTR
)DoMethodA(o
, (Msg
)&ops
);
84 } /* ObtainDTDrawInfoA */