Documentation from drawprintf.h |
Introduction | [top] |
ROV - Easy applications from C
Copyright - © Jason Tribbeck / 7th ARM 1994-2001
Contributing authors - Jason Tribbeck
File - drawprintf.h
Type - helper
Description
The drawprintf helper is designed to allow printf-style printing to a canvas using the WIMP font. Internally it uses Wimp_PlotIcon to display the text on the screen, allowing for bounding boxes to be taken into consideration.
draw_printf | [top] |
Displays text.
Parameters:
- int lx - left hand (canvas) x coordinate.
- int by - bottom (canvas) y coordinate.
- int fcol - foreground (WIMP) colour.
- int bcol - background (WIMP) colour.
- char *pf_str - printf-style string.
- ... - optional parameters.Note - The size of the buffer is limited to 512 bytes.
Note - The background is not filled in, and the background colour parameter is only used to determine the anti-aliasing colours.
void draw_printf(int lx, int by, int fcol, int bcol, char *pf_str, ...);See also: draw_printfb(), draw_printff()
draw_printff | [top] |
Displays text in a fixed width format.
Parameters:
- int lx - left hand (canvas) x coordinate.
- int rx - right hand (canvas) x coordinate.
- int by - bottom (canvas) y coordinate.
- int fcol - foreground (WIMP) colour.
- int bcol - background (WIMP) colour.
- char *pf_str - printf-style string.
- ... - optional parameters.Note - The size of the buffer is limited to 512 bytes.
Note - The background is not filled in, and the background colour parameter is only used to determine the anti-aliasing colours.
void draw_printff(int lx, int rx, int by, int fcol, int bcol, char *pf_str, ...);See also: draw_printf(), draw_printffb()
draw_printfb | [top] |
Displays text with a filled background.
Parameters:
- int lx - left hand (canvas) x coordinate.
- int by - bottom (canvas) y coordinate.
- int fcol - foreground (WIMP) colour.
- int bcol - background (WIMP) colour.
- char *pf_str - printf-style string.
- ... - optional parameters.Note - The size of the buffer is limited to 512 bytes.
void draw_printfb(int lx, int by, int fcol, int bcol, char *pf_str, ...);See also: draw_printf(), draw_printffb()
draw_printffb | [top] |
Displays text in a fixed width format and filled background.
Parameters:
- int lx - left hand (canvas) x coordinate.
- int rx - right hand (canvas) x coordinate.
- int by - bottom (canvas) y coordinate.
- int fcol - foreground (WIMP) colour.
- int bcol - background (WIMP) colour.
- char *pf_str - printf-style string.
- ... - optional parameters.Note - The size of the buffer is limited to 512 bytes.
void draw_printffb(int lx, int rx, int by, int fcol, int bcol, char *pf_str, ...);See also: draw_printfb(), draw_printff()
Generated Thu Feb 7 23:22:51 2002