Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
2851:fdd21139c07f | 2852:5018df4f952e |
---|---|
2860 * (pass 0 if you use the filename param) | 2860 * (pass 0 if you use the filename param) |
2861 * data: memory buffer containing image (Bitmap on OS/2 or | 2861 * data: memory buffer containing image (Bitmap on OS/2 or |
2862 * Windows and a pixmap on Unix, pass | 2862 * Windows and a pixmap on Unix, pass |
2863 * NULL if you use the id param) | 2863 * NULL if you use the id param) |
2864 * len: Length of data passed | 2864 * len: Length of data passed |
2865 */ | 2865 * Returns: |
2866 void API dw_window_set_bitmap_from_data(HWND handle, unsigned long cid, const char *data, int len) | 2866 * DW_ERROR_NONE on success. |
2867 { | 2867 * DW_ERROR_UNKNOWN if the parameters were invalid. |
2868 * DW_ERROR_GENERAL if the bitmap was unable to be loaded. | |
2869 */ | |
2870 int API dw_window_set_bitmap_from_data(HWND handle, unsigned long cid, const char *data, int len) | |
2871 { | |
2872 return DW_ERROR_UNKNOWN; | |
2868 } | 2873 } |
2869 | 2874 |
2870 /* | 2875 /* |
2871 * Sets the bitmap used for a given static window. | 2876 * Sets the bitmap used for a given static window. |
2872 * Parameters: | 2877 * Parameters: |
2874 * id: An ID to be used to specify the icon, | 2879 * id: An ID to be used to specify the icon, |
2875 * (pass 0 if you use the filename param) | 2880 * (pass 0 if you use the filename param) |
2876 * filename: a path to a file (Bitmap on OS/2 or | 2881 * filename: a path to a file (Bitmap on OS/2 or |
2877 * Windows and a pixmap on Unix, pass | 2882 * Windows and a pixmap on Unix, pass |
2878 * NULL if you use the id param) | 2883 * NULL if you use the id param) |
2879 */ | 2884 * Returns: |
2880 void API dw_window_set_bitmap(HWND handle, unsigned long resid, const char *filename) | 2885 * DW_ERROR_NONE on success. |
2881 { | 2886 * DW_ERROR_UNKNOWN if the parameters were invalid. |
2887 * DW_ERROR_GENERAL if the bitmap was unable to be loaded. | |
2888 */ | |
2889 int API dw_window_set_bitmap(HWND handle, unsigned long resid, const char *filename) | |
2890 { | |
2891 return DW_ERROR_UNKNOWN; | |
2882 } | 2892 } |
2883 | 2893 |
2884 /* | 2894 /* |
2885 * Sets the icon used for a given window. | 2895 * Sets the icon used for a given window. |
2886 * Parameters: | 2896 * Parameters: |