blob: 07d78020d7cd8cdb9b4bec5e67f6e15bc8418234 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _LIBHX_WXHELPER_HPP
#define _LIBHX_WXHELPER_HPP 1
/* Convert from UTF-8 to wxString; only valid within the scope of the result */
#define wxfu8(s) wxString((s), wxConvUTF8)
/* Convert from UTF-8 to wxString for varargs/wxPrintf */
#define wxfv8(s) (wxfu8(s).c_str())
/* Convert from wxString to UTF-8; limited validity */
#define wxtu8(s) static_cast<const char *>((s).ToUTF8())
/* Common dialog flags */
#define wxCDF (wxDEFAULT_FRAME_STYLE | wxFRAME_NO_TASKBAR)
#define wxACV wxALIGN_CENTER_VERTICAL
#define wxDPOS wxDefaultPosition
#define wxDSIZE wxDefaultSize
#define wxDSPAN wxDefaultSpan
#endif /* _LIBHX_WXHELPER_HPP */
|