slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 所有成员列表
z8::ui::XamlHotReload类 参考final

#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 根节点。

构造及析构函数说明

◆ XamlHotReload()

XamlHotReload::XamlHotReload ( std::filesystem::path fileName)
explicit

成员函数说明

◆ GetLastError()

const std::string & z8::ui::XamlHotReload::GetLastError ( ) const
inline

◆ GetPath()

const std::filesystem::path & z8::ui::XamlHotReload::GetPath ( ) const
inline

◆ Poll()

XamlReloadStatus XamlHotReload::Poll ( Layout & layout)
函数调用图:

类成员变量说明

◆ FileName

std::filesystem::path z8::ui::XamlHotReload::FileName
private

◆ HasSignature

bool z8::ui::XamlHotReload::HasSignature = false
private

◆ InspectionFailed

bool z8::ui::XamlHotReload::InspectionFailed = false
private

◆ LastError

std::string z8::ui::XamlHotReload::LastError
private

◆ LastFileSize

std::uintmax_t z8::ui::XamlHotReload::LastFileSize = 0
private

◆ LastWriteTime

std::filesystem::file_time_type z8::ui::XamlHotReload::LastWriteTime {}
private

该类的文档由以下文件生成: