GetRPAttrA(rp,tags)
void GetRPAttrA(
struct RastPort *,
struct TagItem *);
GetRPAttrs(rp,attr1,&result1,...);
Read the settings of a rastport into variables. The ti_Tag field of the TagItem specifies which attribute should be read, and the ti_Data field points at the location where the result hsould be stored. All current tags store the return data as LONGs (32 bits).
Currently available tags are:
- RPTAG_Font
-
Font for Text()
- RPTAG_SoftStyle
-
style for text (see graphics/text.h)
- RPTAG_APen
-
Primary rendering pen
- RPTAG_BPen
-
Secondary rendering pen
- RPTAG_DrMd
-
Drawing mode (see graphics/rastport.h)
- RPTAG_OutLinePen
-
Area Outline pen
- RPTAG_WriteMask
-
Bit Mask for writing.
- RPTAG_MaxPen
-
Maximum pen to render (see SetMaxPen())
- RPTAG_DrawBounds
-
Determine the area that will be rendered into by rendering commands. Can be used to optimize window refresh. Pass a pointer to a rectangle in the tag data. On return, the rectangle's MinX will be greater than its MaxX if there are no active cliprects.
GetAPen() GetBPen() GetDrMd() GetOutLinePen() GetWriteMask()
SetRPAttrA() graphics/rpattr.h