void bx_draw_text ( bx_window  win,
int  x,
int  y,
char  text[] 
)

The "poor man" solution to draw a text on the canvas of a window. Draws a text with the default font of X11. The font and its size cannot be changed, however the text is drawn with the pen color.

Parameters:
win the window owning the targeted canvas.
x,y the location of the anchor of the text on the canvas.
text the string to be drawn
Returns:
nothing.
Remarks:
  • the anchor is located at the left side of the first character, at the level of its baseline.


Generated on Fri Oct 10 00:01:00 2008 for bx-lib : the Basic X11 Library tuned for C beginners by  doxygen 1.5.6