|
slot 0.0.1
A real time UI render framework
|
#include <XamlHotReload.h>
Public 成员函数 | |
| XamlHotReload (std::filesystem::path fileName) | |
| const std::string & | GetLastError () const |
| const std::filesystem::path & | GetPath () const |
| XamlReloadStatus | Poll (Layout &layout) |
Private 属性 | |
| std::filesystem::path | FileName |
| std::filesystem::file_time_type | LastWriteTime {} |
| std::uintmax_t | LastFileSize = 0 |
| std::string | LastError |
| bool | HasSignature = false |
| bool | InspectionFailed = false |
基于文件签名的 XAML 热重载器。
它只在主线程帧边界检查时间戳和尺寸,不启动后台线程,也不与 Layout/DX12 并发修改所有权。新 XML 会先完整解析,成功后才原子替换 Layout 根节点。
|
explicit |
|
inline |
|
inline |
| XamlReloadStatus XamlHotReload::Poll | ( | Layout & | layout | ) |

|
private |
|
private |
|
private |
|
private |