Project

General

Profile

Drawtext » History » Version 5

Per Amundsen, 09/19/2020 11:12 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 5 Per Amundsen
*/drawtext -hnrpbocv <@window> <color> [color] [fontname fontsize] <x y [w h]> <text|&binvar>*
4 1 Per Amundsen
5
Draws text at the specified co-ordinates.
6
7
*Switches*
8
9
-p - Processes and interprets control codes in the text.
10
-b - Indicates that you have specified the second color parameter as the background color for the text.
11
-o - Indicates specified font should be in bold.
12
-c - Indicates that you have specified the [w h] values as the rectangle in which text should be printed. Text will be clipped if it extends beyond this rectangle.
13
-h - Highlights the windows icon if it is minimized.
14
-n - Prevents the display from being updated immediately.
15
-r - Indicates that the colors are in [[$rgb]] format.
16 5 Per Amundsen
-v - Indicates &binvar is specified.
17 2 Per Amundsen
18
*Parameters*
19
20
<@window> - Name of the window to draw.
21
<color> - The textcolor.
22
[color] - The background color, if -b has been specified.
23 1 Per Amundsen
[fontname fontsize] - The name of the font and the size of the font.
24
<x y [w h]> - The coordinate of the text.
25 5 Per Amundsen
<text|&binvar> - The text or text from a &binvar to draw.
26
27
*Example*
28
29
<pre>
30
alias testdrawtext {
31
  window -p @win
32
  drawtext @win 4 Verdana 11 0 0 Hello World
33
}
34
</pre>