YSTest
PreAlpha_b500_20140530
The YSLib Test Project
首页
相关页面
模块
命名空间
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
Hover.cpp
浏览该文件的文档.
1
/*
2
© 2013-2014 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
#include "
YSLib/UI/YModules.h
"
29
#include YFM_YSLib_UI_Hover
30
#include YFM_YSLib_UI_YControl
31
32
namespace
YSLib
33
{
34
35
namespace
UI
36
{
37
38
HoverUpdater::HoverUpdater
(IWidget&
wgt
)
39
:
Widget
(wgt)
40
{
41
yunseq
(
42
FetchEvent<Enter>(wgt) += [
this
]{
43
entered
=
true
,
44
Invalidate
(
Widget
);
45
},
46
FetchEvent<Leave>(
wgt
) += [
this
]{
47
entered
=
false
,
48
Invalidate
(
Widget
);
49
}
50
);
51
}
52
53
}
// namespace UI;
54
55
}
// namespace YSLib;
56
YModules.h
YSLib::UI::Invalidate
YF_API void Invalidate(IWidget &, const Rect &)
无效化:使相对于部件的指定区域在直接和间接的窗口缓冲区中无效。
Definition:
ywidget.cpp:111
YSLib::UI::HoverUpdater::HoverUpdater
HoverUpdater(IWidget &)
Definition:
Hover.cpp:38
yunseq
#define yunseq
无序列依赖表达式组求值。
Definition:
ydef.h:748
YSLib::UI::wgt
_tWidget & wgt
Definition:
ywgtevt.h:596
YSLib::UI::Widget
部件。
Definition:
ywidget.h:356
YSLib::UI::HoverUpdater::entered
bool entered
Definition:
Hover.h:50
YFramework
source
YSLib
UI
Hover.cpp
生成于 2014年 五月 30日 星期五 00:14:50 , 为 YSTest使用
1.8.7