Mercurial > dwindows
comparison dw.hpp @ 2938:1184f58135ba
C++: Eliminate remnants of C code I missed while porting to C++.
Only exception is the Android specific dw_file_open() call... it is a
replacement for a C API and a macro on most platforms... Plus I really don't
like that call, but Android required it... so leaving it as is for now.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 31 Dec 2022 21:42:12 +0000 |
parents | cacb6610abfc |
children | ebbc5b16899e |
comparison
equal
deleted
inserted
replaced
2937:cacb6610abfc | 2938:1184f58135ba |
---|---|
2127 HICN LoadIcon(const char *filename) { return dw_icon_load_from_file(filename); } | 2127 HICN LoadIcon(const char *filename) { return dw_icon_load_from_file(filename); } |
2128 HICN LoadIcon(const char *data, int len) { return dw_icon_load_from_data(data, len); } | 2128 HICN LoadIcon(const char *data, int len) { return dw_icon_load_from_data(data, len); } |
2129 void FreeIcon(HICN icon) { dw_icon_free(icon); } | 2129 void FreeIcon(HICN icon) { dw_icon_free(icon); } |
2130 void TaskBarInsert(Widget *handle, HICN icon, const char *bubbletext) { dw_taskbar_insert(handle ? handle->GetHWND() : DW_NOHWND, icon, bubbletext); } | 2130 void TaskBarInsert(Widget *handle, HICN icon, const char *bubbletext) { dw_taskbar_insert(handle ? handle->GetHWND() : DW_NOHWND, icon, bubbletext); } |
2131 void TaskBarDelete(Widget *handle, HICN icon) { dw_taskbar_delete(handle ? handle->GetHWND() : DW_NOHWND, icon); } | 2131 void TaskBarDelete(Widget *handle, HICN icon) { dw_taskbar_delete(handle ? handle->GetHWND() : DW_NOHWND, icon); } |
2132 char * WideToUTF8(const wchar_t * wstring) { return dw_wchar_to_utf8(wstring); } | |
2133 wchar_t *UTF8ToWide(const char * utf8string) { return dw_utf8_to_wchar(utf8string); } | |
2132 }; | 2134 }; |
2133 | 2135 |
2134 // Static singleton reference declared outside of the class | 2136 // Static singleton reference declared outside of the class |
2135 App* App::_app = DW_NULL; | 2137 App* App::_app = DW_NULL; |
2136 | 2138 |