|
slot 0.0.1
A real time UI render framework
|
#include <ControlFactory.h>
Public 类型 | |
| using | Creator = std::function<std::unique_ptr<BaseNode>()> |
Public 成员函数 | |
| ControlFactory () | |
| void | Register (const std::string &type, Creator creator) |
| std::unique_ptr< BaseNode > | Create (const std::string &type) const |
静态 Public 成员函数 | |
| static ControlFactory & | Instance () |
Private 属性 | |
| std::unordered_map< std::string, Creator > | Creators |
XAML 与即时声明共享的控件工厂。 显式注册代替在解析器中硬编码分支,后续新增控件无需修改 XML 语法层。
| using z8::ui::ControlFactory::Creator = std::function<std::unique_ptr<BaseNode>()> |
| ControlFactory::ControlFactory | ( | ) |

|
static |

|
private |