14#ifndef DL_DISABLE_RENDER
39 using Func = void (*)(void);
48 void Start(std::string_view json_window,
49 std::string_view json_path =
"");
136 _vecDropFile.clear();
156 _vecDropFile.push_back(std::string{ str });
173 bool _bCursorModeChange;
177 std::vector<std::string> _vecDropFile;
void SetFuncInit(Func func)
设置 初始化函数
const std::vector< std::string > & GetDropFile()
返回拖入文件列表
void Start(const ParamWindow ¶m={})
创建窗口 并进入 游戏循环
void SetWindowTitle(std::string_view str)
设置窗口标题
void SetFuncRun(Func func)
设置 帧函数
void ScreenShot(std::string_view path_name)
截屏
std::string GetClipboardString()
返回剪贴板
Size GetWindowSize()
返回窗口大小
void SetWindowPoint(const Point &xy)
设置窗口位置
void _add_drop_file(std::string_view str)
内部调用
bool IsWindowExist()
窗口是否存在
const RenderInfo2D & GetRenderInfo2D()
返回上一帧绘图信息
void SetWindowCenter()
设置窗口居中(以工作区大小)
void ClearDropFile()
清空拖入文件列表
void SetClipboardString(std::string_view str)
设置剪贴板
void SetCursorMode(CursorMode mode)
设置光标模式
void SetCursorPosition(Point xy)
设置鼠标位置,不用此来实现摄像机
const RenderInfo3D & GetRenderInfo3D()
void Start(std::string_view json_window, std::string_view json_path="")
进入 游戏循环
void ShowMessageBox(std::string_view title, std::string_view text)
系统框提示
void lua_SetFuncUpdate(std::string_view str)
Size GetWorkArea()
获取桌面大小,不包含任务栏