comparison mac/dw.m @ 1147:091ed7c20b3f

Implemented dw_pixmap_set_font() on Windows. Added to export files on Windows and OS/2. Added the function to the template and fixed the comments on several platforms.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 11 Sep 2011 21:56:55 +0000
parents 9d97610b2140
children 58b5374355ab
comparison
equal deleted inserted replaced
1146:9d97610b2140 1147:091ed7c20b3f
6292 pixmap->image = image; 6292 pixmap->image = image;
6293 pixmap->handle = handle; 6293 pixmap->handle = handle;
6294 return pixmap; 6294 return pixmap;
6295 } 6295 }
6296 6296
6297
6298 /* 6297 /*
6299 * Sets the font used by a specified pixmap. 6298 * Sets the font used by a specified pixmap.
6300 * Normally the pixmap font is obtained from the associated window handle. 6299 * Normally the pixmap font is obtained from the associated window handle.
6301 * However this can be used to override that, or for pixmaps with no window. 6300 * However this can be used to override that, or for pixmaps with no window.
6302 * Parameters: 6301 * Parameters:
6303 * pixmap: Handle to a pixmap returned by dw_pixmap_new() or 6302 * pixmap: Handle to a pixmap returned by dw_pixmap_new() or
6304 * passed to the application via a callback. 6303 * passed to the application via a callback.
6305 * fontname: Name and size of the font in the form "size.fontname" 6304 * fontname: Name and size of the font in the form "size.fontname"
6305 * Returns:
6306 * DW_ERROR_NONE on success and DW_ERROR_GENERAL on failure.
6306 */ 6307 */
6307 int API dw_pixmap_set_font(HPIXMAP pixmap, char *fontname) 6308 int API dw_pixmap_set_font(HPIXMAP pixmap, char *fontname)
6308 { 6309 {
6309 if(pixmap) 6310 if(pixmap)
6310 { 6311 {