YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
动态 GUI 加载。 更多...
#include "YModules.h"
#include <YSLib/UI/yuicont.h>
#include <YSLib/Core/ValueNode.h>
#include <ystdex/cast.hpp>
类 | |
class | YSLib::UI::WidgetNotFound |
找不到部件。 更多... | |
class | YSLib::UI::GWidgetRegister< _tParams > |
加载器注册接口:加载一个或多个键和类初始化例程。 更多... | |
class | YSLib::UI::GWidgetInserterRegister< _tParams > |
加载器注册接口:加载一个或多个键和添加部件引用例程。 更多... | |
class | YSLib::UI::WidgetLoader |
部件加载器。 更多... | |
class | YSLib::UI::DynamicWidget |
动态部件。 更多... | |
命名空间 | |
YSLib | |
YSLib::UI | |
宏定义 | |
#define | DeclDynWidget(_t, _n,...) auto& _n(YSLib::UI::AccessWidget<_t>(__VA_ARGS__)); |
声明动态部件。 更多... | |
#define | DeclDynWidgetN(_t, _n,...) DeclDynWidget(_t, _n, __VA_ARGS__, #_n) |
声明指定节点下的按相同名称访问的动态部件。 更多... | |
#define | DeclDynWidgetNode(_t, _n) DeclDynWidgetN(_t, _n, node) |
声明名称为 node 的节点下的按相同名称访问的动态部件。 更多... | |
类型定义 | |
template<typename... _tParams> | |
using | YSLib::UI::GWidgetCreator = unique_ptr< IWidget >(*)(_tParams...) |
template<typename... _tParams> | |
using | YSLib::UI::GWidgetInserter = void(*)(IWidget &, _tParams...) |
函数 | |
YF_API Rect | YSLib::UI::ParseRect (const string &) |
template<typename _tWidget , typename... _tParams> | |
static unique_ptr< IWidget > | YSLib::UI::CreateUniqueWidget (_tParams &&...args) |
注册部件加载器:创建部件。 更多... | |
template<typename _tWidget , typename... _tParams> | |
static void | YSLib::UI::InsertWidget (IWidget &wgt, _tParams &&...args) |
注册部件加载器:添加部件引用。 更多... | |
bool | YSLib::UI::CheckChildName (const string &str) |
template<typename... _tParams> | |
IWidget & | YSLib::UI::AccessWidget (const ValueNode &node, const string &name, _tParams &&...args) |
template<class _tWidget , typename... _tParams> | |
_tWidget & | YSLib::UI::AccessWidget (const ValueNode &node, _tParams &&...args) |
变量 | |
yconstfn const string _tParams && | YSLib::UI::args |
yconstfn const string & | YSLib::UI::name |
yconstfn | YSLib::UI::PDefH (const ValueNode &, AccessWidgetNode, const ValueNode &nd) ImplRet(nd) template< typename..._tParams > const ValueNode &AccessWidgetNode(const ValueNode &node |
按指定名称访问子部件节点。 更多... | |
动态 GUI 加载。
在文件 Loader.h 中定义.
#define DeclDynWidget | ( | _t, | |
_n, | |||
... | |||
) | auto& _n(YSLib::UI::AccessWidget<_t>(__VA_ARGS__)); |
#define DeclDynWidgetN | ( | _t, | |
_n, | |||
... | |||
) | DeclDynWidget(_t, _n, __VA_ARGS__, #_n) |
声明指定节点下的按相同名称访问的动态部件。
#define DeclDynWidgetNode | ( | _t, | |
_n | |||
) | DeclDynWidgetN(_t, _n, node) |
声明名称为 node 的节点下的按相同名称访问的动态部件。