1 #pragma once 2 3 #include <string> 4 #include <vector> 5 6 #include <wx/colour.h> 7 #include <wx/arrstr.h> 8 #include <wx/string.h> 9 10 #include <libaegisub/color.h> 11 to_wx(agi::Color color)12inline wxColour to_wx(agi::Color color) { return wxColour(color.r, color.g, color.b, 255 - color.a); } to_wx(std::string const & str)13inline wxString to_wx(std::string const& str) { return wxString(str.c_str(), wxConvUTF8); } 14 wxArrayString to_wx(std::vector<std::string> const& vec); 15 from_wx(wxColour color)16inline agi::Color from_wx(wxColour color) { return agi::Color(color.Red(), color.Green(), color.Blue(), 255 - color.Alpha()); } from_wx(wxString const & str)17inline std::string from_wx(wxString const& str) { return std::string(str.utf8_str()); } 18 19 wxArrayString lagi_MRU_wxAS(const char *list); 20