comparison win/dw.c @ 2950:0577a97fe36d

Added dw_pixmap_get_width() and dw_pixmap_get_height() by request for language bindings. These APIs function identical to the already existing DW_PIXMAP_HEIGHT/WIDTH() macros. The macros will exist at least until the end of the 3.x series, at which point they may be retired.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 03 Jan 2023 22:23:08 +0000
parents edb4307ac7ce
children 33e77761703f
comparison
equal deleted inserted replaced
2949:a1d0522d7edf 2950:0577a97fe36d
11994 DeleteObject(pixmap->hbm); 11994 DeleteObject(pixmap->hbm);
11995 if(pixmap->font) 11995 if(pixmap->font)
11996 DeleteObject(pixmap->font); 11996 DeleteObject(pixmap->font);
11997 free(pixmap); 11997 free(pixmap);
11998 } 11998 }
11999 }
12000
12001 /*
12002 * Returns the width of the pixmap, same as the DW_PIXMAP_WIDTH() macro,
12003 * but exported as an API, for non-C language bindings.
12004 */
12005 unsigned long API dw_pixmap_get_width(HPIXMAP pixmap)
12006 {
12007 return pixmap ? pixmap->width : 0;
12008 }
12009
12010 /*
12011 * Returns the height of the pixmap, same as the DW_PIXMAP_HEIGHT() macro,
12012 * but exported as an API, for non-C language bindings.
12013 */
12014 unsigned long API dw_pixmap_get_height(HPIXMAP pixmap)
12015 {
12016 return pixmap ? pixmap->height : 0;
11999 } 12017 }
12000 12018
12001 /* 12019 /*
12002 * Copies from one item to another. 12020 * Copies from one item to another.
12003 * Parameters: 12021 * Parameters: