#define _WX_PRIVATE_H_
#include "wx/defs.h"
-#include "X11/Xlib.h"
+#include <X11/Xlib.h>
+#include <Xm/Xm.h>
#include "wx/evtloop.h"
class WXDLLIMPEXP_FWD_CORE wxFont;
// ----------------------------------------------------------------------------
wxString wxXmStringToString( const XmString& xmString );
-XmString wxStringToXmString( const wxString& string );
XmString wxStringToXmString( const char* string );
+inline XmString wxStringToXmString( const wxCharBuffer& string )
+ { return wxStringToXmString(string.data()); }
+inline XmString wxStringToXmString( const wxString& string )
+ { return wxStringToXmString((const char*)string.mb_str()); }
// XmString made easy to use in wxWidgets (and has an added benefit of
// cleaning up automatically)
Init(str);
}
+ wxXmString(const wchar_t* str)
+ {
+ Init(wxConvLibc.cWC2MB(str));
+ }
+
wxXmString(const wxString& str)
{
Init(str.mb_str());