New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / asksoftstyle.c
blobd58282688b108955749301dd5e084831257826c3
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function AskSoftStyle()
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME */
12 #include <graphics/rastport.h>
13 #include <proto/graphics.h>
15 AROS_LH1I(ULONG, AskSoftStyle,
17 /* SYNOPSIS */
18 AROS_LHA(struct RastPort *, rp, A1),
20 /* LOCATION */
21 struct GfxBase *, GfxBase, 14, Graphics)
23 /* FUNCTION
25 Query algorithmically generated style attributes. These are the bits
26 valid to set via SetSoftStyle().
28 INPUTS
30 pr -- pointer to rastport
32 RESULT
34 Algorithmically generated style bits (bits not defined are also set).
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 SetSoftStyle(), graphics/text.h
46 INTERNALS
48 HISTORY
50 24.7.98 SDuvan implemented
52 *****************************************************************************/
56 AROS_LIBFUNC_INIT
57 AROS_LIBBASE_EXT_DECL(struct GfxBase *, GfxBase)
59 if(rp->Font == NULL)
60 return 0;
62 return ~rp->Font->tf_Style;
64 AROS_LIBFUNC_EXIT
65 } /* AskSoftStyle */