|
YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
类 | |
| class | Painter |
| 带样式的绘制处理函数。 更多... | |
| class | Palette |
| 默认调色板。 更多... | |
| class | StyleMap |
| 样式映射。 更多... | |
枚举 | |
| enum | Area { Null = 0, Desktop = 1, Window = 2, Panel = 3, Track = 4, Workspace = 5, Shadow = 6, DockShadow = 7, Light = 8, Frame = 9, Highlight = 10, BorderFill = 11, ActiveBorder = 12, InactiveBorder = 13, ActiveTitle = 14, InactiveTitle = 15, HighlightText = 16, WindowText = 17, PanelText = 18, GrayText = 19, TitleText = 20, InactiveTitleText = 21, HotTracking = 22, EndArea = 24 } |
| 样式区域类型。 更多... | |
函数 | |
| YF_API void | InitExStyles () |
| 初始化扩展样式。 更多... | |
| YF_API HandlerTable & | FetchDefault () |
| 取默认样式处理器表。 更多... | |
| using | StyleItem = size_t |
| 标识样式渲染项的类型。 更多... | |
| using | Key = pair< std::type_index, StyleItem > |
| 标识查找样式的键。 更多... | |
| using | Handler = std::function< void(PaintEventArgs &&)> |
| 样式处理器。 更多... | |
| using | HandlerTable = unordered_map< Key, Handler, ystdex::combined_hash< Key >> |
| 样式处理器表。 更多... | |
| using | VisualStyle = pair< string, HandlerTable > |
| 视觉样式。 更多... | |
| template<typename _tIn > | |
| void | AddHandlers (HandlerTable &table, std::type_index idx, _tIn first, _tIn last) |
| 向样式处理器表添加指定类型的处理器。 更多... | |
| template<typename _type , typename _tIn > | |
| void | AddHandlers (HandlerTable &table, _tIn first, _tIn last) |
| PDefH (void, AddHandlers, HandlerTable &table, std::type_index idx, std::initializer_list< pair< StyleItem, Handler >> il) ImplExpr(Styles | |
| template<typename _tRange > | |
| void | AddHandlers (HandlerTable &table, std::type_index idx, _tRange &&c) |
| template<typename _type , typename _tRange > | |
| void | AddHandlers (HandlerTable &table, _tRange &&c) |
| using YSLib::UI::Styles::Handler = typedef std::function<void(PaintEventArgs&&)> |
| using YSLib::UI::Styles::HandlerTable = typedef unordered_map<Key, Handler, ystdex::combined_hash<Key>> |
| using YSLib::UI::Styles::Key = typedef pair<std::type_index, StyleItem> |
| using YSLib::UI::Styles::StyleItem = typedef size_t |
| using YSLib::UI::Styles::VisualStyle = typedef pair<string, HandlerTable> |
样式区域类型。
|
inline |
|
inline |
|
inline |
| HandlerTable & YSLib::UI::Styles::FetchDefault | ( | ) |
取默认样式处理器表。
在文件 ystyle.cpp 第 346 行定义.
参考 YSLib::UI::FetchGUIState() , 以及 YSLib::UI::GUIState::Styles.
参考自 YSLib::UI::CheckBox::CheckBox() , 以及 YSLib::UI::RadioBox::RadioBox().


| void YSLib::UI::Styles::InitExStyles | ( | ) |
初始化扩展样式。
在文件 ExStyle.cpp 第 232 行定义.
参考 YSLib::UI::CheckBox::CheckBoxBackground, YSLib::UI::FetchGUIState(), YSLib::UI::GetSizeOf, YSLib::UI::IsEnabled(), YSLib::UI::IsFocused(), YSLib::UI::GUIState::Styles , 以及 YSLib::UI::Thumb::ThumbBackground.

|
inline |