comparison template/dw.c @ 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 e24e5a13ff2c
children 58b5374355ab
comparison
equal deleted inserted replaced
1146:9d97610b2140 1147:091ed7c20b3f
2184 { 2184 {
2185 return 0; 2185 return 0;
2186 } 2186 }
2187 2187
2188 /* 2188 /*
2189 * Sets the font used by a specified pixmap.
2190 * Normally the pixmap font is obtained from the associated window handle.
2191 * However this can be used to override that, or for pixmaps with no window.
2192 * Parameters:
2193 * pixmap: Handle to a pixmap returned by dw_pixmap_new() or
2194 * passed to the application via a callback.
2195 * fontname: Name and size of the font in the form "size.fontname"
2196 * Returns:
2197 * DW_ERROR_NONE on success and DW_ERROR_GENERAL on failure.
2198 */
2199 int API dw_pixmap_set_font(HPIXMAP pixmap, char *fontname)
2200 {
2201 return DW_ERROR_GENERAL;
2202 }
2203
2204 /*
2189 * Destroys an allocated pixmap. 2205 * Destroys an allocated pixmap.
2190 * Parameters: 2206 * Parameters:
2191 * pixmap: Handle to a pixmap returned by 2207 * pixmap: Handle to a pixmap returned by
2192 * dw_pixmap_new.. 2208 * dw_pixmap_new..
2193 */ 2209 */