YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部 类 命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 组 页
YSLib::UI::View类 参考

部件视图。 更多...

#include <ywgtview.h>

YSLib::UI::View 的协作图:

Public 成员函数

 View (const Rect &r={})
 构造:使用指定边界、前景色和背景色。
 
 View (const View &v)
 
 View (View &&v)
 
virtual ~View ()
 
View & operator= (const View &v)
 复制赋值:仅可视状态。
 
View & operator= (View &&v)
 转移赋值:仅可视状态。
 
bool IsVisible () const ynothrow
 
SPos GetX () const ynothrow
 
SPos GetY () const ynothrow
 
SDst GetWidth () const ynothrow
 
SDst GetHeight () const ynothrow
 
const Point & GetLocation () const ynothrow
 
const Size & GetSize () const ynothrow
 
Point & GetLocationRef () ynothrow
 
Size & GetSizeRef () ynothrow
 
void SetVisible (bool)
 
void SetX (SPos _tempArgName)
 
void SetY (SPos _tempArgName)
 
void SetWidth (SDst _tempArgName)
 
void SetHeight (SDst _tempArgName)
 
virtual void SetLocation (const Point &_tempArgName)
 
virtual void SetSize (const Size &_tempArgName)
 
void SetLocation (SPos x, SPos y)
 
void SetSize (SDst w, SDst h)
 
virtual View * Clone () const
 

Public 属性

IWidget * ContainerPtr
 从属的部件容器的指针。
 
IWidget * DependencyPtr
 从属的部件指针。
 
IWidget * FocusingPtr
 焦点指针。
 

Private 属性

Visual visual
 当前可视状态。
 

详细描述

部件视图。

自从
build 259

在文件 ywgtview.h 第 140 行定义.

构造及析构函数说明

YSLib::UI::View::View ( const Rect &  r = {})
inline

构造:使用指定边界、前景色和背景色。

自从
build 337

在文件 ywgtview.h 第 162 行定义.

YSLib::UI::View::View ( const View &  v)
inline

在文件 ywgtview.h 第 165 行定义.

YSLib::UI::View::View ( View &&  v)
inline

在文件 ywgtview.h 第 168 行定义.

参考 yunseq().

函数调用图:

virtual YSLib::UI::View::~View ( )
inlinevirtual

在文件 ywgtview.h 第 175 行定义.

成员函数说明

virtual View* YSLib::UI::View::Clone ( ) const
inlinevirtual

在文件 ywgtview.h 第 225 行定义.

SDst YSLib::UI::View::GetHeight ( ) const
inline

在文件 ywgtview.h 第 204 行定义.

const Point& YSLib::UI::View::GetLocation ( ) const
inline

在文件 ywgtview.h 第 205 行定义.

参考自 YSLib::UI::GetLocationOf().

这是这个函数的调用关系图:

Point& YSLib::UI::View::GetLocationRef ( )
inline
自从
build 307

在文件 ywgtview.h 第 208 行定义.

const Size& YSLib::UI::View::GetSize ( ) const
inline

在文件 ywgtview.h 第 206 行定义.

参考自 YSLib::UI::GetSizeOf().

这是这个函数的调用关系图:

Size& YSLib::UI::View::GetSizeRef ( )
inline
自从
build 307

在文件 ywgtview.h 第 210 行定义.

SDst YSLib::UI::View::GetWidth ( ) const
inline

在文件 ywgtview.h 第 203 行定义.

SPos YSLib::UI::View::GetX ( ) const
inline

在文件 ywgtview.h 第 201 行定义.

SPos YSLib::UI::View::GetY ( ) const
inline

在文件 ywgtview.h 第 202 行定义.

bool View::IsVisible ( ) const

在文件 ywgtview.cpp 第 43 行定义.

View& YSLib::UI::View::operator= ( const View &  v)
inline

复制赋值:仅可视状态。

自从
build 295

在文件 ywgtview.h 第 182 行定义.

View& YSLib::UI::View::operator= ( View &&  v)
inline

转移赋值:仅可视状态。

自从
build 295

在文件 ywgtview.h 第 192 行定义.

void YSLib::UI::View::SetHeight ( SDst  _tempArgName)
inline

在文件 ywgtview.h 第 217 行定义.

virtual void YSLib::UI::View::SetLocation ( const Point &  _tempArgName)
inlinevirtual

在文件 ywgtview.h 第 218 行定义.

void YSLib::UI::View::SetLocation ( SPos  x,
SPos  y 
)
inline

在文件 ywgtview.h 第 220 行定义.

virtual void YSLib::UI::View::SetSize ( const Size &  _tempArgName)
inlinevirtual

在文件 ywgtview.h 第 219 行定义.

void YSLib::UI::View::SetSize ( SDst  w,
SDst  h 
)
inline

在文件 ywgtview.h 第 222 行定义.

void View::SetVisible ( bool  b)

在文件 ywgtview.cpp 第 50 行定义.

参考自 YSLib::UI::SetVisibleOf().

这是这个函数的调用关系图:

void YSLib::UI::View::SetWidth ( SDst  _tempArgName)
inline

在文件 ywgtview.h 第 216 行定义.

void YSLib::UI::View::SetX ( SPos  _tempArgName)
inline

在文件 ywgtview.h 第 214 行定义.

void YSLib::UI::View::SetY ( SPos  _tempArgName)
inline

在文件 ywgtview.h 第 215 行定义.

类成员变量说明

IWidget* YSLib::UI::View::ContainerPtr
mutable

从属的部件容器的指针。

自从
build 375

在文件 ywgtview.h 第 148 行定义.

参考自 YSLib::UI::FetchContainerPtr().

IWidget* YSLib::UI::View::DependencyPtr
mutable

从属的部件指针。

逻辑依赖的部件指针,用于提供边界、容器和焦点以外属性的默认值。

在文件 ywgtview.h 第 154 行定义.

IWidget* YSLib::UI::View::FocusingPtr
mutable

焦点指针。

在文件 ywgtview.h 第 155 行定义.

参考自 YSLib::UI::FetchFocusingPtr().

Visual YSLib::UI::View::visual
private

当前可视状态。

在文件 ywgtview.h 第 143 行定义.


该类的文档由以下文件生成: