1 #ifndef WX_DEFINITIONS_GROUP
2 #define WX_DEFINITIONS_GROUP
4 /*****************************************************************************\
6 * Name : definitions for wx *
7 * Author : Chris Koeritz *
11 * Some macros that support the use of WX widgets. *
13 *******************************************************************************
14 * Copyright (c) 2006-$now By Author. This program is free software; you can *
15 * redistribute it and/or modify it under the terms of the GNU General Public *
16 * License as published by the Free Software Foundation; either version 2 of *
17 * the License or (at your option) any later version. This is online at: *
18 * http://www.fsf.org/copyleft/gpl.html *
19 * Please send any updates to: fred@gruntose.com *
20 \*****************************************************************************/
22 #include <basis/utf_conversion.h>
29 //! converts to wx's UTF-16 string format.
30 #define to_unicode_wx(s) ((const wxChar *)(const flexichar *)transcode_to_utf16(s))
31 //! converts a wx UTF-16 string to UTF-8.
32 #define from_unicode_wx(s) ((const char *)(const UTF8 *)transcode_to_utf8(s))
34 // turn off the unicode macro to ensure nothing gets confused.
36 // placeholder macros try not to do much.
37 #define to_unicode_wx(s) ((const wxChar *)null_transcoder(s, false))
38 #define from_unicode_wx(s) ((const char *)null_transcoder((const wxChar *)s, false))