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 
39  : Widget(wgt)
40 {
41  yunseq(
42  FetchEvent<Enter>(wgt) += [this]{
43  entered = true,
45  },
46  FetchEvent<Leave>(wgt) += [this]{
47  entered = false,
49  }
50  );
51 }
52 
53 } // namespace UI;
54 
55 } // namespace YSLib;
56 
YF_API void Invalidate(IWidget &, const Rect &)
无效化:使相对于部件的指定区域在直接和间接的窗口缓冲区中无效。
Definition: ywidget.cpp:111
HoverUpdater(IWidget &)
Definition: Hover.cpp:38
#define yunseq
无序列依赖表达式组求值。
Definition: ydef.h:748
_tWidget & wgt
Definition: ywgtevt.h:596
部件。
Definition: ywidget.h:356