[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'icon' (#aros)

DrawIconStateA

Draw an icon as if it were an image

Declaration

Source position: icon.pas line 237

procedure DrawIconStateA(

  Rp: PRastPort;

  const Icon: PDiskObject;

  const Label_: STRPTR;

  LeftEdge: LongInt;

  TopEdge: LongInt;

  State: ULONG;

  const Tags: PTagItem

);

Arguments

Rp

  

Pointer to the RastPort to draw into; the RastPort clipping rules, font, style, text colours and drawing mode will be used.

Icon

  

Pointer to a struct DiskObject.

Label_

  

Label for the icon, if nil no label is printed

LeftEdge

  

Coordinates at which the icon image should be drawn, including its border; please note that the icon label may extend in whole or in part beyond the leftEdge you have specified.

State

  

Select how and which icon image should be drawn; (IDS_*)

Tags

  

Additional drawing options (ICONDRAWA_*)

Description

This function will draw an icon as if it were an image; if a label is provided, it will be printed below it.

See also

DrawImageState

  

Draw an (extended) Intuition Image with special visual state.

GetIconRectangleA

  

Query the size of the area an icon renders into

IconControlA

  

Set and get icon and icon.library options


Documentation generated on: 2017-01-10