NSRectFillListWithGrays
グレーで渡されたリストの矩形を塗ります
void NSRectFillListWithGrays ( const NSRect * rects , const float * grays , int count );
解説
グレーで渡されたリストの矩形を塗ります。
返り値
引数
( const NSRect * )rects
( const float * )grays
( int )count
フレームワーク
ApplicationKit
クラス
NSRectFillListWithGrays
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)}; const float grays[] = {0.5,0.3}; [[NSColor grayColor] set]; NSRectFillListWithGrays(rects,grays, 2); } @end