NSWidth
NSRectの幅を返します
float NSWidth (
NSRect aRect );
解説
NSRectの幅を返します。
引数
( NSRect )aRect
フレームワーク
Foundation
クラス
NSWidth
Function
使用可能
10.0
参照
NSMaxX
NSMaxY
NSMidX
NSMidY
NSMinX
NSMinY
NSHeight
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSRect rect = NSMakeRect(100,150,300,200); NSLog([NSString stringWithFormat:@"%.1f",NSWidth(rect)]); } @end