2013-01-04 16:01:50 +01:00
|
|
|
#pragma once
|
|
|
|
|
2010-05-21 03:13:36 +02:00
|
|
|
#include <string>
|
2012-10-30 16:59:47 +01:00
|
|
|
#include <vector>
|
2010-05-21 03:13:36 +02:00
|
|
|
|
|
|
|
#include <wx/colour.h>
|
|
|
|
#include <wx/arrstr.h>
|
|
|
|
#include <wx/string.h>
|
|
|
|
|
2012-10-26 16:09:14 +02:00
|
|
|
#include <libaegisub/color.h>
|
2010-05-21 03:13:36 +02:00
|
|
|
|
2012-10-26 16:09:14 +02:00
|
|
|
inline wxColour to_wx(agi::Color color) { return wxColour(color.r, color.g, color.b, 255 - color.a); }
|
|
|
|
inline wxString to_wx(std::string const& str) { return wxString(str.c_str(), wxConvUTF8); }
|
2012-10-30 16:59:47 +01:00
|
|
|
wxArrayString to_wx(std::vector<std::string> const& vec);
|
2012-10-26 16:09:14 +02:00
|
|
|
|
|
|
|
inline agi::Color from_wx(wxColour color) { return agi::Color(color.Red(), color.Green(), color.Blue(), 255 - color.Alpha()); }
|
|
|
|
inline std::string from_wx(wxString const& str) { return std::string(str.utf8_str()); }
|
|
|
|
|
2014-07-05 06:21:35 +02:00
|
|
|
wxArrayString lagi_MRU_wxAS(const char *list);
|