CCNS(函数库CCPointFromString CCRectFromString CCSizeFromString 参数是字符串"{x,y}"、{{x,y},{w, h}}、"{w, h}")
来源:互联网 发布:淘宝快速冲销量的方法 编辑:程序博客网 时间:2024/05/02 01:06
#ifndef __PLATFOMR_CCNS_H__
#define __PLATFOMR_CCNS_H__
#include "CCGeometry.h"
NS_CC_BEGIN
/**
* @addtogroup data_structures
* @{
*/
/**
@brief Returns a Core(核心) Graphics(图形) rectangle(矩形) structure(结构) corresponding(相应的) to(对应于) the data in a given string.
@param pszContent A string object whose contents are of the form "{{x,y},{w, h}}",
where x is the x coordinate, y is the y coordinate, w is the width, and h is the height.
These components(组件) can represent(代表) integer or float values.
An example of a valid(有效地) string is "{{3,2},{4,5}}".
The string is not localized(本地化), so items are always separated with a comma(逗号).
@return A Core Graphics structure that represents a rectangle.
If the string is not well-formed, the function returns CCRectZero.
*/
CCRect CC_DLL CCRectFromString(const char* pszContent); //根据字符串得到一个ccrect 类似{{x,y},{w, h}}
/**
@brief Returns a Core Graphics point structure corresponding to the data in a given string.
@param pszContent A string object whose contents are of the form "{x,y}",
where x is the x coordinate and y is the y coordinate.
The x and y values can represent integer or float values.
An example of a valid string is "{3.0,2.5}".
The string is not localized, so items are always separated with a comma.
@return A Core Graphics structure that represents a point.
If the string is not well-formed, the function returns CCPointZero.
*/
CCPoint CC_DLL CCPointFromString(const char* pszContent); //根据字符串得到一个ccpoint类似 "{x,y}"
/**
@brief Returns a Core Graphics size structure corresponding to the data in a given string.
@param pszContent A string object whose contents are of the form "{w, h}",
where w is the width and h is the height.
The w and h values can be integer or float values.
An example of a valid string is "{3.0,2.5}".
The string is not localized, so items are always separated with a comma.
@return A Core Graphics structure that represents a size.
If the string is not well-formed, the function returns CCSizeZero.
*/
CCSize CC_DLL CCSizeFromString(const char* pszContent); //根据字符串得到一个ccsize 类似 "{w, h}"
// end of data_structure group
/// @}
NS_CC_END
#endif // __PLATFOMR_CCNS_H__
- CCNS(函数库CCPointFromString CCRectFromString CCSizeFromString 参数是字符串"{x,y}"、{{x,y},{w, h}}、"{w, h}")
- CropImageFilter(x, y, w, h)各个参数的意义
- iOS 开发 封装(X-Y-W-H)工具类
- DUMP(w[,x[,y[,z]]])
- 基础地理信息术语(a-b-c-d-e-f-g-h-i-k-l-m-n-o-t-u-v-w-x-y-z)
- V.W.X.H测试模型
- cocos2d-x节点(CCNS.h)API
- Matlab_learning_1(set(gcf,'MenuBar','none','Position',[X,Y,Z,W]))
- V模型W模型X模型H模型
- 如果令 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 分别等于
- (x&y)+((x^y)>>1)用法
- 软件测试过程模型特点(V模型 W模型 X模型 H模型)
- 将等号前面的数字分别替换成x,y,z,w
- 公网ip地址w.x.y.z可以用在局域网内吗?
- Error in nnet.default(x, y, w, ...) : too many (2651) weights
- (x&y)+((x^y)>>1)
- (x&y)+((x^y)>>1)
- (x&y)+((x^y)>>1)
- CCObject(m_uReference(被引用次数) m_uAutoReleaseCount(加入释放池次数) release retain acceptVisitor)
- cocos2dx常见的46中+22中动作
- 使用U盘安装Ubuntu14.04操作系统
- eclipse 代码补全
- 仿美团弹出分类选择框
- CCNS(函数库CCPointFromString CCRectFromString CCSizeFromString 参数是字符串"{x,y}"、{{x,y},{w, h}}、"{w, h}")
- 雷军:我向阿里学到了三点,这是创业成功的核心
- Python调用(运行)外部程序
- uva 11264 - Coin Collector(dp or 贪心)
- bugumongo
- DEB文件安装查询与卸载
- CCGeometry(几何学。CCPoint两向量夹角、投影向量、以特定轴+角度旋转。CCSize-大小概念。CCRect-成员是前2.函数:是否包含一个ccp,是否和另一rect相交。宏xMake)
- Ubuntu出现错误 ----Fatal error: Python.h: No such file or Directory
- JQuery 选择和过滤方法代码总结