diff 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
line wrap: on
line diff
--- a/dw.hpp	Sat Dec 31 04:29:47 2022 +0000
+++ b/dw.hpp	Sat Dec 31 21:42:12 2022 +0000
@@ -2129,6 +2129,8 @@
     void FreeIcon(HICN icon) { dw_icon_free(icon); }
     void TaskBarInsert(Widget *handle, HICN icon,  const char *bubbletext) { dw_taskbar_insert(handle ? handle->GetHWND() : DW_NOHWND, icon, bubbletext); }
     void TaskBarDelete(Widget *handle, HICN icon) { dw_taskbar_delete(handle ? handle->GetHWND() : DW_NOHWND, icon); }
+    char * WideToUTF8(const wchar_t * wstring) { return dw_wchar_to_utf8(wstring); }
+    wchar_t *UTF8ToWide(const char * utf8string) { return dw_utf8_to_wchar(utf8string); }
 };
 
 // Static singleton reference declared outside of the class