YSTest
PreAlpha_b500_20140530
The YSLib Test Project
首页
相关页面
模块
命名空间
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
YComponent.cpp
浏览该文件的文档.
1
/*
2
© 2010-2011, 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_YComponent
30
31
namespace
YSLib
32
{
33
34
namespace
Drawing
35
{
36
37
string
38
to_string
(
const
Size
&
s
)
39
{
40
using
YSLib::to_string
;
41
42
return
"("
+
to_string
(s.
Width
) +
", "
+
to_string
(s.
Height
) +
')'
;
43
}
44
45
string
46
to_string
(
const
Rect
&
r
)
47
{
48
using
YSLib::to_string
;
49
50
return
"("
+
to_string
(r.
X
) +
", "
+
to_string
(r.
Y
) +
", "
51
+
to_string
(r.
Width
) +
", "
+
to_string
(r.
Height
) +
')'
;
52
}
53
54
}
// namespace Drawing;
55
56
}
// namespace YSLib;
57
YSLib::Drawing::to_string
string to_string(const GBinaryGroup< _type > &val)
转换为字符串。
Definition:
YComponent.h:59
YModules.h
YSLib::Drawing::Size::Height
SDst Height
宽和高。
Definition:
ygdibase.h:258
YSLib::Drawing::GBinaryGroup::Y
_type Y
分量。
Definition:
ygdibase.h:59
YSLib::Drawing::Rect
屏幕标准矩形:表示屏幕矩形区域。
Definition:
ygdibase.h:416
YSLib::Drawing::GBinaryGroup::X
_type X
Definition:
ygdibase.h:59
ystdex::to_string
std::string to_string(unsigned char val)
转换为字符串。
Definition:
string.hpp:353
platform_ex::Windows::s
return s
Definition:
MinGW32.cpp:49
YSLib::Drawing::r
bounds & r
Definition:
ydraw.h:220
YSLib::Drawing::Size
屏幕区域大小。
Definition:
ygdibase.h:249
YSLib::Drawing::Size::Width
SDst Width
Definition:
ygdibase.h:258
YFramework
source
YSLib
UI
YComponent.cpp
生成于 2014年 五月 30日 星期五 00:14:52 , 为 YSTest使用
1.8.7