New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / libs / datatypes / releasedtdrawinfo.c
blobd81b720861e0f438bf351f750f0ea18764985f27
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/alib.h>
12 #include <datatypes/datatypesclass.h>
13 #include <clib/boopsistubs.h>
16 /*****************************************************************************
18 NAME */
20 AROS_LH2(VOID, ReleaseDTDrawInfo,
22 /* SYNOPSIS */
23 AROS_LHA(Object *, o , A0),
24 AROS_LHA(APTR , handle, A1),
26 /* LOCATION */
27 struct Library *, DataTypesBase, 22, DataTypes)
29 /* FUNCTION
31 Release the handle obtained from ObtainDTDrawInfoA(); invokes the object's
32 DTM_RELEASEDRAWINFO method sending the dtReleaseDrawInfo message.
34 INPUTS
36 o -- pointer to the data type object the drawinfo of which to
37 release; may be NULL
38 handle -- handle got from ObtainDTDrawInfoA()
40 RESULT
42 A private handle that must be passed to ReleaseDTDrawInfo when the
43 application is done drawing the object, or NULL if failure.
45 TAGS
47 PDTA_Screen -- for pictureclass objects
48 ADTA_Screen -- for animationclass objects
50 NOTES
52 EXAMPLE
54 BUGS
56 SEE ALSO
58 DrawDTObjectA(), ObtainDTDrawInfo()
60 INTERNALS
62 HISTORY
64 29.8.99 SDuvan implemented
66 *****************************************************************************/
68 AROS_LIBFUNC_INIT
70 struct dtReleaseDrawInfo rdi;
72 if(o == NULL)
73 return;
75 rdi.MethodID = DTM_RELEASEDRAWINFO;
76 rdi.dtr_Handle = handle;
78 DoMethodA(o, (Msg)&rdi);
80 AROS_LIBFUNC_EXIT
81 } /* ReleaseDTDrawInfoA */