New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / intuition / autorequest.c
blobf0d697194819d2b596bc47da2dc2801c594964d8
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <intuition/intuition.h>
13 #include <proto/intuition.h>
15 AROS_LH8(BOOL, AutoRequest,
17 /* SYNOPSIS */
18 AROS_LHA(struct Window *, window, A0),
19 AROS_LHA(struct IntuiText *, body, A1),
20 AROS_LHA(struct IntuiText *, posText, A2),
21 AROS_LHA(struct IntuiText *, negText, A3),
22 AROS_LHA(ULONG , pFlag, D0),
23 AROS_LHA(ULONG , nFlag, D1),
24 AROS_LHA(ULONG , width, D2),
25 AROS_LHA(ULONG , height, D3),
27 /* LOCATION */
28 struct IntuitionBase *, IntuitionBase, 58, Intuition)
30 /* FUNCTION
32 INPUTS
34 RESULT
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 HISTORY
47 29-10-95 digulla automatically created from
48 intuition_lib.fd and clib/intuition_protos.h
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
53 AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
55 struct Window *req;
56 ULONG idcmp;
57 LONG result;
59 EXTENDWORD(width);EXTENDWORD(height);
61 req = BuildSysRequest(window,
62 body,
63 posText,
64 negText,
65 pFlag | nFlag,
66 width,
67 height);
69 /* req = 0/1 is handled by SysReqHandler */
70 while ((result = SysReqHandler(req, &idcmp, TRUE)) == -2)
75 if (result == -1)
77 result = (idcmp & pFlag) ? 1 : 0;
80 FreeSysRequest(req);
82 return result;
84 AROS_LIBFUNC_EXIT
85 } /* AutoRequest */