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

GfxText

Write text characters (no formatting).

Declaration

Source position: agraphics.pas line 2398

function GfxText(

  rp: pRastPort;

  const string_: pCHAR;

  count: LongWord

):LongInt;

Arguments

rp

  

A pointer to the RastPort which describes where the text is to be output

string_

  

The address of string to output

count

  

The number of characters in the string. If 0, there are no characters to be output.

Description

This graphics function writes printable text characters to the specified RastPort at the current position. No control meaning is applied to any of the characters, thus only text on the current line is output.

The current position in the RastPort is updated to the next character position. If the characters displayed run past the RastPort boundary, the current position is truncated to the boundary, and thus does not equal the old position plus the text length.

See also

GfxMove

  

Move graphics pen position.

TextLength

  

Determine raster length of text data.

TextExtent

  

Determine raster extent of text data.

TextFit

  

Count characters that will fit in a given extent


Documentation generated on: 2021-07-30