您的位置:首页 > 编程语言

iphone-common-codes-ccteam源代码 CCSize.h

2012-01-05 14:32 645 查看
//
//  CCSize.h
//  CCFC
//
//  Created by xichen on 11-12-28.
//  Copyright 2011 ccteam. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CCSize : NSObject
{
@public
CGFloat width;
CGFloat height;
}

- (id)initWithWidth:(CGFloat)width withHeight:(CGFloat)height;
+ (id)sizeWithCCSize:(CCSize *)size;
- (id)initWithCGSize:(CGSize)size;
+ (id)sizeWithCGSize:(CGSize)size;
- (void)dealloc;

- (BOOL)isEqualTo:(CCSize *)anotherSize;
- (BOOL)isEqualToCGSize:(CGSize)size;
- (BOOL)isZero;

- (void)setWidth:(CGFloat)width withHeight:(CGFloat)height;

- (CGSize)toCGSize;

@end


可能有更新:

googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCSize.h

github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCSize.h
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: