Mercurial > dwindows
comparison dw.h @ 2114:251d050d306b
Change dw_notification_new() to take an image path instead of an in-memory HPIXMAP.
After examining all the platforms, several require the image to be on disk.
It is easier to specify the path and load it on platforms requiring it in memory
than to save it to disk on platforms that require it on disk. Currently it does
not automatically pick an extension like some other functions, may need to add
that feature here too soon. Only tested on Windows in this commit.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 23 Jun 2020 07:48:29 +0000 |
parents | 10c22853b479 |
children | 663467f6eee4 |
comparison
equal
deleted
inserted
replaced
2113:aaea278c2356 | 2114:251d050d306b |
---|---|
1855 void API dw_calendar_set_date(HWND window, unsigned int year, unsigned int month, unsigned int day); | 1855 void API dw_calendar_set_date(HWND window, unsigned int year, unsigned int month, unsigned int day); |
1856 void API dw_calendar_get_date(HWND window, unsigned int *year, unsigned int *month, unsigned int *day); | 1856 void API dw_calendar_get_date(HWND window, unsigned int *year, unsigned int *month, unsigned int *day); |
1857 HPRINT API dw_print_new(const char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata); | 1857 HPRINT API dw_print_new(const char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata); |
1858 int API dw_print_run(HPRINT print, unsigned long flags); | 1858 int API dw_print_run(HPRINT print, unsigned long flags); |
1859 void API dw_print_cancel(HPRINT print); | 1859 void API dw_print_cancel(HPRINT print); |
1860 HWND API dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...); | 1860 HWND API dw_notification_new(const char *title, const char *imagepath, const char *description, ...); |
1861 int API dw_notification_send(HWND notification); | 1861 int API dw_notification_send(HWND notification); |
1862 wchar_t * API dw_utf8_to_wchar(const char *utf8string); | 1862 wchar_t * API dw_utf8_to_wchar(const char *utf8string); |
1863 char * API dw_wchar_to_utf8(const wchar_t *wstring); | 1863 char * API dw_wchar_to_utf8(const wchar_t *wstring); |
1864 int API dw_feature_get(DWFEATURE feature); | 1864 int API dw_feature_get(DWFEATURE feature); |
1865 int API dw_feature_set(DWFEATURE feature, int state); | 1865 int API dw_feature_set(DWFEATURE feature, int state); |