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

屏幕区域大小。 更多...

#include <ygdibase.h>

类 YSLib::Drawing::Size 继承关系图:
YSLib::Drawing::Size 的协作图:

Public 成员函数

yconstfn Size () ynothrow
 无参数构造。
 
yconstfn Size (const Size &s) ynothrow
 复制构造。
 
yconstfn Size (const Rect &) ynothrow
 构造:使用 Rect 对象。
 
template<typename _type >
yconstfn Size (const GBinaryGroup< _type > &val) ynothrow
 构造:使用屏幕二元组。
 
template<typename _tScalar1 , typename _tScalar2 >
yconstfn Size (_tScalar1 w, _tScalar2 h) ynothrow
 构造:使用两个纯量。
 
yconstfn bool operator! () const ynothrow
 判断是否为空。
 
yconstfn operator bool () const ynothrow
 判断是否非空。
 
yconstfn operator Vec () const ynothrow
 转换:屏幕二维向量。
 
yconstfn bool IsLineSegment () const ynothrow
 判断是否为线段:长或宽中有且一个数值等于 0 。
 
yconstfn bool IsUnstrictlyEmpty () const ynothrow
 判断是否为不严格的空矩形区域:包括空矩形和线段。
 
SDst & GetRef (bool b=true) ynothrow
 选择分量引用。
 
const SDst & GetRef (bool b=true) const ynothrow
 选择分量常量引用。
 

Public 属性

SDst Width
 
SDst Height
 宽和高。
 

静态 Public 属性

static const Size Invalid
 无效对象。
 

详细描述

屏幕区域大小。

自从
build 161

在文件 ygdibase.h235 行定义.

构造及析构函数说明

yconstfn YSLib::Drawing::Size::Size ( )
inline

无参数构造。

注解
零初始化。
自从
build 319

在文件 ygdibase.h252 行定义.

yconstfn YSLib::Drawing::Size::Size ( const Size s)
inline

复制构造。

自从
build 319

在文件 ygdibase.h260 行定义.

yconstfn YSLib::Drawing::Size::Size ( const Rect r)
explicit

构造:使用 Rect 对象。

自从
build 319

在文件 ygdibase.h684 行定义.

template<typename _type >
yconstfn YSLib::Drawing::Size::Size ( const GBinaryGroup< _type > &  val)
inlineexplicit

构造:使用屏幕二元组。

自从
build 319

在文件 ygdibase.h275 行定义.

template<typename _tScalar1 , typename _tScalar2 >
yconstfn YSLib::Drawing::Size::Size ( _tScalar1  w,
_tScalar2  h 
)
inline

构造:使用两个纯量。

自从
build 319

在文件 ygdibase.h284 行定义.

成员函数说明

SDst& YSLib::Drawing::Size::GetRef ( bool  b = true)
inline

选择分量引用。

注解
第二参数为 true 时选择第一分量,否则选择第二分量。
自从
build 319

在文件 ygdibase.h325 行定义.

参考自 YSLib::UI::ATrack::SetThumbLength().

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

const SDst& YSLib::Drawing::Size::GetRef ( bool  b = true) const
inline

选择分量常量引用。

注解
第二参数为 true 时选择第一分量,否则选择第二分量。
自从
build 319

在文件 ygdibase.h335 行定义.

参考 Width.

yconstfn bool YSLib::Drawing::Size::IsLineSegment ( ) const
inline

判断是否为线段:长或宽中有且一个数值等于 0 。

自从
build 264

在文件 ygdibase.h312 行定义.

yconstfn bool YSLib::Drawing::Size::IsUnstrictlyEmpty ( ) const
inline

判断是否为不严格的空矩形区域:包括空矩形和线段。

自从
build 264

在文件 ygdibase.h317 行定义.

参考自 YSLib::Drawing::Clip().

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

yconstfn YSLib::Drawing::Size::operator bool ( ) const
inlineexplicit

判断是否非空。

自从
build 320

在文件 ygdibase.h299 行定义.

yconstfn YSLib::Drawing::Size::operator Vec ( ) const
inline

转换:屏幕二维向量。

注解
以Width 和 Height 分量作为结果的 X 和 Y分量。

在文件 ygdibase.h305 行定义.

yconstfn bool YSLib::Drawing::Size::operator! ( ) const
inline

判断是否为空。

自从
build 320

在文件 ygdibase.h292 行定义.

类成员变量说明

YSL_BEGIN const Size Size::Invalid
static

无效对象。

自从
build 296

在文件 ygdibase.h242 行定义.


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