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
39
InvalidationUpdater::operator()
()
const
40
{
41
if
(
bool
(
Invalidate
) && !(
WidgetPtr
&&
Invalidate
(*
WidgetPtr
)))
42
Ready
= {};
43
return
Ready
;
44
}
45
46
bool
47
InvalidationUpdater::DefaultInvalidate
(IWidget&
wgt
)
48
{
49
InvalidateVisible
(wgt);
50
return
true
;
51
}
52
53
bool
54
InvalidationUpdater::DefaultInvalidateControl
(IWidget&
wgt
)
55
{
56
if
(
IsEnabled
(wgt))
57
InvalidateVisible
(wgt);
58
return
true
;
59
}
60
61
}
// namespace UI;
62
63
}
// namespace YSLib;
64
YSLib::UI::InvalidationUpdater::DefaultInvalidateControl
static bool DefaultInvalidateControl(IWidget &)
Definition:
Animation.cpp:54
YModules.h
YSLib::UI::InvalidationUpdater::WidgetPtr
IWidget * WidgetPtr
Definition:
Animation.h:129
YSLib::UI::InvalidationUpdater::Invalidate
Invalidator Invalidate
Definition:
Animation.h:138
YSLib::UI::InvalidateVisible
YF_API void InvalidateVisible(IWidget &, const Rect &)
无效化:使相对于可见的部件的指定区域在直接和间接的窗口缓冲区中无效。
Definition:
ywidget.cpp:151
YSLib::UI::wgt
_tWidget & wgt
Definition:
ywgtevt.h:596
YSLib::UI::InvalidationUpdater::DefaultInvalidate
static bool DefaultInvalidate(IWidget &)
Definition:
Animation.cpp:47
YSLib::UI::InvalidationUpdater::operator()
bool operator()() const
更新函数:无效化后根据成员指定是否需要发送 SM_Task 消息。
Definition:
Animation.cpp:39
YSLib::UI::IsEnabled
bool IsEnabled(const IWidget &wgt)
判断部件是否为可用的控件。
Definition:
ycontrol.h:86
YSLib::UI::InvalidationUpdater::Ready
bool Ready
准备和最后持续状态:更新函数的最后结果。
Definition:
Animation.h:131
YFramework
source
YSLib
UI
Animation.cpp
生成于 2014年 五月 30日 星期五 00:14:49 , 为 YSTest使用
1.8.7