ScreenPainter.drawText

Draws a string in the window with the set font (see setFont to change it).

  1. void drawText(Point upperLeft, char[] text, Point lowerRight, uint alignment)
    struct ScreenPainter
    @scriptable
    void
    drawText
    (,
    in char[] text
    ,,
    uint alignment = 0
    )
  2. void drawText(DrawableFont font, Point upperLeft, char[] text)

Parameters

upperLeft Point

the upper left point of the bounding box of the text

text char[]

the string to draw

lowerRight Point

the lower right point of the bounding box of the text. If 0, 0, there is no lower right bound.

alignment uint

Meta