| Home 目次>ApplicationKit>NSGraphicsContext | |
setPatternPhase:
レシーバを塗るときのオフセット値をセットします
-(void) setPatternPhase(NSPoint)
【返り値】 | |
| void | なし |
【解説】
レシーバを塗るときのオフセット値をセットします。
【例文】
#import "Controller.h"
@implementation Controller
- ( IBAction )pushButton:( id )sender
{
NSPoint point;
[[NSApp context] setPatternPhase:NSMakePoint( 5.0 , 1.0 )];
point = [[NSApp context] patternPhase];
NSLog([NSString stringWithFormat: @"%f,%f" ,point.x,point.y]);
}
@end
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSGraphicsContext | 修正日2006.12.26 |