NSRectFillListWithColors
指定したカラーで渡されたリストの矩形を塗ります
void NSRectFillListWithColors ( const NSRect * rects , NSColor ** colors , int count );
解説
指定したカラーで渡されたリストの矩形を塗ります。
返り値
引数
( const NSRect * )rects
( NSColor ** )colors
( int )count
フレームワーク
ApplicationKit
クラス
NSRectFillListWithColors
Function
使用可能
10.0
参照
例文
#import "MyView.h" //NSViewのサブクラスMyView //drawRectをオーバーライド @implementation MyView - (void)drawRect:(NSRect)frameRect { NSRect rects[] = {NSMakeRect(10,10,50,50),NSMakeRect(60,60,100,100)}; NSColor *theColor[] = {[NSColor redColor],[NSColor greenColor]}; [[NSColor grayColor] set]; NSRectFillListWithColors(rects,theColor, 2); } @end