Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

GetRPAttrsA

Examine rastport settings via a tag list

Declaration

Source position: agraphics.pas line 2207

procedure GetRPAttrsA(

  Rp: PRastPort;

  Tags: PTagItem

);

Arguments

Rp

  

A pointer to a RastPort structure

Tags

  

A pointer to a taglist specifying the attributes to read and the addresses to store the results (RPTAG_*)

Description

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 LonInts (32 bits).

currently available tags are:

RPTAG_Font
(Byte) Font for GfxText()
RPTAG_APen
(Byte) Primary rendering pen
RPTAG_BPen
(Byte) Secondary rendering pen
RPTAG_DrMd
(Byte) Drawing mode
RPTAG_OutLinePen
(Byte) Area Outline pen
RPTAG_WriteMask
(LongWord) Bit Mask for writing.
RPTAG_MaxPen
(LongWord) Maximum pen to render (see SetMaxPen())
RPTAG_FgColor
(LongWord) Primary rendering color in A8R8G8B8 format. Only working on hicolor/truecolor bitmaps/screens.
RPTAG_BgColor
(LongWord) Secondary rendering color in A8R8G8B8 format. Only working on hicolor/truecolor bitmaps/screens.
RPTAG_RemapColorFonts
(LongBool) Automatically remap colorfonts to their color on hicolor/truecolor screens.
RPTAG_ClipRectangle
(PRectangle) Rectangle to clip rendering to. Rectangle will be cloned.
RPTAG_ClipRectangleFlags
(LongInt) RPCRF_RELRIGHT or RPCRF_RELBOTTOM

RPTAG_ClipRectangle and RPTAG_ClipRectangleFlags must not be used on manually inited or cloned rastports. Instead the rastport must have been created with CreateRastPort() or CloneRastPort().

Errors

RPTAG_SoftStyle and RPTAG_DrawBounds are not supported yet.

See also

GetRPAttrs

  

VarArgs Version for GetRPAttrsA()

SetRPAttrsA

  

Modify rastport settings via a tag list

GetAPen

  

Get the A Pen value for a RastPort

GetBPen

  

Get the B Pen value for a RastPort

GetOutLinePen

  

Get the O Pen value for a RastPort


Documentation generated on: 2021-07-30