Aegisub/aegisub/src/compat.h

16 lines
429 B
C
Raw Normal View History

#ifndef AGI_PRE
#include <string>
#include <wx/colour.h>
#include <wx/arrstr.h>
#include <wx/string.h>
#endif
#include <libaegisub/colour.h>
#define STD_STR(x) std::string((x).utf8_str())
inline wxColour lagi_wxColour(const agi::Colour &colour) { return wxColour(colour); }
inline wxString lagi_wxString(const std::string &str) { return wxString(str.c_str(), wxConvUTF8); }
wxArrayString lagi_MRU_wxAS(const wxString &list);