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 
string to_string(const GBinaryGroup< _type > &val)
转换为字符串。
Definition: YComponent.h:59
SDst Height
宽和高。
Definition: ygdibase.h:258
屏幕标准矩形:表示屏幕矩形区域。
Definition: ygdibase.h:416
std::string to_string(unsigned char val)
转换为字符串。
Definition: string.hpp:353
bounds & r
Definition: ydraw.h:220
屏幕区域大小。
Definition: ygdibase.h:249