Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

DrawIconStateA

Draw an icon as if it were an image

Declaration

Source position: icon.pas line 367

procedure DrawIconStateA(

  rp: pRastPort;

  const icon: pDiskObject;

  const label_: pCHAR;

  leftOffset: LongInt;

  topOffset: LongInt;

  state: LongWord;

  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

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: 2021-07-30