X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ftexfont.h;fp=hacks%2Fglx%2Ftexfont.h;h=a708ae2be6ad344f98faa61cefe2d197258a19d4;hp=13f8cef2759c003306430de5cec6b7248c1457a8;hb=d5186197bc394e10a4402f7f6d23fbb14103bc50;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e diff --git a/hacks/glx/texfont.h b/hacks/glx/texfont.h index 13f8cef2..a708ae2b 100644 --- a/hacks/glx/texfont.h +++ b/hacks/glx/texfont.h @@ -32,6 +32,17 @@ extern int texture_string_width (texture_font_data *, const char *, */ extern void print_texture_string (texture_font_data *, const char *); +/* Draws the string on the window at the given pixel position. + Newlines and tab stops are honored. + Any numbers inside [] will be rendered as a subscript. + Assumes the font has been loaded as with load_texture_font(). + + Position is 0 for center, 1 for top left, 2 for bottom left. + */ +void print_texture_label (Display *, texture_font_data *, + int window_width, int window_height, + int position, const char *string); + /* Releases the texture font. */ extern void free_texture_font (texture_font_data *);