macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

NSFrameRectWithWidth

線幅を指定して矩形を描画します
void  NSFrameRectWithWidth ( 
       NSRect   aRect , 
       float   frameWidth );

解説

線幅を指定して矩形を描画します。

返り値

引数

( NSRect )aRect
( float )frameWidth

フレームワーク

ApplicationKit

クラス

NSFrameRectWithWidth

Function

使用可能

10.0

参照

NSDrawTiledRects

例文

#import "MyView.h"

//NSViewのサブクラスMyView
//drawRectをオーバーライド
@implementation MyView
- (void)drawRect:(NSRect)frameRect
{
NSFrameRectWithWidth(NSMakeRect(10,10,200,200),2.0);
}
@end