Syntax
void GWriteAt( int top, int left, const char *text, int color, int size, int width );
Arguments
top, left give the top left corner of the text in pixels, vertical coordinate first.
text is the NUL-terminated UTF-8 text. Drawing stops at the first line end. NULL is treated as empty text.
color is the RGB color returned by GMakeColor().
size is the height of the letters in pixels; 0 uses the height of a cell of the window.
width is the width of each letter in pixels; 0 uses half of the height.
Return value
No return value.
Description
Draws the text with the font of the window, within the current clip and between GDispBegin() and GDispEnd() like the other G functions. Unlike xBase, the column does not come first and the width of the text is not returned.
Example
#include "xdev-wtui.h"
int main( void )
{
int white = GMakeColor( 255, 255, 255 );
GWriteAt( 20, 20, "Default size", white, 0, 0 );
GWriteAt( 50, 20, "Size 36", white, 36, 0 );
Inkey( 0, NIL );
return 0;
}