macOS/iOS API解説

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

目次

drawWellInside:

境界なしで色の付いた範囲を描画します
-(void)drawWellInside:(NSRect)insideRect:

解説

境界なしで色の付いた範囲を描画します。

返り値

( void )

なし

引数

( NSRect )insideRect

内側の矩形

フレームワーク

ApplicationKit

クラス

NSColorWell

Instance Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject
//    IBOutlet NSColorWell* myColorwell;
- (IBAction)myAction:(id)sender
{
	[view lockFocus];
	[myColorwell drawWellInside:NSMakeRect(10,0,100,30)];
	[view unlockFocus];
}

@end