bx-lib : the Basic X11 Library tuned for C beginners
1.0
|
Functions | |
void | bx_draw_text (bx_window win, int x, int y, char text[]) |
void | bx_draw_text_f (bx_window win, int x, int y, char format[],...) |
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.
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 |
void bx_draw_text_f | ( | bx_window | win, |
int | x, | ||
int | y, | ||
char | format[], | ||
... | |||
) |
A frontend of bx_draw_text() allowing the same format specifiers ("%d", "%s", "%f", ...) as the printf() functions family.
win | the window owning the targeted canvas. |
x,y | the location of the anchor of the text on the canvas. |
format | a format string in the printf() style |
... | all extra arguments needed to match the \ %-specifiers of the format |