iphone-common-codes-ccteam源代码 CCSize.h
//
// 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