MiniEngine/MiniEngine.h

52 lines
1.2 KiB
C
Raw Normal View History

#pragma once
#include <string>
#include <memory>
#include <functional>
2017-06-18 20:37:45 +08:00
#include "SDLWrapper/IncludeAll.h"
2017-06-01 22:50:17 +08:00
namespace MiniEngine
{
2017-03-09 18:52:57 +08:00
class StringEngine
{
public:
StringEngine(std::string StringFile,std::string LanguageTag);
StringEngine(StringEngine& )=delete;
StringEngine& operator = (StringEngine& )=delete;
int useLanaguage(std::string LanguageTag);
bool ready();
std::string getString(std::string Tag);
~StringEngine();
private:
struct impl;
impl* pimpl;
};
2017-05-22 18:27:56 +08:00
int SetClipboardText(const std::string& str);
std::string GetClipboardText();
bool HasClipboardText();
/// Experimental - For Experts: Use SDL ScanCode
bool GetScanKeyState(SDL_Scancode);
}/// End of namespace MiniEngine
2017-02-25 22:40:48 +08:00
std::string UTF8ToGBK(std::string UTF8String);
std::string GBKToUTF8(std::string GBKString);
2017-03-09 18:52:57 +08:00
bool canread(std::string Path);
bool canwrite(std::string Path);
bool isexist(std::string Path);
bool canexecute(std::string Path);
/// Your Program Should Start Here
int AppMain();
2017-02-25 22:40:48 +08:00
/// MiniEngine Provides main
int main(int argc,char* argv[]);
2017-03-30 11:16:57 +08:00
/// MiniEngine Provided API: Get Start Parameters
int GetArgc();
char** GetArgv();