YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
Animation.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_Animation
30 #include YFM_YSLib_UI_YControl // for IsEnabled;
31 
32 namespace YSLib
33 {
34 
35 namespace UI
36 {
37 
38 bool
40 {
41  if(bool(Invalidate) && !(WidgetPtr && Invalidate(*WidgetPtr)))
42  Ready = {};
43  return Ready;
44 }
45 
46 bool
48 {
49  InvalidateVisible(wgt);
50  return true;
51 }
52 
53 bool
55 {
56  if(IsEnabled(wgt))
57  InvalidateVisible(wgt);
58  return true;
59 }
60 
61 } // namespace UI;
62 
63 } // namespace YSLib;
64 
static bool DefaultInvalidateControl(IWidget &)
Definition: Animation.cpp:54
YF_API void InvalidateVisible(IWidget &, const Rect &)
无效化:使相对于可见的部件的指定区域在直接和间接的窗口缓冲区中无效。
Definition: ywidget.cpp:151
_tWidget & wgt
Definition: ywgtevt.h:596
static bool DefaultInvalidate(IWidget &)
Definition: Animation.cpp:47
bool operator()() const
更新函数:无效化后根据成员指定是否需要发送 SM_Task 消息。
Definition: Animation.cpp:39
bool IsEnabled(const IWidget &wgt)
判断部件是否为可用的控件。
Definition: ycontrol.h:86
bool Ready
准备和最后持续状态:更新函数的最后结果。
Definition: Animation.h:131