setMiterLimit:
マイターリミットをセットします
-(void)setMiterLimit:(float)miterLimit:
解説
レシーバーのマイターリミットをセットします。
返り値
( void )
なし
引数
( float )miterLimit
マイターリミット
フレームワーク
ApplicationKit
クラス
NSBezierPath
使用可能
10.0
参照
関連記事(外部サイト)
例文
#import "MyView.h" @implementation MyView //NSViewのサブクラス MyViewのDrawRectに上書き -(void)drawRect:(NSRect)rect { NSBezierPath *thePath = [NSBezierPath bezierPath]; [NSBezierPath setDefaultMiterLimit:50]; [NSBezierPath setDefaultLineJoinStyle:NSBevelLineJoinStyle]; [thePath moveToPoint:NSMakePoint(20,20)]; [thePath lineToPoint:NSMakePoint(120,120)]; [thePath lineToPoint:NSMakePoint(40,20)]; [thePath appendBezierPathWithRect:NSMakeRect(50,50,100,100)]; [thePath setLineWidth:5.0]; [thePath setMiterLimit:20.0]; [[NSColor redColor] set]; [thePath stroke]; NSLog([NSString stringWithFormat:@"%.1f",[thePath miterLimit]]); } @end
更新時バージョン
10.10