Mercurial > dwindows
diff dw.h @ 49:bf42d08d72d7
Added font text extent querying code, and made it so winmain.c can be used
without Dynamic Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 09 Nov 2001 13:49:44 +0000 |
parents | 88c9c7410c22 |
children | 0804483f6320 |
line wrap: on
line diff
--- a/dw.h Mon Nov 05 10:56:39 2001 +0000 +++ b/dw.h Fri Nov 09 13:49:44 2001 +0000 @@ -727,6 +727,7 @@ void dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2); void dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height); void dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text); +void dw_font_text_extents(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height); void dw_flush(void); void dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc); HPIXMAP dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth);