YSTest: YStyle.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

YStyle.h
浏览该文件的文档.
1 /*
2 © 2010-2015 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef YSL_INC_UI_ystyle_h_
29 #define YSL_INC_UI_ystyle_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_UI_YComponent
33 #include YFM_YSLib_Service_YDraw
34 #include <ystdex/rational.hpp>
35 #include <typeindex>
36 #include <ystdex/hash.hpp> // for ystdex::combined_hash;
37
38 namespace YSLib
39 {
40
41 namespace Drawing
42 {
43
45
46
52 YF_API void
53 DrawRectRoundCorner(const PaintContext& pc, const Size& s, Color);
54
55
62 YF_API void
63 RectDrawArrow(const PaintContext&, SDst, Rotation = RDeg0,
64 Color = ColorSpace::Black);
65
75 YF_API void
76 RectDrawArrowOutline(const PaintContext&, SDst, Rotation = RDeg0,
77 Color = ColorSpace::Black);
78
83 YF_API void
84 RectDrawCornerArrow(const PaintContext&, SDst, Rotation = RDeg0,
85 Color = ColorSpace::Black);
86
91 YF_API void
92 RectDrawCornerArrowOutline(const PaintContext&, SDst, Rotation = RDeg0,
93 Color = ColorSpace::Black);
94
102 YF_API void
103 DrawArrow(const Graphics&, const Rect&, const Rect&, SDst = 4, Rotation = RDeg0,
104 Color = ColorSpace::Black, bool = {});
105
113 YF_API void
114 DrawCornerArrow(const Graphics&, const Rect&, const Point&, SDst = 4,
115 Rotation = RDeg0, Color = ColorSpace::Black, bool = {});
117
124 YF_API void
125 DrawCross(const Graphics&, const Rect&, const Rect&, Color);
126
127 /*
128 \brief 在指定图形接口上下文中使用指定颜色描画对勾（“√”）。
129 \note 第二个参数指定边界；绘制的图形顶点为第三个参数指定的矩形的顶点或边的中点。
130 \note 若指定的矩形不满足长和宽都大于 8 则忽略。
131 \since build 480
132 */
134 YF_API void
136 DrawTick(const Graphics&, const Rect&, const Rect&, Color, Color);
138 inline PDefH(void, DrawTick, const Graphics& g, const Rect& bounds,
139 const Rect& r, Color c)
140 ImplExpr(DrawTick(g, bounds, r, c, c))
142
143
144
145 //平台无关色彩系统类型和转换。
146
147
149 yconstfn PDefH(Color, MakeGray, MonoType g)
151 ImplRet(Color(g, g, g))
152
154 yconstfn PDefH(Color, MakeGrayOrColor, Color c, MonoType g, bool colored)
155 ImplRet(colored ? c : Color(g, g, g))
157
158
164 using Hue = ystdex::fixed_point<std::uint16_t, 9>;
165
166
176 class YF_API HS : private pair<Hue, float>
177 {
178 public:
179 HS(Hue h = 0, float s = 0) ynothrow
180 : pair(h, s)
181 {}
183 HS(float h, float s = 0) ynothrow
184 : HS(Hue(h), s)
185 {}
186
187 DefGetter(const ynothrow, Hue, H, first)
188 DefGetter(const ynothrow, float, S, second)
189
190 DefGetter(ynothrow, Hue&, HRef, first)
191 DefGetter(ynothrow, float&, SRef, second)
192
193 /*
194 \brief 色调偏移。
195 \pre 断言：输入值在范围内。
196 */
197 void
198 Roll(Hue) ynothrow;
199 };
200
201
203 class YF_API HSL : private HS
204 {
205 private:
210 float lightness;
211
212 public:
213 HSL(Hue h = 0, float s = 0, float l = 0) ynothrow
214 : HS{h, s}, lightness(l)
215 {}
217 HSL(float h, float s = 0, float l = 0) ynothrow
218 : HS{h, s}, lightness(l)
219 {}
221 HSL(Color) ynothrow;
222 DefDeCopyCtor(HSL)
223
229 explicit
230 operator Color() const ynothrow;
231
232 using HS::GetH;
233 using HS::GetHRef;
234 using HS::GetS;
235 using HS::GetSRef;
236 DefGetter(const ynothrow, float, L, lightness)
237 DefGetter(ynothrow, float&, LRef, lightness)
238
239 /*
240 \brief 色调偏移。
241 \pre 间接断言：输入值在范围内。
242 \return 自身引用。
243 */
244 PDefH(HSL&, Roll, Hue h) ynothrow
245 ImplRet(HS::Roll(h), *this)
246 };
247
248
250 class YF_API HSV : private HS
251 {
252 private:
257 float value;
258
259 public:
260 HSV(Hue h = 0, float s = 0, float v = 0) ynothrow
261 : HS{h, s}, value(v)
262 {}
264 HSV(float h, float s = 0, float v = 0) ynothrow
265 : HS{h, s}, value(v)
266 {}
268 HSV(Color) ynothrow;
269 DefDeCopyCtor(HSV)
270
275 explicit
276 operator Color() const ynothrow;
277
278 using HS::GetH;
279 using HS::GetHRef;
280 using HS::GetS;
281 using HS::GetSRef;
282 DefGetter(const ynothrow, float, V, value)
283 DefGetter(ynothrow, float&, VRef, value)
284
285 /*
286 \brief 色调偏移。
287 \pre 间接断言：输入值在范围内。
288 \return 自身引用。
289 */
290 PDefH(HSV&, Roll, Hue h) ynothrow
291 ImplRet(HS::Roll(h), *this)
292 };
293
294 } // namespace Drawing;
295
296 namespace UI
297 {
298
299 namespace Styles
300 {
301
306 enum Area
307 {
308 //背景和填充区域。
309 Null = 0,
310 Desktop = 1,
311 Window = 2,
312 Panel = 3,
313 Track = 4,
314 Workspace = 5,
315 Shadow = 6,
316 DockShadow = 7,
317 Light = 8,
318 Frame = 9,
319 Highlight = 10,
320 BorderFill = 11,
321 ActiveBorder = 12,
322 InactiveBorder = 13,
323 ActiveTitle = 14,
324 InactiveTitle = 15,
325
326 //前景和文本。
327 HighlightText = 16,
328 WindowText = 17,
329 PanelText = 18,
330 GrayText = 19,
331 TitleText = 20,
332 InactiveTitleText = 21,
333 HotTracking = 22,
334
335 EndArea = 24
336 };
337
338
344 class YF_API Palette
345 {
346 public:
347 using ItemType = Drawing::Color; //项目类型。
348 using ColorListType = vector<ItemType>; //颜色组类型。
349
350 private:
351 ColorListType colors; //颜色组。
352
353 public:
355 Palette();
356
358 PDefHOp(Drawing::Color&, [], size_t s) ynothrowv
359 ImplRet(colors[s])
360
361 DefGetter(const ynothrow, const ColorListType&, List, colors)
362 DefGetter(ynothrow, ColorListType&, List, colors)
366 pair<Drawing::Color, Drawing::Color>
367 GetPair(ColorListType::size_type, ColorListType::size_type) const;
368 };
369
370
372
373 using StyleItem = size_t;
375
377 using Key = pair<std::type_index, StyleItem>;
378
380 using Handler = std::function<void(PaintEventArgs&&)>;
381
383 using HandlerTable = unordered_map<Key, Handler, ystdex::combined_hash<Key>>;
384
386 using VisualStyle = pair<string, HandlerTable>;
387
388
397 template<typename _tIn>
398 void
399 AddHandlers(HandlerTable& table, std::type_index idx, _tIn first, _tIn last)
400 {
401 for(; first != last; ++first)
402 {
403 auto&& ref(*first);
404
405 table.emplace(Key(idx, get<0U>(ref)), get<1U>(ref));
406 }
407 }
408 template<typename _type, typename _tIn>
409 inline void
410 AddHandlers(HandlerTable& table, _tIn first, _tIn last)
411 {
412 Styles::AddHandlers(table, typeid(_type), first, last);
413 }
414 inline PDefH(void, AddHandlers, HandlerTable& table, std::type_index idx,
415 std::initializer_list<pair<StyleItem, Handler>> il)
416 ImplExpr(Styles::AddHandlers(table, idx, il.begin(), il.end()))
417 template<typename _type>
418 inline void
419 AddHandlers(HandlerTable& table,
420 std::initializer_list<pair<StyleItem, Handler>> il)
421 {
422 Styles::AddHandlers(table, typeid(_type), il);
423 }
425
426 template<typename _tRange>
427 inline void
428 AddHandlers(HandlerTable& table, std::type_index idx, _tRange&& c)
429 {
430 // XXX: Consider std::make_move_iterator.
431 Styles::AddHandlers(table, idx, begin(yforward(c)), end(yforward(c)));
432 }
433 template<typename _type, typename _tRange>
434 inline void
435 AddHandlers(HandlerTable& table, _tRange&& c)
436 {
437 Styles::AddHandlers(table, typeid(_type), yforward(c));
438 }
440
441
442
447 class YF_API Painter
448 {
449 private:
450 Key key;
451
452 public:
453 Painter(const Key& k)
454 : key(k)
455 {}
456 template<typename _type1, typename _type2>
457 Painter(_type1&& arg1, _type2&& arg2)
458 : key(yforward(arg1), yforward(arg2))
459 {}
460 DefDeCopyCtor(Painter)
461 DefDeMoveCtor(Painter)
462
463 DefDeCopyAssignment(Painter)
464 DefDeMoveAssignment(Painter)
465
466 DefGetter(const ynothrow, StyleItem, Item, key.second)
467 DefGetter(const ynothrow, const Key&, Key, key)
468 DefGetter(const ynothrow, std::type_index, TypeIndex, key.first)
469
470 void
471 operator()(PaintEventArgs&&) const;
472 };
473
474
479 class YF_API StyleMap : private noncopyable, private map<string, HandlerTable>
480 {
481 public:
482 using MapType = map<string, HandlerTable>;
483 using MapType::const_iterator;
484 using MapType::iterator;
485
486 private:
487 const_iterator current;
488
489 public:
490 StyleMap()
491 : MapType({{}}), current(cbegin())
492 {}
493 template<typename... _tParams>
494 StyleMap(_tParams&&... args)
495 : MapType({{}, yforward(args)...}), current(cbegin())
496 {}
497
499 DefGetter(const ynothrow, const_iterator, Current, current)
500
501 template<typename... _tParams>
502 void
503 Add(_tParams&&... args)
504 {
505 emplace(yforward(args)...);
506 }
507
509 void
510 Remove(const string&);
511
512 PDefH(void, Paint, const Styles::Painter& painter,
513 PaintEventArgs&& e)
514 ImplExpr(PaintAsStyle(painter.GetKey(), std::move(e)))
515
516 void
517 PaintAsStyle(const Key&, PaintEventArgs&&);
518
519 void
520 Switch(const string&);
521
522 using MapType::at;
523
524 using MapType::cbegin;
525
526 using MapType::cend;
527
528 using MapType::crbegin;
529
530 using MapType::crend;
531
532 using MapType::empty;
533
534 using MapType::find;
535
536 using MapType::lower_bound;
537
538 using MapType::size;
539
540 using MapType::upper_bound;
541 };
542
543
548 YF_API HandlerTable&
549 FetchDefault();
551
552 } // namespace Styles;
553
554 } // namespace UI;
555
556 } // namespace YSLib;
557
558 #endif
559
DefDeCopyAssignment
#define DefDeCopyAssignment(_t)
Definition: YBaseMacro.h:186
YSLib::UI::Styles::BorderFill
边框填充。
Definition: YStyle.h:320
YSLib::Drawing::HS::HS
HS(Hue h=0, float s=0) ynothrow
Definition: YStyle.h:179
YSLib::Drawing::DrawCornerArrow
YF_API void DrawCornerArrow(const Graphics &, const Rect &, const Point &, SDst=4, Rotation=RDeg0, Color=ColorSpace::Black, bool={})
在指定图形接口上下文上描画腰和坐标轴共线的等腰直角三角形箭头。
Definition: YStyle.cpp:230
YSLib::Drawing::HSV::HSV
HSV(Hue h=0, float s=0, float v=0) ynothrow
Definition: YStyle.h:260
YSLib::Drawing::RectDrawArrowOutline
YF_API void RectDrawArrowOutline(const PaintContext &, SDst, Rotation=RDeg0, Color=ColorSpace::Black)
在指定上下文的矩形中描画底边和坐标轴共线的等腰直角三角形箭头轮廓。
Definition: YStyle.cpp:102
YSLib::UI::Styles::StyleMap::StyleMap
StyleMap(_tParams &&...args)
Definition: YStyle.h:494
yconstfn
#define yconstfn
指定编译时常量函数。
Definition: ydef.h:680
v
byte v
Definition: CharRenderer.cpp:75
YSLib::Drawing::HSV::HSV
HSV(float h, float s=0, float v=0) ynothrow
Definition: YStyle.h:264
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
platform::MonoType
octet MonoType
Definition: Video.h:252
hash.hpp
散列接口。
UI
YSLib::UI::Desktop
桌面。
Definition: YDesktop.h:46
YSLib::UI::Styles::InactiveTitle
不活动标题背景。
Definition: YStyle.h:324
YSLib::Drawing::HSV
HSV 颜色。
Definition: YStyle.h:250
YSLib::UI::Styles::EndArea
Definition: YStyle.h:335
YSLib::Drawing::r
The boundary is out of the const Graphics const Rect const Point const Point Color c const Rect const Rect & r
Definition: YDraw.h:174
YSLib::UI::Panel
面板。
Definition: ypanel.h:45
YSLib::UI::Styles::FetchDefault
YF_API HandlerTable & FetchDefault()
取默认样式处理器表。
Definition: YStyle.cpp:533
YSLib::UI::Styles::Painter
带样式的绘制处理函数。
Definition: YStyle.h:447
YSLib::Drawing::DrawCross
YF_API void DrawCross(const Graphics &, const Rect &, const Rect &, Color)
在指定图形接口上下文中使用指定颜色描画交叉直线段（“×”）。
Definition: YStyle.cpp:244
YSLib::Drawing::DrawArrow
YF_API void DrawArrow(const Graphics &, const Rect &, const Rect &, SDst=4, Rotation=RDeg0, Color=ColorSpace::Black, bool={})
在指定图形接口上下文上描画底边和坐标轴共线的等腰直角三角形箭头。
Definition: YStyle.cpp:202
YSLib::Drawing::HS::HS
HS(float h, float s=0) ynothrow
Definition: YStyle.h:183
YSLib::UI::Styles::Painter::Painter
Painter(const Key &k)
Definition: YStyle.h:453
YSLib::UI::Styles::HighlightText
Definition: YStyle.h:327
ystdex::cpp2014::crend
auto crend(const _tRange &c) -> decltype(ystdex::rend(c))
Definition: range.hpp:150
YSLib::UI::Styles::Palette::ColorListType
vector< ItemType > ColorListType
Definition: YStyle.h:348
DefDeMoveCtor
#define DefDeMoveCtor(_t)
Definition: YBaseMacro.h:167
YSLib::UI::Styles::Palette::colors
ColorListType colors
Definition: YStyle.h:351
ystdex::cpp2014::cend
auto cend(const _tRange &c) -> decltype(std::end(c))
Definition: range.hpp:87
YSLib::UI::Styles::InactiveBorder
不活动边框背景。
Definition: YStyle.h:322
YSLib::Drawing::Color
The boundary is out of the const Rect SDst SPos SPos SPos Color
Definition: YDraw.h:127
CHRLib::args
_tParams && args
Definition: CharacterProcessing.h:538
YSLib::Drawing::RectDrawCornerArrowOutline
YF_API void RectDrawCornerArrowOutline(const PaintContext &, SDst, Rotation=RDeg0, Color=ColorSpace::Black)
在指定上下文的矩形中描画腰和坐标轴共线的等腰直角三角形箭头轮廓。
Definition: YStyle.cpp:186
YSLib::UI::Styles::StyleMap::DefGetter
DefGetter(const ynothrow, const_iterator, Current, current) template< typename..._tParams > void Add(_tParams &&...args)
Definition: YStyle.h:499
CHRLib::CharSet::Null
空字符集。
Definition: Encoding.h:63
YSLib::Drawing::DrawTick
YF_API void DrawTick(const Graphics &, const Rect &, const Rect &, Color, Color)
Definition: YStyle.cpp:257
YSLib::Drawing::Point
GBinaryGroup< SPos > Point
屏幕二维点（直角坐标表示）。
Definition: YGDIBase.h:278
platform::KeyCodes::DS::L
Definition: Keys.h:227
ystdex::cpp2011::end
_type * end(_type(&&array)[_vN])
Definition: range.hpp:54
YSLib::UI::Styles::Workspace
应用程序工作区背景。
Definition: YStyle.h:314
YSLib::UI::Styles::Key
pair< std::type_index, StyleItem > Key
标识查找样式的键。
Definition: YStyle.h:377
YSLib::UI::Styles::HotTracking
Definition: YStyle.h:333
YSLib::Drawing::RectDrawArrow
YF_API void RectDrawArrow(const PaintContext &, SDst, Rotation=RDeg0, Color=ColorSpace::Black)
在指定上下文的矩形中描画底边和坐标轴共线的等腰直角三角形箭头。
Definition: YStyle.cpp:69
YSLib::UI::Styles::AddHandlers
void AddHandlers(HandlerTable &table, _tRange &&c)
Definition: YStyle.h:435
DefDeMoveAssignment
#define DefDeMoveAssignment(_t)
Definition: YBaseMacro.h:191
platform::SDst
std::uint16_t SDst
屏幕坐标距离。
Definition: Video.h:44
YSLib::Drawing::g
The boundary is out of the const Graphics & g
Definition: YDraw.h:161
CHRLib::s
_tDst const _tSrc * s
Definition: CharacterProcessing.h:140
YSLib::UI::Window
窗口。
Definition: YWindow.h:44
ystdex::cpp2014::cbegin
auto cbegin(const _tRange &c) -> decltype(std::begin(c))
Definition: range.hpp:79
ystdex
特性测试宏。
Definition: ydef.h:822
YSLib::Drawing::RectDrawCornerArrow
YF_API void RectDrawCornerArrow(const PaintContext &, SDst, Rotation=RDeg0, Color=ColorSpace::Black)
在指定上下文的矩形中描画腰和坐标轴共线的等腰直角三角形箭头。
Definition: YStyle.cpp:149
YSLib::UI::Styles::ActiveTitle
活动标题背景。
Definition: YStyle.h:323
YSLib::Drawing::ImplExpr
tr TextRegion &tr ImplExpr(tr.Margin.Bottom=SPos(FetchResizedBottomMargin(tr))) YF_API SDst FetchCharWidth(const Font &
取指定的字符使用指定字体的显示宽度。
YSLib::Drawing::HS
按指定颜色或分量选取彩色或灰度色。
Definition: YStyle.h:176
YSLib::Drawing::Graphics
GGraphics< BitmapPtr > Graphics
Definition: YGraphics.h:163
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::UI::Styles::StyleItem
size_t StyleItem
标识样式渲染项的类型。
Definition: YStyle.h:374
Drawing
YSLib::Drawing::HSV::value
float value
颜色值。
Definition: YStyle.h:257
YSLib::UI::PaintEventArgs
部件绘制参数。
Definition: YWidgetEvent.h:323
YSLib::Drawing::Rotation
Rotation
逆时针旋转角度指示输出指向。
Definition: YGDIBase.h:895
YSLib::Drawing::HSL::HSL
HSL(Hue h=0, float s=0, float l=0) ynothrow
Definition: YStyle.h:213
platform::Color
颜色。
Definition: Video.h:416
YSLib::ynothrow
YB_PURE const _type size_t n ynothrow
Definition: YCoreUtilities.h:168
YSLib::UI::Styles::Frame
框架背景。
Definition: YStyle.h:318
ystdex::cpp2014::crbegin
auto crbegin(const _tRange &c) -> decltype(ystdex::rbegin(c))
Definition: range.hpp:143
YSLib::UI::Styles::Track
滚动条背景。
Definition: YStyle.h:313
YSLib::UI::Styles::WindowText
Definition: YStyle.h:328
ynothrowv
#define ynothrowv
YSLib 无异常抛出保证验证：有条件地使用无异常抛出规范。
Definition: ydef.h:786
YSLib::UI::Styles::HandlerTable
unordered_map< Key, Handler, ystdex::combined_hash< Key >> HandlerTable
样式处理器表。
Definition: YStyle.h:383
YModules.h
CHRLib::e
const char const char * e
Definition: CharacterProcessing.h:109
YSLib::UI::Styles::Handler
std::function< void(PaintEventArgs &&)> Handler
样式处理器。
Definition: YStyle.h:380
YSLib::UI::Styles::PanelText
Definition: YStyle.h:329
YSLib::UI::Paint
界面绘制。
Definition: YWidgetEvent.h:416
std
Definition: memory.hpp:1183
YSLib::ImplRet
ImplRet(FetchGlobalInstance().GetGUIHostRef()) YF_API void Execute(GUIApplication &
执行程序主消息循环。
DefGetter
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:241
YSLib::UI::Styles::VisualStyle
pair< string, HandlerTable > VisualStyle
视觉样式。
Definition: YStyle.h:386
YSLib::UI::Styles::Painter::Painter
Painter(_type1 &&arg1, _type2 &&arg2)
Definition: YStyle.h:457
YSLib::Consoles::Black
Definition: YConsole.h:53
YSLib::UI::Styles::Area
Area
样式区域类型。
Definition: YStyle.h:306
rational.hpp
有理数运算。
DefDeCopyCtor
#define DefDeCopyCtor(_t)
Definition: YBaseMacro.h:162
YSLib::UI::Styles::TitleText
Definition: YStyle.h:331
YSLib::UI::Styles::DockShadow
容器阴影背景。
Definition: YStyle.h:316
YSLib::UI::Styles::InactiveTitleText
Definition: YStyle.h:332
ystdex::noncopyable
不可复制对象：禁止派生类调用默认原型的复制构造函数和复制赋值操作符。
Definition: base.h:41
YSLib::Drawing::bounds
The boundary is out of the const Rect & bounds
Definition: YDraw.h:127
yforward
#define yforward(_expr)
根据参数类型使用 std::forward 传递对应参数。
Definition: ydef.h:995
YSLib::Drawing::RDeg0
Definition: YGDIBase.h:897
YSLib::Drawing::DrawRectRoundCorner
YF_API void DrawRectRoundCorner(const PaintContext &pc, const Size &s, Color)
绘制部件边框用空心标准矩形。
Definition: YStyle.cpp:42
YSLib::Drawing::HSL::lightness
float lightness
亮度。
Definition: YStyle.h:210
YSLib::UI::Styles::GrayText
Definition: YStyle.h:330
YSLib::UI::Styles::Painter::key
Key key
Definition: YStyle.h:450
YSLib::UI::Styles::Palette
默认调色板。
Definition: YStyle.h:344
YSLib::UI::Styles::StyleMap::MapType
map< string, HandlerTable > MapType
Definition: YStyle.h:482
ystdex::cpp2011::begin
_type * begin(_type(&&array)[_vN])
Definition: range.hpp:46
ystdex::size
auto size(const _tRange &c) -> decltype(c.size())
类容器访问。
Definition: range.hpp:233
YSLib::Drawing::PDefH
yconstfn PDefH(Size, Transpose, const Size &s) ynothrow ImplRet(
转置。
Definition: YGDIBase.h:516
YSLib::Drawing::HSL::HSL
HSL(float h, float s=0, float l=0) ynothrow
Definition: YStyle.h:217
YSLib::UI::Styles::StyleMap
样式映射。
Definition: YStyle.h:479
YSLib::UI::Styles::StyleMap::StyleMap
StyleMap()
Definition: YStyle.h:490
YSLib::UI::Styles::ActiveBorder
活动边框背景。
Definition: YStyle.h:321
YSLib::UI::Styles::Shadow
阴影背景。
Definition: YStyle.h:315
YSLib::Drawing::HSL
HSL 颜色。
Definition: YStyle.h:203
ystdex::ref
lref< _type > ref(_type &t)
构造引用包装。
Definition: ref.hpp:132
YSLib::UI::EventMapping::MapType
map< VisualEvent, MappedType > MapType
映射表类型。
Definition: YWidgetEvent.h:485
YSLib::UI::Styles::Light
明亮背景。
Definition: YStyle.h:317
YSLib::UI::Styles::StyleMap::current
const_iterator current
Definition: YStyle.h:487
YSLib::Drawing::c
The boundary is out of the const Graphics const Rect const Point const Point Color c const Rect const Rect Color c
Definition: YDraw.h:174
YSLib::UI::Styles::Highlight
高亮背景。
Definition: YStyle.h:319