YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ywgtview.cpp
浏览该文件的文档.
1 /*
2  © 2009-2013 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_YWidget
30 
31 namespace YSLib
32 {
33 
34 using namespace Drawing;
35 
36 namespace UI
37 {
38 
40  : visible(true),
41  location(r.GetPoint()), size(r.Width, r.Height)
42 {}
43 
44 
45 bool
47 {
48  return DependencyPtr ? DependencyPtr->GetView().IsVisible()
49  : visual.IsVisible();
50 }
51 
52 void
54 {
55  if(DependencyPtr)
56  DependencyPtr->GetView().SetVisible(b);
57  else
58  visual.SetVisible(b);
59 }
60 
61 } // namespace UI;
62 
63 } // namespace YSLib;
64 
bool return true
Definition: DSMain.cpp:177
Visual(const Rect &={})
构造:使用指定边界。
Definition: ywgtview.cpp:39
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
屏幕标准矩形:表示屏幕矩形区域。
Definition: ygdibase.h:416
Visual visual
当前可视状态。
Definition: ywgtview.h:140
bounds & r
Definition: ydraw.h:220
if(YB_UNLIKELY(r >=sGraphics.Height)) throw std return pBuffer r *sGraphics Width
Definition: ygdibase.cpp:155
visual visual const Size visual Size visual void SetVisible(bool)
Definition: ywgtview.cpp:53
IWidget * DependencyPtr
从属的部件指针。
Definition: ywgtview.h:151