YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::UI::Styles::StyleMap类 参考

样式映射。 更多...

#include <ystyle.h>

类 YSLib::UI::Styles::StyleMap 继承关系图:
YSLib::UI::Styles::StyleMap 的协作图:

Public 类型

using MapType = map< string, HandlerTable >
 

Public 成员函数

 StyleMap ()
 
template<typename... _tParams>
 StyleMap (_tParams &&...args)
 
 DefGetter (const ynothrow, const_iterator, Current, current) template< typename..._tParams > void Add(_tParams &&...args)
 
void Remove (const string &)
 
 PDefH (void, Paint, const Styles::Painter &painter, PaintEventArgs &&e) ImplExpr(PaintAsStyle(painter.GetKey()
 
 std::move (e))) void PaintAsStyle(const Key &
 
PaintEventArgs &&void Switch (const string &)
 

Private 属性

const_iterator current
 

额外继承的成员函数

- Private 成员函数 继承自 ystdex::noncopyable
 noncopyable (const noncopyable &)=delete
 禁止复制构造。 更多...
 
noncopyableoperator= (const noncopyable &)=delete
 禁止赋值复制。 更多...
 
 noncopyable ()=default
 protected 构造:默认实现。 更多...
 
 ~noncopyable ()=default
 protected 析构:默认实现。 更多...
 

详细描述

样式映射。

警告
非虚析构。

在文件 ystyle.h355 行定义.

成员类型定义说明

在文件 ystyle.h358 行定义.

构造及析构函数说明

YSLib::UI::Styles::StyleMap::StyleMap ( )
inline

在文件 ystyle.h366 行定义.

template<typename... _tParams>
YSLib::UI::Styles::StyleMap::StyleMap ( _tParams &&...  args)
inline

在文件 ystyle.h370 行定义.

参考 YSLib::UI::args , 以及 yforward.

成员函数说明

YSLib::UI::Styles::StyleMap::DefGetter ( const ynothrow  ,
const_iterator  ,
Current  ,
current   
)
inline
自从
build 469

在文件 ystyle.h375 行定义.

参考 yforward.

YSLib::UI::Styles::StyleMap::PDefH ( void  ,
Paint  ,
const Styles::Painter painter,
PaintEventArgs &&  e 
)
void YSLib::UI::Styles::StyleMap::Remove ( const string name)
注解
若移除作为默认名称的空串则被忽略。

在文件 ystyle.cpp326 行定义.

参考 current.

YSLib::UI::Styles::StyleMap::std::move ( ) const
void YSLib::UI::Styles::StyleMap::Switch ( const string name)

在文件 ystyle.cpp337 行定义.

参考 current.

类成员变量说明

const_iterator YSLib::UI::Styles::StyleMap::current
private

在文件 ystyle.h363 行定义.

参考自 Remove() , 以及 Switch().


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