Mercurial > dwindows
diff template/dw.c @ 2852:5018df4f952e
Win/Android/Template: Add return values to dw_window_set_bitmap(_from_data).
Also update the readme regarding this change.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 15 Nov 2022 00:34:20 +0000 |
parents | ee1cfa7d645e |
children | 761b7a12b079 |
line wrap: on
line diff
--- a/template/dw.c Mon Nov 14 22:00:47 2022 +0000 +++ b/template/dw.c Tue Nov 15 00:34:20 2022 +0000 @@ -2862,9 +2862,14 @@ * Windows and a pixmap on Unix, pass * NULL if you use the id param) * len: Length of data passed - */ -void API dw_window_set_bitmap_from_data(HWND handle, unsigned long cid, const char *data, int len) -{ + * Returns: + * DW_ERROR_NONE on success. + * DW_ERROR_UNKNOWN if the parameters were invalid. + * DW_ERROR_GENERAL if the bitmap was unable to be loaded. + */ +int API dw_window_set_bitmap_from_data(HWND handle, unsigned long cid, const char *data, int len) +{ + return DW_ERROR_UNKNOWN; } /* @@ -2876,9 +2881,14 @@ * filename: a path to a file (Bitmap on OS/2 or * Windows and a pixmap on Unix, pass * NULL if you use the id param) - */ -void API dw_window_set_bitmap(HWND handle, unsigned long resid, const char *filename) -{ + * Returns: + * DW_ERROR_NONE on success. + * DW_ERROR_UNKNOWN if the parameters were invalid. + * DW_ERROR_GENERAL if the bitmap was unable to be loaded. + */ +int API dw_window_set_bitmap(HWND handle, unsigned long resid, const char *filename) +{ + return DW_ERROR_UNKNOWN; } /*