YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
屏幕区域大小。 更多...
#include <ygdibase.h>
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 |
无效对象。 | |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
选择分量引用。
在文件 ygdibase.h 第 325 行定义.
参考自 YSLib::UI::ATrack::SetThumbLength().
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
SDst YSLib::Drawing::Size::Height |
宽和高。
在文件 ygdibase.h 第 244 行定义.
参考自 YSLib::UI::Menu::DrawItem(),YSLib::UI::TextList::DrawItemBackground(),YSLib::UI::TextList::DrawItems(),YSLib::UI::MLabel::DrawText(),YSLib::UI::TextList::InvalidateSelected(),YSLib::UI::ProgressBar::Refresh(),YSLib::UI::ListBox::ResizeForPreferred(),YSLib::UI::BufferedRenderer::SetSize() , 以及 YSLib::Drawing::BitmapBufferEx::SetSize().
SDst YSLib::Drawing::Size::Width |
在文件 ygdibase.h 第 244 行定义.
参考自 YSLib::Drawing::AdjustEndOfLine(),YSLib::Drawing::Blit(),YSLib::UI::Menu::DrawItem(),YSLib::UI::TextList::DrawItemBackground(),YSLib::UI::MLabel::DrawText(),YSLib::Drawing::RectTransformer::operator()(),YSLib::Drawing::PlotPixel(),YSLib::UI::ProgressBar::Refresh(),YSLib::UI::ListBox::ResizeForPreferred(),YSLib::UI::BufferedRenderer::SetSize() , 以及 YSLib::Drawing::BitmapBufferEx::SetSize().