(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/graphics.h>

void GetRPAttrsA (rp , tags)

LOCATION
In GfxBase at offset 174

SYNOPSIS
struct RastPort * rp
struct TagItem * tags

FUNCTION
Read the current settings of a RastPort into variables. The ti_Tag field specifies the attribute to read and the ti_Data field points to an address where to store the result. All results are stored as LONGs (32 bits)!

Available tags:

RPTAG_Font Font for Text() RPTAG_APen Primary rendering pen RPTAG_BPen Secondary rendering pen RPTAG_DrMd Drawing mode (graphics/rastport.h) RPTAG_OutlinePen Area Outline pen RPTAG_WriteMask Bit Mask for writing RPTAG_MaxPen Maximum oen to render (see SetMaxPen()) RPTAG_DrawBounds Determine the area that will be redered into by rendering commands. Can be used to optimize window refresh. Pass a pointer to a rectangle in the ti_Data field. On return the rectangle's MinX will be greater than its MaxX if there are no active cliprects.

INPUTS
rp = pointer to a RastPort structure tags = pointer to a taglist specifying the attributes to read and the addresses to store the results

RESULT

EXAMPLE

SEE ALSO
SetRPAttrsA() GetAPen() GetBPen() GetOutLinePen() GetWriteMask() graphics/rpattr.h

NOTES

BUGS
RPTAG_SoftStyle not supported, yet.

INTERNALS

HISTORY