2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #define USE_BOOPSI_STUBS
10 #include "datatypes_intern.h"
11 #include <proto/alib.h>
12 #include <datatypes/datatypesclass.h>
13 #include <clib/boopsistubs.h>
16 /*****************************************************************************
20 AROS_LH2(VOID
, ReleaseDTDrawInfo
,
23 AROS_LHA(Object
*, o
, A0
),
24 AROS_LHA(APTR
, handle
, A1
),
27 struct Library
*, DataTypesBase
, 22, DataTypes
)
31 Release the handle obtained from ObtainDTDrawInfoA(); invokes the object's
32 DTM_RELEASEDRAWINFO method sending the dtReleaseDrawInfo message.
36 o -- pointer to the data type object the drawinfo of which to
38 handle -- handle got from ObtainDTDrawInfoA()
42 A private handle that must be passed to ReleaseDTDrawInfo when the
43 application is done drawing the object, or NULL if failure.
47 PDTA_Screen -- for pictureclass objects
48 ADTA_Screen -- for animationclass objects
58 DrawDTObjectA(), ObtainDTDrawInfo()
64 29.8.99 SDuvan implemented
66 *****************************************************************************/
70 struct dtReleaseDrawInfo rdi
;
75 rdi
.MethodID
= DTM_RELEASEDRAWINFO
;
76 rdi
.dtr_Handle
= handle
;
78 DoMethodA(o
, (Msg
)&rdi
);
81 } /* ReleaseDTDrawInfoA */